3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: Perl Glib bindings
8 Summary(pl.UTF-8): Wiązania Glib dla Perla
10 # note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch
14 Group: Development/Languages/Perl
15 Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
16 # Source0-md5: b2c3e4bb5e56c15709df2dd9a6704886
17 URL: http://gtk2-perl.sourceforge.net/
18 BuildRequires: glib2-devel >= 1:2.12.2
19 BuildRequires: perl-ExtUtils-Depends >= 0.201
20 BuildRequires: perl-ExtUtils-PkgConfig >= 1.06
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 Requires: glib2 >= 1:2.12.2
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module provides perl access to Glib and GLib's GObject libraries.
29 %description -l pl.UTF-8
30 Ten moduł daje dostęp z poziomu Perla do bibliotek GLib i GObject.
33 %setup -q -n %{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2}
48 %{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
51 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
52 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
53 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc AUTHORS ChangeLog NEWS README*
61 %{perl_vendorarch}/Glib.pm
62 %dir %{perl_vendorarch}/Glib
63 %{perl_vendorarch}/Glib/*.pm
64 %{perl_vendorarch}/Glib/Install
65 %{perl_vendorarch}/Glib/Object
66 %dir %{perl_vendorarch}/auto/Glib
67 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
68 %{perl_vendorarch}/auto/Glib/Glib.bs
69 %{_mandir}/man3/Glib*.3pm*
70 # for Gnome2-related packages
71 %dir %{perl_vendorarch}/Gnome2
72 %dir %{perl_vendorarch}/auto/Gnome2