3 # _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://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/%{pnam}-%{version}.tar.gz
15 # Source0-md5: 8bf851c4864076c3ef0d74c9e5050ba4
16 BuildRequires: gtk+2-devel
17 BuildRequires: libgnomeui-devel >= 2.0.0
18 BuildRequires: perl-Glib >= 0.95
19 BuildRequires: perl-Gtk2 >= 0.95
20 BuildRequires: perl-devel >= 5.8.0
21 BuildRequires: pkgconfig
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Gnome2 Perl module allows a perl developer to use the GNOME 2
30 Modu³ Perla Gnome2 pozwala programistom perlowym na u¿ywanie bibliotek
34 %setup -q -n %{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?_with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc AUTHORS TODO README druid.pl
57 %{perl_vendorarch}/%{pnam}.pm
58 %dir %{perl_vendorarch}/auto/%{pnam}
59 %attr(755,root,root) %{perl_vendorarch}/auto/%{pnam}/*.so
60 %{perl_vendorarch}/auto/%{pnam}/*.bs