]> git.pld-linux.org Git - packages/perl-Glib.git/blobdiff - perl-Glib.spec
- updated to 1.141
[packages/perl-Glib.git] / perl-Glib.spec
index 70f310b837390cfc075990be255a09ed8f9cc822..a2ec5d4f5019b1355bd22dc99f6af6563befb18e 100644 (file)
@@ -1,30 +1,34 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
-#
-# TODO:
-# - check BRs
-# - intl descs
+%bcond_without tests   # do not perform "make test"
 #
 %include       /usr/lib/rpm/macros.perl
-%define        pnam    Glib
+%define                pnam    Glib
 Summary:       Perl Glib bindings
+Summary(pl):   Wi±zania Glib dla Perla
 Name:          perl-Glib
-Version:       0.91
-Release:       0.1
-License:       GPL
+# note: versions 1.x[13579]y are unstable, if you want them, please use DEVEL branch
+Version:       1.141
+Release:       1
+License:       LGPL v2.1+
 Group:         Development/Languages/Perl
-Source0:       http://flow.dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
-# Source0-md5: 0a3e8ff992b6b2e79ba18208bea7fb1d
-URL:           http://gtk2-perl.sf.net/
-BuildRequires: glib2-devel
-BuildRequires: perl-devel >= 5.8.0
+Source0:       http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
+# Source0-md5: ab90e68a745e771a8b6af8fadcce4c38
+URL:           http://gtk2-perl.sourceforge.net/
+BuildRequires: glib2-devel >= 1:2.12.2
+BuildRequires: perl-ExtUtils-Depends >= 0.201
+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.
 
+%description -l pl
+Ten modu³ daje dostêp z poziomu Perla do bibliotek GLib i GObject.
+
 %prep
 %setup -q -n %{pnam}-%{version}
 
@@ -35,22 +39,30 @@ This module provides perl access to Glib and GLib's GObject libraries.
 %{__make} \
        OPTIMIZE="%{rpmcflags}"
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__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 -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Glib/.packlist
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README* 
+%doc AUTHORS ChangeLog README*
 %{perl_vendorarch}/*.pm
 %dir %{perl_vendorarch}/Glib
-%{perl_vendorarch}/Glib
-%{perl_vendorarch}/auto/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/*
This page took 0.101878 seconds and 4 git commands to generate.