]>
Commit | Line | Data |
---|---|---|
65e188f2 MK |
1 | # |
2 | # Conditional build: | |
cf1b96df | 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 |
598bcec4 | 10 | Version: 1.046 |
f6400c43 | 11 | Release: 6 |
598bcec4 | 12 | License: LGPL v2.1+ |
65e188f2 | 13 | Group: Development/Languages/Perl |
58a2c743 | 14 | Source0: http://download.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz |
598bcec4 | 15 | # Source0-md5: abb820a474237f6c8d6c2dc19ba3c1e6 |
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 | |
598bcec4 JB |
21 | BuildRequires: perl-Glib-devel >= 1.140 |
22 | BuildRequires: perl-Gnome2-Canvas-devel >= 1.002 | |
23 | BuildRequires: perl-Gnome2-VFS-devel >= 1.060 | |
cf1b96df | 24 | BuildRequires: perl-Gtk2-devel >= 1.140 |
57313485 | 25 | BuildRequires: perl-devel >= 1:5.8.0 |
598bcec4 JB |
26 | %if %{with tests} |
27 | BuildRequires: perl-Test-Number-Delta >= 1.0 | |
28 | %endif | |
65e188f2 | 29 | BuildRequires: rpm-perlprov >= 4.1-13 |
110e7e66 | 30 | Requires: libbonoboui >= 2.0.0 |
2281740b | 31 | Requires: libgnomeui >= 2.14.1 |
110e7e66 | 32 | Requires: perl-Glib >= 1.140 |
2281740b JB |
33 | Requires: perl-Gnome2-Canvas >= 1.002 |
34 | Requires: perl-Gnome2-VFS >= 1.060 | |
110e7e66 | 35 | Requires: perl-Gtk2 >= 1.140 |
65e188f2 MK |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
b4d8b90a | 39 | The Gnome2 Perl module allows a Perl developer to use the GNOME 2 |
4dfca209 | 40 | libraries. |
65e188f2 | 41 | |
f092dd92 JR |
42 | %description -l pl.UTF-8 |
43 | Moduł Perla Gnome2 pozwala programistom perlowym na używanie bibliotek | |
44 | środowiska GNOME 2. | |
65e188f2 | 45 | |
598bcec4 JB |
46 | %package devel |
47 | Summary: Development files for Perl Gnome2 bindings | |
48 | Summary(pl.UTF-8): Pliki programistyczne wiązań Gnome2 dla Perla | |
49 | Group: Development/Languages/Perl | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | Requires: libbonoboui-devel >= 2.0.0 | |
52 | Requires: libgnomeui-devel >= 2.14.1 | |
53 | Requires: perl-Glib-devel >= 1.140 | |
54 | Requires: perl-Gnome2-Canvas-devel >= 1.002 | |
55 | Requires: perl-Gnome2-VFS-devel >= 1.060 | |
56 | Requires: perl-Gtk2-devel >= 1.140 | |
57 | ||
58 | %description devel | |
59 | Development files for Perl Gnome2 bindings. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki programistyczne wiązań Gnome2 dla Perla. | |
63 | ||
65e188f2 | 64 | %prep |
2bc9e649 | 65 | %setup -q -n %{pdir}-%{version} |
65e188f2 MK |
66 | |
67 | %build | |
68 | %{__perl} Makefile.PL \ | |
69 | INSTALLDIRS=vendor | |
70 | ||
71 | %{__make} \ | |
fc00a994 | 72 | CC="%{__cc}" \ |
65e188f2 MK |
73 | OPTIMIZE="%{rpmcflags}" |
74 | ||
0955be0c | 75 | %{?with_tests:%{__make} test} |
65e188f2 MK |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
598bcec4 | 83 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/{*,*/*}.pod |
171dca35 | 84 | |
65e188f2 MK |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
cf1b96df | 90 | %doc AUTHORS README TODO |
2507cecb | 91 | %{perl_vendorarch}/Gnome2.pm |
598bcec4 JB |
92 | %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Gnome2.so |
93 | %{_mandir}/man3/Gnome2.3pm* | |
94 | %{_mandir}/man3/Gnome2::*.3pm* | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %{perl_vendorarch}/Gnome2/Install |