]>
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 |
2704248c | 8 | Summary(pl.UTF-8): Interfejs perlowy do bibliotek GNOME 2.x |
2bc9e649 | 9 | Name: perl-Gnome2 |
2507cecb | 10 | Version: 1.042 |
af1496aa | 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 |
2507cecb | 15 | # Source0-md5: eb7b624114e45e54e022a633ffc1cce6 |
d18b7414 | 16 | URL: http://gtk2-perl.sourceforge.net/ |
110e7e66 | 17 | BuildRequires: libbonoboui-devel >= 2.0.0 |
2281740b | 18 | BuildRequires: libgnomeui-devel >= 2.14.1 |
e0d67b8e | 19 | BuildRequires: perl-ExtUtils-Depends >= 0.201 |
20 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.03 | |
110e7e66 | 21 | BuildRequires: perl-Glib >= 1.140 |
2281740b JB |
22 | BuildRequires: perl-Gnome2-Canvas >= 1.002 |
23 | BuildRequires: perl-Gnome2-VFS >= 1.060 | |
110e7e66 | 24 | BuildRequires: perl-Gtk2 >= 1.140 |
57313485 | 25 | BuildRequires: perl-devel >= 1:5.8.0 |
65e188f2 | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
110e7e66 | 27 | Requires: libbonoboui >= 2.0.0 |
2281740b | 28 | Requires: libgnomeui >= 2.14.1 |
110e7e66 | 29 | Requires: perl-Glib >= 1.140 |
2281740b JB |
30 | Requires: perl-Gnome2-Canvas >= 1.002 |
31 | Requires: perl-Gnome2-VFS >= 1.060 | |
110e7e66 | 32 | Requires: perl-Gtk2 >= 1.140 |
65e188f2 MK |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
b4d8b90a | 36 | The Gnome2 Perl module allows a Perl developer to use the GNOME 2 |
4dfca209 | 37 | libraries. |
65e188f2 | 38 | |
f092dd92 JR |
39 | %description -l pl.UTF-8 |
40 | Moduł Perla Gnome2 pozwala programistom perlowym na używanie bibliotek | |
41 | środowiska GNOME 2. | |
65e188f2 MK |
42 | |
43 | %prep | |
2bc9e649 | 44 | %setup -q -n %{pdir}-%{version} |
65e188f2 MK |
45 | |
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | ||
50 | %{__make} \ | |
fc00a994 | 51 | CC="%{__cc}" \ |
65e188f2 MK |
52 | OPTIMIZE="%{rpmcflags}" |
53 | ||
0955be0c | 54 | %{?with_tests:%{__make} test} |
65e188f2 MK |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
2507cecb | 62 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/{*,*/*}.pod |
171dca35 | 63 | |
65e188f2 MK |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
171dca35 | 69 | %doc AUTHORS ChangeLog README TODO |
2507cecb JB |
70 | %dir %{perl_vendorarch}/Gnome2/Install |
71 | %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/*.so | |
72 | %{perl_vendorarch}/auto/Gnome2/*.bs | |
73 | %{perl_vendorarch}/Gnome2/Install/* | |
74 | %{perl_vendorarch}/Gnome2.pm | |
75 | %{_mandir}/man3/Gnome2*.3pm* |