%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Digest-MD4 Version: 1.5 Release: 2mamba Summary: Digest::MD4 - MD4 library for Perl Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/DigestMD4/Digest-MD4-%{version}.tar.gz URL: http://www.cpan.org License: GPL BuildRoot: %{_tmppath}/perl-root Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: perl-devel >= %perl_major_ver ## AUTOBUILDREQ-END %description The Digest::MD5 module allows you to use the RSA Data Security Inc. MD5 Message Digest algorithm from within Perl programs. The algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. MD5 is described in RFC 1321. %prep %setup -q -n Digest-MD4-%{version} %build perl Makefile.PL %make %make test %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %make pure_install DESTDIR=%{buildroot} 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} rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Tue Nov 04 2008 Silvan Calarco 1.5-2mamba - automatic rebuild by autodist * Wed Jul 02 2008 Tiziana Ferro 1.5-1mamba - update to 1.5 * Wed Apr 27 2005 Davide Madrisan 1.3-2qilnx - fixed perl requirement * Thu Feb 12 2004 Silvan Calarco 1.3-1qilnx - first build