Chris Weyl c43a1f5
Name:           perl-PerlIO-gzip
Chris Weyl c43a1f5
Version:        0.18
2ff1bb8
Release:        21%{?dist}
Chris Weyl c43a1f5
Summary:        Perl extension to provide a PerlIO layer to gzip/gunzip
Chris Weyl c43a1f5
# See Makefile.PL, gzip.xs, etc.
Chris Weyl c43a1f5
License:        GPL+ or Artistic
Chris Weyl c43a1f5
Group:          Development/Libraries
Chris Weyl c43a1f5
URL:            http://search.cpan.org/dist/PerlIO-gzip/
Chris Weyl c43a1f5
Source0:        http://www.cpan.org/authors/id/N/NW/NWCLARK/PerlIO-gzip-%{version}.tar.gz
79f3a0b
# Fix https://rt.cpan.org/Public/Bug/Display.html?id=92412
79f3a0b
# usesfio is no longer available as a core configuration setting
79f3a0b
Patch0:         PerlIO-gzip-0.18-RT92412.patch
79f3a0b
Chris Weyl c43a1f5
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl c43a1f5
Chris Weyl c43a1f5
Requires:       perl(:WITH_PERLIO)
Chris Weyl c43a1f5
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl c43a1f5
Chris Weyl c43a1f5
# non-perl
Chris Weyl c43a1f5
BuildRequires:  zlib-devel
Chris Weyl c43a1f5
Chris Weyl c43a1f5
# perl
79f3a0b
BuildRequires:  perl(Config)
Chris Weyl c43a1f5
BuildRequires:  perl(ExtUtils::MakeMaker)
79f3a0b
BuildRequires:  perl(strict)
79f3a0b
BuildRequires:  perl(warnings)
79f3a0b
BuildRequires:  perl(XSLoader)
Chris Weyl c43a1f5
# test
79f3a0b
BuildRequires:  perl(File::Compare)
79f3a0b
BuildRequires:  perl(File::Spec)
Chris Weyl c43a1f5
BuildRequires:  perl(Test::More)
Chris Weyl c43a1f5
Chris Weyl d49238c
%{?perl_default_filter}
Chris Weyl 8299ccb
Chris Weyl c43a1f5
%description
Chris Weyl c43a1f5
PerlIO::gzip provides a PerlIO layer that manipulates files in the format
Chris Weyl c43a1f5
used by the gzip program. Compression and decompression are implemented.
Chris Weyl c43a1f5
Chris Weyl c43a1f5
This is akin to Compress::Zlib, except that it operates at the lower PerlIO
Chris Weyl c43a1f5
layer.
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%prep
Chris Weyl c43a1f5
%setup -q -n PerlIO-gzip-%{version}
79f3a0b
%patch0 -p1
Chris Weyl c43a1f5
Chris Weyl c43a1f5
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t
Chris Weyl c43a1f5
cat README | iconv -f ISO-8859-1 -t UTF-8 > foo && mv foo README
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%build
Chris Weyl c43a1f5
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
Chris Weyl c43a1f5
make %{?_smp_mflags}
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%install
Chris Weyl c43a1f5
rm -rf %{buildroot}
Chris Weyl c43a1f5
Chris Weyl c43a1f5
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl c43a1f5
Chris Weyl c43a1f5
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Chris Weyl c43a1f5
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
Chris Weyl c43a1f5
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%{_fixperms} %{buildroot}/*
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%check
Chris Weyl c43a1f5
make test
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%clean
Chris Weyl c43a1f5
rm -rf %{buildroot}
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%files
Chris Weyl c43a1f5
%defattr(-,root,root,-)
Chris Weyl c43a1f5
%doc Changes README t/
Chris Weyl c43a1f5
%{perl_vendorarch}/auto/*
Chris Weyl c43a1f5
%{perl_vendorarch}/PerlIO*
Chris Weyl c43a1f5
%{_mandir}/man3/*
Chris Weyl c43a1f5
Chris Weyl c43a1f5
%changelog
2ff1bb8
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-21
2ff1bb8
- Perl 5.20 rebuild
2ff1bb8
23568ce
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-20
23568ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
23568ce
79f3a0b
* Fri Aug 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-19
79f3a0b
- Fix RT#92412
79f3a0b
4f62a4b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-18
4f62a4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4f62a4b
444c1ab
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-17
444c1ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
444c1ab
60f6be9
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.18-16
60f6be9
- Perl 5.18 rebuild
60f6be9
134ce56
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-15
134ce56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
134ce56
4bd1c21
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-14
4bd1c21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4bd1c21
3fffcda
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.18-13
3fffcda
- Perl 5.16 rebuild
3fffcda
682921b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-12
682921b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
682921b
6dac8df
* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.18-11
6dac8df
- Perl mass rebuild
6dac8df
549c23f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-10
549c23f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
549c23f
4236b27
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.18-9
4236b27
- 661697 rebuild for fixing problems with vendorach/lib
4236b27
cb288b8
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.18-8
cb288b8
- Mass rebuild with perl-5.12.0
cb288b8
9d41f54
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.18-7
9d41f54
- rebuild against perl 5.10.1
9d41f54
Chris Weyl db3c7c4
* Fri Aug 28 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.18-6
Chris Weyl db3c7c4
- bump
Chris Weyl db3c7c4
Chris Weyl d49238c
* Thu Aug 27 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.18-5
Chris Weyl d49238c
- update filtering
Chris Weyl d49238c
7888e11
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-4
7888e11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7888e11
Chris Weyl 8299ccb
* Sat Feb 28 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.18-3
Chris Weyl 8299ccb
- strip private Perl libs from autoprov output
Chris Weyl 8299ccb
e4be9fd
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-2
e4be9fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e4be9fd
Chris Weyl c43a1f5
* Wed Jul 16 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.18-1
Chris Weyl c43a1f5
- Specfile autogenerated by cpanspec 1.74.