3 %bcond_without tests # do not perform "make test"
6 Summary: Perl Glib bindings
7 Summary(pl.UTF-8): Wiązania Glib dla Perla
9 # note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch
11 %define fver %(echo %{version} | tr -d _)
14 Group: Development/Languages/Perl
15 Source0: http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{fver}.tar.gz
16 # Source0-md5: 9fcd0fbb16f35a6bef0827e83d68da04
17 URL: http://gtk2-perl.sourceforge.net/
18 BuildRequires: glib2-devel >= 1:2.24.0
19 BuildRequires: perl-ExtUtils-Depends >= 0.300
20 BuildRequires: perl-ExtUtils-PkgConfig >= 1.06
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: rpmbuild(macros) >= 1.745
24 Requires: glib2 >= 1:2.24.0
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module provides Perl access to Glib and GLib's GObject libraries.
30 %description -l pl.UTF-8
31 Ten moduł daje dostęp z poziomu Perla do bibliotek GLib i GObject.
34 Summary: Development files for Perl Glib bindings
35 Summary(pl.UTF-8): Pliki programistyczne wiązań Glib dla Perla
36 Group: Development/Languages/Perl
37 Requires: %{name} = %{version}-%{release}
38 Requires: glib2-devel >= 1:2.24.0
41 Development files for Perl Glib bindings.
43 %description devel -l pl.UTF-8
44 Pliki programistyczne wiązań Glib dla Perla.
47 %setup -q -n %{pnam}-%{fver}
50 %{__perl} Makefile.PL \
55 OPTIMIZE="%{rpmcflags}"
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2}
63 %{__make} pure_install \
64 DESTDIR=$RPM_BUILD_ROOT
66 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
67 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
68 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc AUTHORS NEWS README TODO
76 %{perl_vendorarch}/Glib.pm
77 %dir %{perl_vendorarch}/Glib
78 %{perl_vendorarch}/Glib/Object
79 %dir %{perl_vendorarch}/auto/Glib
80 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
81 %{_mandir}/man3/Glib.3pm*
82 %{_mandir}/man3/Glib::BookmarkFile.3pm*
83 %{_mandir}/man3/Glib::Boxed.3pm*
84 %{_mandir}/man3/Glib::Bytes.3pm*
85 %{_mandir}/man3/Glib::Error.3pm*
86 %{_mandir}/man3/Glib::Flags.3pm*
87 %{_mandir}/man3/Glib::KeyFile.3pm*
88 %{_mandir}/man3/Glib::Log.3pm*
89 %{_mandir}/man3/Glib::MainLoop.3pm*
90 %{_mandir}/man3/Glib::Markup.3pm*
91 %{_mandir}/man3/Glib::Object*.3pm*
92 %{_mandir}/man3/Glib::OptionContext.3pm*
93 %{_mandir}/man3/Glib::OptionGroup.3pm*
94 %{_mandir}/man3/Glib::Param::*.3pm*
95 %{_mandir}/man3/Glib::ParamSpec.3pm*
96 %{_mandir}/man3/Glib::Signal.3pm*
97 %{_mandir}/man3/Glib::Type.3pm*
98 %{_mandir}/man3/Glib::Utils.3pm*
99 %{_mandir}/man3/Glib::Variant.3pm*
100 %{_mandir}/man3/Glib::VariantDict.3pm*
101 %{_mandir}/man3/Glib::VariantType.3pm*
102 %{_mandir}/man3/Glib::index.3pm*
103 %{_mandir}/man3/Glib::version.3pm*
104 # for Gnome2-related packages
105 %dir %{perl_vendorarch}/Gnome2
106 %dir %{perl_vendorarch}/auto/Gnome2
109 %defattr(644,root,root,755)
110 %{perl_vendorarch}/Glib/CodeGen.pm
111 %{perl_vendorarch}/Glib/GenPod.pm
112 %{perl_vendorarch}/Glib/Install
113 %{perl_vendorarch}/Glib/MakeHelper.pm
114 %{perl_vendorarch}/Glib/ParseXSDoc.pm
115 %{_mandir}/man3/Glib::CodeGen.3pm*
116 %{_mandir}/man3/Glib::GenPod.3pm*
117 %{_mandir}/man3/Glib::MakeHelper.3pm*
118 %{_mandir}/man3/Glib::ParseXSDoc.3pm*
119 %{_mandir}/man3/Glib::devel.3pm*
120 %{_mandir}/man3/Glib::xsapi.3pm*