]> git.pld-linux.org Git - packages/perl-Glib.git/blobdiff - perl-Glib.spec
- release 3 (by relup.sh)
[packages/perl-Glib.git] / perl-Glib.spec
index 0f98ed0720d82d3ac4a64c3723d7cfdba2ee81f7..f030f18d5a443edfb4dc6f01600ed5f931fac754 100644 (file)
 #
 # Conditional build:
 %bcond_without tests   # do not perform "make test"
-#
-%include       /usr/lib/rpm/macros.perl
+
 %define                pnam    Glib
+%include       /usr/lib/rpm/macros.perl
 Summary:       Perl Glib bindings
-Summary(pl):   Wi±zania Glib dla Perla
+Summary(pl.UTF-8):     Wiązania Glib dla Perla
 Name:          perl-Glib
-Version:       1.080
-Release:       1
+# note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch
+Version:       1.300
+Release:       3
 License:       LGPL v2.1+
 Group:         Development/Languages/Perl
-Source0:       http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
-# Source0-md5: b6cb2978519fc3ee882c2c4aa27cbdd1
-URL:           http://gtk2-perl.sf.net/
-BuildRequires: glib2-devel >= 2.0.0
-BuildRequires: perl-ExtUtils-Depends >= 0.201
+Source0:       http://downloads.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
+# Source0-md5: 0f4b4a733816c554a7eb93687a2c7340
+Patch0:                %{name}-test.patch
+URL:           http://gtk2-perl.sourceforge.net/
+BuildRequires: glib2-devel >= 1:2.12.2
+BuildRequires: perl-ExtUtils-Depends >= 0.300
 BuildRequires: perl-ExtUtils-PkgConfig >= 1.06
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
+Requires:      glib2 >= 1:2.12.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This module provides perl access to Glib and GLib's GObject libraries.
+This module provides Perl access to Glib and GLib's GObject libraries.
+
+%description -l pl.UTF-8
+Ten moduł daje dostęp z poziomu Perla do bibliotek GLib i GObject.
+
+%package devel
+Summary:       Development files for Perl Glib bindings
+Summary(pl.UTF-8):     Pliki programistyczne wiązań Glib dla Perla
+Group:         Development/Languages/Perl
+Requires:      %{name} = %{version}-%{release}
+Requires:      glib2-devel >= 1:2.12.2
+
+%description devel
+Development files for Perl Glib bindings.
 
-%description -l pl
-Ten modu³ daje dostêp z poziomu Perla do bibliotek GLib i GObject.
+%description devel -l pl.UTF-8
+Pliki programistyczne wiązań Glib dla Perla.
 
 %prep
 %setup -q -n %{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
 
 %{__make} \
+       CC="%{__cc}" \
        OPTIMIZE="%{rpmcflags}"
 
 %{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{perl_vendorarch}/{Gnome2,auto/Gnome2}
 
-%{__make} install \
+%{__make} pure_install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
-rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/*.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Glib/Param/*.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README*
-%{perl_vendorarch}/*.pm
+%doc AUTHORS NEWS README TODO
+%{perl_vendorarch}/Glib.pm
 %dir %{perl_vendorarch}/Glib
-%{perl_vendorarch}/Glib/*.pm
-%{perl_vendorarch}/Glib/Install
 %{perl_vendorarch}/Glib/Object
 %dir %{perl_vendorarch}/auto/Glib
 %attr(755,root,root) %{perl_vendorarch}/auto/Glib/Glib.so
-%{perl_vendorarch}/auto/Glib/Glib.bs
-%{_mandir}/man3/*
+%{_mandir}/man3/Glib.3pm*
+%{_mandir}/man3/Glib::BookmarkFile.3pm*
+%{_mandir}/man3/Glib::Boxed.3pm*
+%{_mandir}/man3/Glib::Error.3pm*
+%{_mandir}/man3/Glib::Flags.3pm*
+%{_mandir}/man3/Glib::KeyFile.3pm*
+%{_mandir}/man3/Glib::Log.3pm*
+%{_mandir}/man3/Glib::MainLoop.3pm*
+%{_mandir}/man3/Glib::Markup.3pm*
+%{_mandir}/man3/Glib::Object*.3pm*
+%{_mandir}/man3/Glib::OptionContext.3pm*
+%{_mandir}/man3/Glib::OptionGroup.3pm*
+%{_mandir}/man3/Glib::Param::*.3pm*
+%{_mandir}/man3/Glib::ParamSpec.3pm*
+%{_mandir}/man3/Glib::Signal.3pm*
+%{_mandir}/man3/Glib::Type.3pm*
+%{_mandir}/man3/Glib::Utils.3pm*
+%{_mandir}/man3/Glib::index.3pm*
+%{_mandir}/man3/Glib::version.3pm*
+# for Gnome2-related packages
+%dir %{perl_vendorarch}/Gnome2
+%dir %{perl_vendorarch}/auto/Gnome2
+
+%files devel
+%defattr(644,root,root,755)
+%{perl_vendorarch}/Glib/CodeGen.pm
+%{perl_vendorarch}/Glib/GenPod.pm
+%{perl_vendorarch}/Glib/Install
+%{perl_vendorarch}/Glib/MakeHelper.pm
+%{perl_vendorarch}/Glib/ParseXSDoc.pm
+%{_mandir}/man3/Glib::CodeGen.3pm*
+%{_mandir}/man3/Glib::GenPod.3pm*
+%{_mandir}/man3/Glib::MakeHelper.3pm*
+%{_mandir}/man3/Glib::ParseXSDoc.3pm*
+%{_mandir}/man3/Glib::devel.3pm*
+%{_mandir}/man3/Glib::xsapi.3pm*
This page took 0.152034 seconds and 4 git commands to generate.