Name: perl-IO-Zlib Version: 1.04 Release: 4.2.%{mysig} Summary: Perl IO:: style interface to Compress::Zlib Group: Development/Libraries License: GPL or Artistic URL: http://search.cpan.org/dist/IO-Zlib/ Source0: http://www.cpan.org/authors/id/T/TO/TOMHUGHES/IO-Zlib-1.04.tar.gz BuildRoot: %{_tmppath}/%{name}-root BuildArch: noarch BuildRequires: perl >= 1:5.6.1 BuildRequires: perl(Compress::Zlib) #Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Compress::Zlib) %description This modules provides an IO:: style interface to the Compress::Zlib package. The main advantage is that you can use an IO::Zlib object in much the same way as an IO::File object so you can have common code that doesn't know which sort of file it is using. %prep %setup -q -n IO-Zlib-%{version} %build echo | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make make test %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT/$installarchlib make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v perllocal.pod | \ grep -v "\.packlist" > %{name}-%{version}-filelist if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/%{name}-%{version} %files -f %{name}-%{version}-filelist %defattr(-,root,root) %changelog * Tue Feb 06 2007 Milan Kerslager 1.04-4.2.ker.rhel3 - initial version