3 %bcond_with tests # perform "make test" (requires X server)
5 %include /usr/lib/rpm/macros.perl
7 Summary: Perl interface to the 2.x series of the Gnome libraries
8 Summary(pl): Perlowy interfejs do bibliotek GNOME 2.x
13 Group: Development/Languages/Perl
14 Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
15 # Source0-md5: 263d907c861e1dd9992dc3a62c19f2e3
16 URL: http://gtk2-perl.sf.net/
17 BuildRequires: gtk+2-devel
18 BuildRequires: libgnomeui-devel >= 2.0.0
19 BuildRequires: perl-ExtUtils-Depends >= 0.201
20 BuildRequires: perl-ExtUtils-PkgConfig >= 1.03
21 BuildRequires: perl-Glib >= 1.035
22 BuildRequires: perl-Gnome2-Canvas >= 0.92
23 BuildRequires: perl-Gnome2-VFS >= 0.96
24 BuildRequires: perl-Gtk2 >= 1.021
25 BuildRequires: perl-devel >= 1:5.8.0
26 BuildRequires: rpm-perlprov >= 4.1-13
27 Requires: perl-Glib >= 1.035
28 Requires: perl-Gnome2-Canvas >= 0.92
29 Requires: perl-Gnome2-VFS >= 0.96
30 Requires: perl-Gtk2 >= 1.021
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 The Gnome2 Perl module allows a perl developer to use the GNOME 2
38 Modu³ Perla Gnome2 pozwala programistom perlowym na u¿ywanie bibliotek
42 %setup -q -n %{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 OPTIMIZE="%{rpmcflags}"
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
59 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/%{pnam}/{*,*/*}.pod
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc AUTHORS ChangeLog README TODO
67 %dir %{perl_vendorarch}/%{pnam}/Install
68 %attr(755,root,root) %{perl_vendorarch}/auto/%{pnam}/*.so
69 %{perl_vendorarch}/auto/%{pnam}/*.bs
70 %{perl_vendorarch}/%{pnam}/Install/*
71 %{perl_vendorarch}/%{pnam}.pm