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: f214d1b5aa16d0f7b95674e6a027c468
16 URL: http://gtk2-perl.sourceforge.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
49 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc AUTHORS ChangeLog README*
57 %{perl_vendorarch}/*.pm
58 %dir %{perl_vendorarch}/Glib
59 %{perl_vendorarch}/Glib/*.pm
60 %{perl_vendorarch}/Glib/Install
61 %{perl_vendorarch}/Glib/Object
62 %dir %{perl_vendorarch}/auto/Glib
63 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
64 %{perl_vendorarch}/auto/Glib/Glib.bs