]> git.pld-linux.org Git - packages/perl-Alien-wxWidgets.git/blame - perl-Alien-wxWidgets.spec
- add CC to %{__make}
[packages/perl-Alien-wxWidgets.git] / perl-Alien-wxWidgets.spec
CommitLineData
274c91a3
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
bbe2b626 4%bcond_with unicode # use Unicode version of wxGTK2
274c91a3
5#
6%include /usr/lib/rpm/macros.perl
7%define pdir Alien
8%define pnam wxWidgets
9Summary: Alien::wxWidgets - building, finding and using wxWidgets binaries
6b8dacf7 10Summary(pl.UTF-8): Alien::wxWidgets - budowanie, znajdowanie i wykorzystywanie binariów wxWidgets
274c91a3
11Name: perl-Alien-wxWidgets
12Version: 0.22
9d98e3c3 13Release: 0.1
274c91a3
14# same as perl
15License: GPL v1+ or Artistic
16Group: Development/Languages/Perl
17Source0: http://www.cpan.org/modules/by-module/Alien/%{pdir}-%{pnam}-%{version}.tar.gz
18# Source0-md5: 98de414f8d378170ede6cf96a0e2f73e
bbe2b626
JB
19Patch0: %{name}-nobuild.patch
20URL: http://search.cpan.org/dist/Alien-wxWidgets/
14d6bda2 21BuildRequires: perl-Module-Build >= 0.2611-1
22BuildRequires: perl-Module-Pluggable >= 3.1-4
bbe2b626 23BuildRequires: perl-devel >= 1:5.8.0
274c91a3 24BuildRequires: rpm-perlprov >= 4.1-13
14d6bda2 25BuildRequires: wxGTK2-%{?with_unicode:unicode-}devel >= 2.6.3
26BuildRequires: wxGTK2-%{?with_unicode:unicode-}gl-devel >= 2.6.3
274c91a3
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
bbe2b626
JB
30Alien::wxWidgets allows wxPerl to easily find information about your
31wxWidgets installation. It can store this information for multiple
32wxWidgets versions or configurations (debug, Unicode, etc.). It can
33also build and install a private copy of wxWidgets as part of the
34build process.
274c91a3 35
530a3377
JR
36%description -l pl.UTF-8
37Alien::wxWidgets pozwala wxPerlowi łatwo uzyskać informacje na temat
38instalacji wxWidgets. Może przechowywać informacje o wielu wersjach
39lub konfiguracjach (debug, Unicode, itp.). Może także zbudować i
40zainstalować prywatną kopię wxWidgets jako część procesu budowania.
274c91a3
41
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44%patch0 -p1
45
46%build
47WX_CONFIG=wx-gtk2-%{?with_unicode:unicode}%{!?with_unicode:ansi}-config
48export WX_CONFIG
49%{__perl} Makefile.PL \
bbe2b626 50 INSTALLDIRS=vendor
14d6bda2 51
274c91a3 52%{__make} \
95dd7826 53 CC="%{__cc}" \
bbe2b626 54 OPTIMIZE="%{rpmcflags}"
274c91a3
55
56%{?with_tests:%{__make} test}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
69%dir %{perl_vendorarch}/Alien
70%{perl_vendorarch}/Alien/*.pm
71%dir %{perl_vendorarch}/Alien/wxWidgets
72%{perl_vendorarch}/Alien/wxWidgets/*.pm
73%dir %{perl_vendorarch}/auto/Alien
74%dir %{perl_vendorarch}/auto/Alien/wxWidgets
75%{perl_vendorarch}/auto/Alien/wxWidgets/*
76%{_mandir}/man3/*
This page took 0.084264 seconds and 4 git commands to generate.