diff --git a/.cvsignore b/.cvsignore index e69de29..f722063 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Digest-SHA1-2.01.tar.gz diff --git a/perl-Digest-SHA1.spec b/perl-Digest-SHA1.spec new file mode 100644 index 0000000..c7b19c8 --- /dev/null +++ b/perl-Digest-SHA1.spec @@ -0,0 +1,64 @@ +Name: perl-Digest-SHA1 +Version: 2.01 +Release: 3 +Packager: cturner@redhat.com +Summary: Digest-SHA1 Perl module +License: distributable +Group: Development/Libraries +URL: http://search.cpan.org/search?mode=module&query=Digest%3a%3aSHA1 +BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: perl >= 0:5.00503 +Source0: Digest-SHA1-2.01.tar.gz + +%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. + +The Digest::SHA1 module provide a procedural interface for simple use, +as well as an object oriented interface that can handle messages of +arbitrary length and which can read files directly. + +A binary digest will be 20 bytes long. A hex digest will be 40 +characters long. A base64 digest will be 27 characters long. + +%prep +%setup -q -n Digest-SHA1-%{version} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor +make +make test + + +%clean +rm -rf $RPM_BUILD_ROOT +%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/usr -type f -print | \ + sed "s@^$RPM_BUILD_ROOT@@g" | \ + grep -v perllocal.pod | \ + grep -v "\.packlist" > Digest-SHA1-2.01-filelist +if [ "$(cat Digest-SHA1-2.01-filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit -1 +fi + +%files -f Digest-SHA1-2.01-filelist +%defattr(-,root,root) + +%changelog +* Thu Jun 27 2002 Chip Turner +- description update + +* Sat Mar 16 2002 cturner@redhat.com +- Specfile autogenerated + diff --git a/sources b/sources index e69de29..92642a4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e9bcfdd913bf1f417ca9f890613391d6 Digest-SHA1-2.01.tar.gz