]>
Commit | Line | Data |
---|---|---|
65e188f2 MK |
1 | # |
2 | # Conditional build: | |
cf1b96df | 3 | %bcond_with tests # perform "make test" (requires X server) |
65e188f2 | 4 | # |
15109e53 | 5 | %define pdir Gnome2 |
0d8e9fde | 6 | Summary: Perl interface to the 2.x series of the GNOME libraries |
2704248c | 7 | Summary(pl.UTF-8): Interfejs perlowy do bibliotek GNOME 2.x |
2bc9e649 | 8 | Name: perl-Gnome2 |
e893003b | 9 | Version: 1.048 |
0a3d1bbf | 10 | Release: 4 |
598bcec4 | 11 | License: LGPL v2.1+ |
65e188f2 | 12 | Group: Development/Languages/Perl |
e893003b JB |
13 | Source0: https://download.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz |
14 | # Source0-md5: 38408e8195e86b1dda0704a0054ae5a8 | |
d18b7414 | 15 | URL: http://gtk2-perl.sourceforge.net/ |
110e7e66 | 16 | BuildRequires: libbonoboui-devel >= 2.0.0 |
2281740b | 17 | BuildRequires: libgnomeui-devel >= 2.14.1 |
e0d67b8e | 18 | BuildRequires: perl-ExtUtils-Depends >= 0.201 |
19 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.03 | |
598bcec4 JB |
20 | BuildRequires: perl-Glib-devel >= 1.140 |
21 | BuildRequires: perl-Gnome2-Canvas-devel >= 1.002 | |
22 | BuildRequires: perl-Gnome2-VFS-devel >= 1.060 | |
cf1b96df | 23 | BuildRequires: perl-Gtk2-devel >= 1.140 |
57313485 | 24 | BuildRequires: perl-devel >= 1:5.8.0 |
598bcec4 JB |
25 | %if %{with tests} |
26 | BuildRequires: perl-Test-Number-Delta >= 1.0 | |
27 | %endif | |
65e188f2 | 28 | BuildRequires: rpm-perlprov >= 4.1-13 |
a33a76fe | 29 | BuildRequires: rpmbuild(macros) >= 1.745 |
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 | |
e893003b JB |
42 | Note: this module is deprecated and no longer maintained. |
43 | ||
f092dd92 JR |
44 | %description -l pl.UTF-8 |
45 | Moduł Perla Gnome2 pozwala programistom perlowym na używanie bibliotek | |
46 | środowiska GNOME 2. | |
65e188f2 | 47 | |
e893003b JB |
48 | Uwaga: ten moduł jest przestarzały i nie jest już utrzymywany. |
49 | ||
598bcec4 JB |
50 | %package devel |
51 | Summary: Development files for Perl Gnome2 bindings | |
52 | Summary(pl.UTF-8): Pliki programistyczne wiązań Gnome2 dla Perla | |
53 | Group: Development/Languages/Perl | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Requires: libbonoboui-devel >= 2.0.0 | |
56 | Requires: libgnomeui-devel >= 2.14.1 | |
57 | Requires: perl-Glib-devel >= 1.140 | |
58 | Requires: perl-Gnome2-Canvas-devel >= 1.002 | |
59 | Requires: perl-Gnome2-VFS-devel >= 1.060 | |
60 | Requires: perl-Gtk2-devel >= 1.140 | |
61 | ||
62 | %description devel | |
63 | Development files for Perl Gnome2 bindings. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki programistyczne wiązań Gnome2 dla Perla. | |
67 | ||
65e188f2 | 68 | %prep |
2bc9e649 | 69 | %setup -q -n %{pdir}-%{version} |
65e188f2 MK |
70 | |
71 | %build | |
72 | %{__perl} Makefile.PL \ | |
73 | INSTALLDIRS=vendor | |
74 | ||
75 | %{__make} \ | |
fc00a994 | 76 | CC="%{__cc}" \ |
65e188f2 MK |
77 | OPTIMIZE="%{rpmcflags}" |
78 | ||
0955be0c | 79 | %{?with_tests:%{__make} test} |
65e188f2 MK |
80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
598bcec4 | 87 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Gnome2/{*,*/*}.pod |
171dca35 | 88 | |
65e188f2 MK |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
cf1b96df | 94 | %doc AUTHORS README TODO |
2507cecb | 95 | %{perl_vendorarch}/Gnome2.pm |
598bcec4 JB |
96 | %attr(755,root,root) %{perl_vendorarch}/auto/Gnome2/Gnome2.so |
97 | %{_mandir}/man3/Gnome2.3pm* | |
98 | %{_mandir}/man3/Gnome2::*.3pm* | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %{perl_vendorarch}/Gnome2/Install |