psabata pushed to perl-PerlIO-gzip (epel7). "Fix RT#92412"

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

 



>From 79f3a0b5bcecac290e069ffc8ecca686f1ee22cb Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik@xxxxxxxxxx>
Date: Fri, 1 Aug 2014 08:27:35 +0200
Subject: Fix RT#92412


diff --git a/.gitignore b/.gitignore
index bac2100..dcbaf8f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,5 @@
 PerlIO-gzip-0.18.tar.gz
-PerlIO-gzip-*
 clog
-*.rpm
 *.gz
 *.tar
 .build*
diff --git a/PerlIO-gzip-0.18-RT92412.patch b/PerlIO-gzip-0.18-RT92412.patch
new file mode 100644
index 0000000..8c325d6
--- /dev/null
+++ b/PerlIO-gzip-0.18-RT92412.patch
@@ -0,0 +1,12 @@
+--- 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 70d0bf0..23e6a34 100644
--- a/perl-PerlIO-gzip.spec
+++ b/perl-PerlIO-gzip.spec
@@ -1,12 +1,16 @@
 Name:           perl-PerlIO-gzip
 Version:        0.18
-Release:        18%{?dist}
+Release:        19%{?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)
@@ -16,8 +20,14 @@ Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi
 BuildRequires:  zlib-devel
 
 # perl
+BuildRequires:  perl(Config)
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XSLoader)
 # test
+BuildRequires:  perl(File::Compare)
+BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(Test::More)
 
 %{?perl_default_filter}
@@ -31,6 +41,7 @@ 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
@@ -64,6 +75,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
+* Fri Aug 01 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.18-19
+- Fix RT#92412
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.18-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-PerlIO-gzip.git/commit/?h=epel7&id=79f3a0b5bcecac290e069ffc8ecca686f1ee22cb
--
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