%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Digest-SHA1 Version: 2.13 Release: 1mamba Summary: Digest::SHA1 - Perl module for using the NIST SHA-1 message digest algorithm Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://search.cpan.org/dist/Digest-SHA1/ Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-%{version}.tar.gz License: Artistic BuildRequires: perl-devel >= %{perl_major_ver} Requires: perl >= %{perl_major_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-root %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 perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make make test %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f .packlist %defattr(-,root,root) %doc Changes README fip180-1* %changelog * Sat Jul 10 2010 Automatic Build System 2.13-1mamba - automatic update by autodist * Sat Jun 06 2009 Automatic Build System 2.12-1mamba - automatic update by autodist * Tue Nov 04 2008 Silvan Calarco 2.11-2mamba - automatic rebuild by autodist * Thu Sep 13 2007 Aleph0 2.11-1mamba - update to 2.11 * Thu Nov 10 2005 Stefano Cotta Ramusino 2.10-1qilnx - update to version 2.10 by autospec - specfile updated and fixed * Wed Jan 19 2005 Silvan Calarco 2.06-4qilnx - fix for perl version requirement (>= instead of =) * Tue Feb 24 2004 Davide Madrisan 2.06-3qilnx - rebuilt with Perl 5.8.2 * Fri Jan 02 2004 Davide Madrisan 2.06-2qilnx - rebuilt with Perl 5.8.1 - specfile updated and fixed * Wed Nov 05 2003 Davide Madrisan 2.06-1qilnx - First build (needed by coreutils 5.0.x)