Name: perl-PerlIO-gzip Version: 0.18 Release: 8%{?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 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: zlib-devel # perl BuildRequires: perl(ExtUtils::MakeMaker) # test BuildRequires: perl(Test::More) %{?perl_default_filter} %description PerlIO::gzip provides a PerlIO layer that manipulates files in the format used by the gzip program. Compression and decompression are implemented. This is akin to Compress::Zlib, except that it operates at the lower PerlIO layer. %prep %setup -q -n PerlIO-gzip-%{version} perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t cat README | iconv -f ISO-8859-1 -t UTF-8 > foo && mv foo README %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" 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 \; %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README t/ %{perl_vendorarch}/auto/* %{perl_vendorarch}/PerlIO* %{_mandir}/man3/* %changelog * Tue May 04 2010 Marcela Maslanova - 0.18-8 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 0.18-7 - rebuild against perl 5.10.1 * Fri Aug 28 2009 Chris Weyl 0.18-6 - bump * Thu Aug 27 2009 Chris Weyl 0.18-5 - update filtering * Sun Jul 26 2009 Fedora Release Engineering - 0.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Feb 28 2009 Chris Weyl 0.18-3 - strip private Perl libs from autoprov output * Thu Feb 26 2009 Fedora Release Engineering - 0.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 16 2008 Chris Weyl 0.18-1 - Specfile autogenerated by cpanspec 1.74.