.gear/rules | 2 + .../tags/52367dc15dfd6b3a13f7feb2c7c124022adae20f | 13 +++ .gear/tags/list | 1 + SHA1.pm | 18 +--- perl-Digest-SHA1.spec | 83 ++++++++++++++++++++ 5 files changed, 104 insertions(+), 13 deletions(-) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..af7868f --- /dev/null +++ b/.gear/rules @@ -0,0 +1,2 @@ +tar: @version@:. name=Digest-SHA1-@version@ +diff: @version@:. . name=perl-Digest-SHA1-@version@-@release@.patch diff --git a/.gear/tags/52367dc15dfd6b3a13f7feb2c7c124022adae20f b/.gear/tags/52367dc15dfd6b3a13f7feb2c7c124022adae20f new file mode 100644 index 0000000..53db2b9 --- /dev/null +++ b/.gear/tags/52367dc15dfd6b3a13f7feb2c7c124022adae20f @@ -0,0 +1,13 @@ +object 99170c1059470e90bafeab70897f00af1621d100 +type commit +tag 2.11 +tagger Alexey Tourbin 1176949606 +0400 + +2.11 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.7 (GNU/Linux) + +iD8DBQBGJtNmfBKgtDjnu0YRArDsAJ4ikCrKM7RXqccCa3t/bF1onG+kOgCgynmD +y3ARkSN3iio7+W1X2EbrRqg= +=oh4/ +-----END PGP SIGNATURE----- diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..bf774af --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +52367dc15dfd6b3a13f7feb2c7c124022adae20f 2.11 diff --git a/SHA1.pm b/SHA1.pm index 4951b49..8246794 100644 --- a/SHA1.pm +++ b/SHA1.pm @@ -9,19 +9,11 @@ require Exporter; *import = \&Exporter::import; @EXPORT_OK = qw(sha1 sha1_hex sha1_base64 sha1_transform); -require DynaLoader; -@ISA=qw(DynaLoader); - -eval { - require Digest::base; - push(@ISA, 'Digest::base'); -}; -if ($@) { - my $err = $@; - *add_bits = sub { die $err }; -} - -Digest::SHA1->bootstrap($VERSION); +require Digest::base; +push(@ISA, 'Digest::base'); + +require XSLoader; +XSLoader::load(__PACKAGE__, $VERSION); 1; __END__ diff --git a/perl-Digest-SHA1.spec b/perl-Digest-SHA1.spec new file mode 100644 index 0000000..56e3185 --- /dev/null +++ b/perl-Digest-SHA1.spec @@ -0,0 +1,83 @@ +%define dist Digest-SHA1 +Name: perl-%dist +Version: 2.11 +Release: alt3 + +Summary: Perl interface to the SHA1 algorithm +License: GPL or Artistic +Group: Development/Perl + +URL: %CPAN %dist +Source: %dist-%version.tar +Patch: %name-%version-%release.patch + +# Automatically added by buildreq on Fri Apr 03 2009 +BuildRequires: perl-devel + +%description +The Digest::SHA1 module allows you to use the NIST SHA-1 message +digest algorithm from within Perl programs. The algorithm takes +as input a message of arbitrary length and produces as output +a 160-bit "fingerprint" or "message digest" of the input. + +%prep +%setup -q -n %dist-%version +%patch -p1 + +%build +%perl_vendor_build + +%install +%perl_vendor_install + +%files +%doc Changes README +%perl_vendor_autolib/Digest* +%perl_vendor_archlib/Digest* + +%changelog +* Fri Apr 03 2009 Alexey Tourbin 2.11-alt3 +- rebuild + +* Thu Apr 19 2007 Alexey Tourbin 2.11-alt2 +- cleanup + +* Mon May 22 2006 Alexey Tourbin 2.11-alt1 +- 2.10 -> 2.11 + +* Wed Dec 15 2004 Alexey Tourbin 2.10-alt2 +- rebuild in new environment +- manual pages not packaged (use perldoc) + +* Sun May 09 2004 Alexey Tourbin 2.10-alt1 +- 2.07 -> 2.10 +- reset.patch dropped, dependency on Digest/base.pm added instead + +* Thu Dec 11 2003 Alexey Tourbin 2.07-alt2 +- reset.patch: `reset' method restored (fixes Digest::HMAC) + +* Sat Dec 06 2003 Alexey Tourbin 2.07-alt1 +- 2.07 +- description updated + +* Wed Mar 19 2003 Stanislav Ievlev 2.02-alt1 +- 2.02 + +* Thu Oct 31 2002 Stanislav Ievlev 2.01-alt2 +- rebuild with new key + +* Wed Mar 27 2002 Stanislav Ievlev 2.01-alt1 +- 2.01 + +* Mon Jul 23 2001 Stanislav Ievlev 2.00-alt2 +- Rebuilt with new perl + +* Mon Jun 25 2001 Konstantin Volckov 2.00-alt1 +- First build for Sisyphus +- Some spec cleanup + +* Sun Jun 24 2001 Christian Belisle 2.00-2mdk +- Clean file list. + +* Fri Jun 22 2001 Christian Belisle 2.00-1mdk +- First release, was in perl-Digest-MD5 package before.