psabata pushed to perl-PerlIO-gzip (epel7). "0.19 bump, patch merged upstream (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Apr 17 07:46:55 UTC 2015
>From 06d1b6f1dccf7895f308a6b65dbc1694bb16d8b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Fri, 20 Mar 2015 16:02:12 +0100
Subject: 0.19 bump, patch merged upstream
- Modernize the spec
diff --git a/PerlIO-gzip-0.18-RT92412.patch b/PerlIO-gzip-0.18-RT92412.patch
deleted file mode 100644
index 8c325d6..0000000
--- a/PerlIO-gzip-0.18-RT92412.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/Makefile.PL 2006-10-01 21:28:25.000000000 +0000
-+++ b/Makefile.PL 2014-01-23 15:40:56.784222851 +0000
-@@ -4,7 +4,8 @@
- use ExtUtils::MakeMaker;
- use Config;
-
--unless ($Config{useperlio} eq 'define' and $Config{usesfio} eq 'false') {
-+unless ($Config{useperlio} eq 'define' and
-+ (defined($Config{usesfio}) ? $Config{usesfio} : 'false') eq 'false') {
- die <<BARF;
- You need perl 5.8.0 or later, configured to use perlio (and not to use sfio)
- BARF
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 at redhat.com> - 0.19-1
+- 0.19 bump, patch merged upstream
+- Modernize the spec
+
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik at redhat.com> - 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
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-PerlIO-gzip.git/commit/?h=epel7&id=06d1b6f1dccf7895f308a6b65dbc1694bb16d8b5
More information about the scm-commits
mailing list