Name: perl-PerlIO-gzip Version: 0.18 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 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) %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 * Wed Jul 16 2008 Chris Weyl 0.18-1 - Specfile autogenerated by cpanspec 1.74.