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