3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: Perl Glib bindings
8 Summary(pl): Wi±zania Glib dla Perla
13 Group: Development/Languages/Perl
14 Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
15 # Source0-md5: 2fd05bd925f58eda026cfdf8bf0d1982
16 URL: http://gtk2-perl.sourceforge.net/
17 BuildRequires: glib2-devel >= 2.12.2
18 BuildRequires: perl-ExtUtils-Depends >= 0.201
19 BuildRequires: perl-ExtUtils-PkgConfig >= 1.06
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module provides perl access to Glib and GLib's GObject libraries.
28 Ten modu³ daje dostêp z poziomu Perla do bibliotek GLib i GObject.
31 %setup -q -n %{pnam}-%{version}
34 %{__perl} Makefile.PL \
38 OPTIMIZE="%{rpmcflags}"
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
48 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
49 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
50 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
51 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc AUTHORS ChangeLog README*
59 %{perl_vendorarch}/*.pm
60 %dir %{perl_vendorarch}/Glib
61 %{perl_vendorarch}/Glib/*.pm
62 %{perl_vendorarch}/Glib/Install
63 %{perl_vendorarch}/Glib/Object
64 %dir %{perl_vendorarch}/auto/Glib
65 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
66 %{perl_vendorarch}/auto/Glib/Glib.bs