# rpm can't handle cpan updates well, so let's make version 1.40 %define real_version 1.39_01 Name: perl-Archive-Tar Epoch: 1 Version: 1.39.1 Release: 2 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-%{real_version}.tar.gz Patch0: sa-update.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 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-%{real_version} %patch0 -p1 %build %{__perl} Makefile.PL -n INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check || : make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README %{_bindir}/* %{perl_vendorlib}/Archive/ %{_mandir}/man3/*.3* %{_mandir}/man1/*.1* %changelog * Mon Jul 26 2010 Support - 1.39.1-2 - Fix for spamassassin sa-update - Related: rhbz#612879 * Wed Jun 2 2010 Marcela Mašláňová - 1.39.1-1.el5.1 - cleaning spec and nvr - Related: rhbz#595733 * Tue Jun 1 2010 Marcela Mašláňová - 1.40-1.el5.1 - update to real version 1.39_01, but for rpm updates, it will be 1.40 - Resolves: rhbz#595733 * Fri May 28 2010 Marcela Mašláňová - 1.40-1 - update to 1.40 - Resolves: rhbz#595733 * Tue Sep 19 2006 Robin Norwood - 1.30-1 - Bump to 1.30 * Wed Jul 12 2006 Jesse Keating - sh: line 0: fg: no job control - rebuild * Wed Mar 08 2006 Jason Vas Dias - 1.29-1 - Upgrade to upstream version 1.29 * Fri Feb 02 2006 Jason Vas Dias - 1.28-1 - Upgrade to upstream version 1.28 - Rebuild for perl-5.8.8 * Fri Dec 16 2005 Jesse Keating - rebuilt for new gcc * Sun Nov 06 2005 Florian La Roche - 1.26 * Mon Apr 25 2005 Warren Togami - 1.23-4 - remove beehive workaround * Sun Apr 03 2005 Jose Pedro Oliveira - 1.23-1 - Update to 1.23. - Bring up to date with current Fedora.Extras perl spec template. * Wed Sep 22 2004 Chip Turner 1.08-3 - rebuild * Fri Feb 13 2004 Chip Turner 1.08-1 - update to upstream 1.08 * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Aug 6 2002 Chip Turner - automated release bump and build * Fri Feb 08 2002 cturner@redhat.com - Specfile autogenerated