.gear/rules | 2 + .../tags/0458ccf60202de72fc28ded50de510571fc191a3 | 13 ++++ .gear/tags/list | 1 + lib/Archive/Tar/Constant.pm | 6 +- perl-Archive-Tar.spec | 75 ++++++++++++++++++++ 5 files changed, 93 insertions(+), 4 deletions(-) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..1c01c38 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,2 @@ +tar: @version@:. name=Archive-Tar-@version@ +diff: @version@:. . name=perl-Archive-Tar-@version@-@release@.patch diff --git a/.gear/tags/0458ccf60202de72fc28ded50de510571fc191a3 b/.gear/tags/0458ccf60202de72fc28ded50de510571fc191a3 new file mode 100644 index 0000000..e26b823 --- /dev/null +++ b/.gear/tags/0458ccf60202de72fc28ded50de510571fc191a3 @@ -0,0 +1,13 @@ +object 85ea3305c7756ef763a4b2ecc6604c43c4f65252 +type commit +tag 1.38 +tagger Alexey Tourbin 1208447600 +0400 + +1.38 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iEYEABECAAYFAkgHcnAACgkQfBKgtDjnu0bBFQCcCy8xGhy4ekGD+2nnL1yFhjSK +sJoAoJkdlOxsSLRVFqJZ2eCG7QtxIAgQ +=Mm3W +-----END PGP SIGNATURE----- diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..44baf04 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +0458ccf60202de72fc28ded50de510571fc191a3 1.38 diff --git a/lib/Archive/Tar/Constant.pm b/lib/Archive/Tar/Constant.pm index 00416d5..0108644 100644 --- a/lib/Archive/Tar/Constant.pm +++ b/lib/Archive/Tar/Constant.pm @@ -64,10 +64,8 @@ use constant LONGLINK_NAME => '././@LongLink'; ### allow ZLIB to be turned off using ENV ### DEBUG only -use constant ZLIB => do { !$ENV{'PERL5_AT_NO_ZLIB'} and - eval { require IO::Zlib }; - $ENV{'PERL5_AT_NO_ZLIB'} || $@ ? 0 : 1 }; - +use constant ZLIB => do { $ENV{'PERL5_AT_NO_ZLIB'} ? 0 : require IO::Zlib }; + use constant GZIP_MAGIC_NUM => qr/^(?:\037\213|\037\235)/; use constant CAN_CHOWN => do { ($> == 0 and $^O ne "MacOS" and $^O ne "MSWin32") }; diff --git a/perl-Archive-Tar.spec b/perl-Archive-Tar.spec new file mode 100644 index 0000000..12d2b24 --- /dev/null +++ b/perl-Archive-Tar.spec @@ -0,0 +1,75 @@ +%define dist Archive-Tar +Name: perl-%dist +Version: 1.38 +Release: alt1 + +Summary: Module for creation and manipulation of tar archives +License: GPL or Artistic +Group: Development/Perl + +URL: %CPAN %dist +Source: %dist-%version.tar +Patch: %name-%version-%release.patch + +BuildArch: noarch + +# Automatically added by buildreq on Thu Apr 17 2008 +BuildRequires: perl-IO-String perl-IO-Zlib perl-PerlIO perl-Test-Pod perl-Text-Diff + +%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. + +%prep +%setup -q -n %dist-%version +%patch -p1 + +%build +%perl_vendor_build + +%install +%perl_vendor_install + +%files +%doc CHANGES README +%_bindir/ptar +%_bindir/ptardiff +%dir %perl_vendor_privlib/Archive +%perl_vendor_privlib/Archive/Tar.pm +%dir %perl_vendor_privlib/Archive/Tar +%perl_vendor_privlib/Archive/Tar/*.pm + +%changelog +* Fri Apr 18 2008 Alexey Tourbin 1.38-alt1 +- 1.29 -> 1.38 + +* Sat Mar 25 2006 Andrey Brindeew 1.29-alt1 +- 1.29 release + +* Tue Aug 23 2005 Andrey Brindeew 1.26-alt1 +- 1.26 release +- perl-PerlIO added to BuildReqs list + +* Sun Nov 28 2004 Andrey Brindeew 1.22-alt1 +- 1.22 + +* Sun Oct 03 2004 Andrey Brindeew 1.10-alt1 +- 1.10 + +* Sat Mar 06 2004 Andrey Brindeew 1.08-alt1 +- 1.08 + +* Mon Nov 24 2003 Andrey Brindeew 1.07-alt1 +- 1.07 + +* Thu Sep 04 2003 Andrey Brindeew 1.05-alt1 +- 1.05 + +* Thu Sep 04 2003 Andrey Brindeew 1.04-alt2 +- Syntax checking will be happy now. +- URL was fixed. + +* Wed Jul 30 2003 Andrey Brindeew 1.04-alt1 +- First build for ALT Linux. +