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: ddbe549636215eaa1710937b2c723622
16 URL: http://gtk2-perl.sf.net/
17 BuildRequires: glib2-devel >= 2.0.0
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_vendorarch}/Glib/*.pod
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc AUTHORS ChangeLog README*
56 %{perl_vendorarch}/*.pm
57 %dir %{perl_vendorarch}/Glib
58 %{perl_vendorarch}/Glib/*.pm
59 %{perl_vendorarch}/Glib/Install
60 %{perl_vendorarch}/Glib/Object
61 %dir %{perl_vendorarch}/auto/Glib
62 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
63 %{perl_vendorarch}/auto/Glib/Glib.bs