%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Digest-SHA Version: 5.50 Release: 1mamba Summary: Digest::SHA - Perl extension for SHA-1/224/256/384/512 Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/M/MS/MSHELOR/Digest-SHA-%{version}.tar.gz License: GPL, Artistic Requires: perl >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Perl extension for SHA-1/224/256/384/512. %prep %setup -q -n Digest-SHA-%{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}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %exclude %{_bindir}/shasum %exclude %{_mandir}/man1/shasum.1.gz %exclude %{_mandir}/man3/Digest::SHA.3pm.gz %changelog * Mon Dec 20 2010 Automatic Build System 5.50-1mamba - automatic update by autodist * Wed Jan 13 2010 Automatic Build System 5.48-1mamba - automatic update by autodist * Fri Feb 06 2009 Silvan Calarco 5.47-2mamba - exclude man files conflicting with perl 5.10 * Thu Feb 05 2009 Silvan Calarco 5.47-1mamba - automatic update by autodist * Tue Nov 04 2008 Silvan Calarco 5.45-2mamba - automatic rebuild by autodist * Thu Nov 08 2007 Silvan Calarco 5.45-1mamba - package created by autospec