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): Interfejs perlowy do bibliotek GNOME 2.x
13 Group: Development/Languages/Perl
14 Source0: http://dl.sourceforge.net/gtk2-perl/%{pdir}-%{version}.tar.gz
15 # Source0-md5: d8d60e4b7f7f97d9a0e033ba1c657fee
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.040
22 BuildRequires: perl-Gnome2-Canvas >= 1.00
23 BuildRequires: perl-Gnome2-VFS >= 1.001
24 BuildRequires: perl-Gtk2 >= 1.040
25 BuildRequires: perl-devel >= 1:5.8.0
26 BuildRequires: rpm-perlprov >= 4.1-13
27 Requires: perl-Glib >= 1.040
28 Requires: perl-Gnome2-Canvas >= 1.00
29 Requires: perl-Gnome2-VFS >= 1.001
30 Requires: perl-Gtk2 >= 1.040
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 %{pdir}-%{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}/%{pdir}/{*,*/*}.pod
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc AUTHORS ChangeLog README TODO
67 %dir %{perl_vendorarch}/%{pdir}/Install
68 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/*.so
69 %{perl_vendorarch}/auto/%{pdir}/*.bs
70 %{perl_vendorarch}/%{pdir}/Install/*
71 %{perl_vendorarch}/%{pdir}.pm