Name: perl-Archive-Tar Version: 1.29 Release: 1.%{mysig} Summary: A module for Perl manipulation of .tar files Group: Development/Libraries License: GPL or Artistic URL: http://search.cpan.org/dist/Archive-Tar/ Source0: http://www.cpan.org/authors/id/K/KA/KANE/Archive-Tar-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-root BuildArch: noarch BuildRequires: perl >= 1:5.6.1 BuildRequires: perl(IO::String), perl(IO::Zlib) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Compress::Zlib), perl(IO::Zlib) %description Archive::Tar provides an object oriented mechanism for handling tar files. It provides class methods for quick and easy files handling while also allowing for the creation of tar file objects for custom manipulation. If you have the IO::Zlib module installed, Archive::Tar will also support compressed or gzipped tar files. %prep %setup -q -n Archive-Tar-%{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.29-1.ker.rhel3 - initial version