[perl-PerlIO-gzip] 0.19 bump, patch merged upstream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 06d1b6f1dccf7895f308a6b65dbc1694bb16d8b5
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Fri Mar 20 16:02:12 2015 +0100

    0.19 bump, patch merged upstream
    
    - Modernize the spec

 PerlIO-gzip-0.18-RT92412.patch | 12 ---------
 perl-PerlIO-gzip.spec          | 56 ++++++++++++++++--------------------------
 sources                        |  2 +-
 3 files changed, 22 insertions(+), 48 deletions(-)
---
diff --git a/perl-PerlIO-gzip.spec b/perl-PerlIO-gzip.spec
index d51c3f9..542a623 100644
--- a/perl-PerlIO-gzip.spec
+++ b/perl-PerlIO-gzip.spec
@@ -1,34 +1,26 @@
 Name:           perl-PerlIO-gzip
-Version:        0.18
-Release:        21%{?dist}
+Version:        0.19
+Release:        1%{?dist}
 Summary:        Perl extension to provide a PerlIO layer to gzip/gunzip
-# See Makefile.PL, gzip.xs, etc.
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/PerlIO-gzip/
 Source0:        http://www.cpan.org/authors/id/N/NW/NWCLARK/PerlIO-gzip-%{version}.tar.gz
-# Fix https://rt.cpan.org/Public/Bug/Display.html?id=92412
-# usesfio is no longer available as a core configuration setting
-Patch0:         PerlIO-gzip-0.18-RT92412.patch
-
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-Requires:       perl(:WITH_PERLIO)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-# non-perl
+BuildRequires:  glibc-common
 BuildRequires:  zlib-devel
-
-# perl
+# Build
+BuildRequires:  perl
 BuildRequires:  perl(Config)
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
 BuildRequires:  perl(XSLoader)
-# test
+# Tests only
 BuildRequires:  perl(File::Compare)
 BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(Test::More)
+Requires:       perl(:WITH_PERLIO)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 
 %{?perl_default_filter}
 
@@ -41,40 +33,34 @@ layer.
 
 %prep
 %setup -q -n PerlIO-gzip-%{version}
-%patch0 -p1
-
 perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t
-cat README | iconv -f ISO-8859-1 -t UTF-8 > foo && mv foo README
+iconv -f latin1 -t utf8 README > README.utf8 && \
+    touch README.utf8 -r README && \
+    mv README.utf8 README
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
-%doc Changes README t/
+%doc Changes README
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/PerlIO*
 %{_mandir}/man3/*
 
 %changelog
+* Fri Mar 20 2015 Petr Šabata <contyk@xxxxxxxxxx> - 0.19-1
+- 0.19 bump, patch merged upstream
+- Modernize the spec
+
 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.18-21
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index e814390..fca6052 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-933fdf283a0d2739f7630420569e3b24  PerlIO-gzip-0.18.tar.gz
+dbcfc1450f6b593b65048b8ced061c98  PerlIO-gzip-0.19.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux