]>
Commit | Line | Data |
---|---|---|
65e188f2 MK |
1 | # |
2 | # Conditional build: | |
1dab5519 | 3 | %bcond_with tests # perform "make test" (requires X server) |
65e188f2 MK |
4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
15109e53 | 6 | %define pdir Gnome2 |
0d8e9fde | 7 | Summary: Perl interface to the 2.x series of the GNOME libraries |
f092dd92 | 8 | Summary(pl.UTF-8): Interfejs perlowy do bibliotek GNOME 2.x |
2bc9e649 | 9 | Name: perl-Gnome2 |
55922e7f | 10 | Version: 1.040 |
2281740b | 11 | Release: 2 |
b1a91d67 | 12 | License: LGPL |
65e188f2 | 13 | Group: Development/Languages/Perl |
2bc9e649 | 14 | Source0: http://dl.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz |
55922e7f | 15 | # Source0-md5: 0a2dbefaafc5884cbeaf88968ebfe3ad |
d18b7414 | 16 | URL: http://gtk2-perl.sourceforge.net/ |
65e188f2 | 17 | BuildRequires: gtk+2-devel |
2281740b | 18 | BuildRequires: libgnomeui-devel >= 2.14.1 |
e0d67b8e | 19 | BuildRequires: perl-ExtUtils-Depends >= 0.201 |
20 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.03 | |
2281740b JB |
21 | BuildRequires: perl-Glib >= 1.120 |
22 | BuildRequires: perl-Gnome2-Canvas >= 1.002 | |
23 | BuildRequires: perl-Gnome2-VFS >= 1.060 | |
24 | BuildRequires: perl-Gtk2 >= 1.121 | |
57313485 | 25 | BuildRequires: perl-devel >= 1:5.8.0 |
65e188f2 | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
2281740b JB |
27 | Requires: libgnomeui >= 2.14.1 |
28 | Requires: perl-Glib >= 1.120 | |
29 | Requires: perl-Gnome2-Canvas >= 1.002 | |
30 | Requires: perl-Gnome2-VFS >= 1.060 | |
31 | Requires: perl-Gtk2 >= 1.121 | |
65e188f2 MK |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
b4d8b90a | 35 | The Gnome2 Perl module allows a Perl developer to use the GNOME 2 |
4dfca209 | 36 | libraries. |
65e188f2 | 37 | |
f092dd92 JR |
38 | %description -l pl.UTF-8 |
39 | Moduł Perla Gnome2 pozwala programistom perlowym na używanie bibliotek | |
40 | środowiska GNOME 2. | |
65e188f2 MK |
41 | |
42 | %prep | |
2bc9e649 | 43 | %setup -q -n %{pdir}-%{version} |
65e188f2 MK |
44 | |
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
48 | ||
49 | %{__make} \ | |
50 | OPTIMIZE="%{rpmcflags}" | |
51 | ||
0955be0c | 52 | %{?with_tests:%{__make} test} |
65e188f2 MK |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
2bc9e649 | 60 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/%{pdir}/{*,*/*}.pod |
171dca35 | 61 | |
65e188f2 MK |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
171dca35 | 67 | %doc AUTHORS ChangeLog README TODO |
2bc9e649 | 68 | %dir %{perl_vendorarch}/%{pdir}/Install |
69 | %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/*.so | |
70 | %{perl_vendorarch}/auto/%{pdir}/*.bs | |
71 | %{perl_vendorarch}/%{pdir}/Install/* | |
72 | %{perl_vendorarch}/%{pdir}.pm | |
65e188f2 | 73 | %{_mandir}/man3/* |