Fix RT#92412

e8
Jitka Plesnikova 11 years ago
parent 4f62a4b7b3
commit 79f3a0b5bc

2
.gitignore vendored

@ -1,7 +1,5 @@
PerlIO-gzip-0.18.tar.gz
PerlIO-gzip-*
clog
*.rpm
*.gz
*.tar
.build*

@ -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

@ -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@redhat.com> - 0.18-19
- Fix RT#92412
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

Loading…
Cancel
Save