diff --git a/perl-Digest-MD4.spec b/perl-Digest-MD4.spec index c835cd6..cd6ccbf 100644 --- a/perl-Digest-MD4.spec +++ b/perl-Digest-MD4.spec @@ -1,49 +1,41 @@ -Name: perl-Digest-MD4 -Version: 1.5 -Release: 3%{?dist}.1 -Summary: Perl interface to the MD4 Algorithm - -Group: Development/Libraries -License: GPL+ or Artistic -URL: http://search.cpan.org/dist/Digest-MD4/ -Source0: http://www.cpan.org/authors/id/M/MI/MIKEM/DigestMD4/Digest-MD4-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Name: perl-Digest-MD4 +Version: 1.5 +Release: 4%{?dist} +Summary: Perl interface to the MD4 Algorithm +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Digest-MD4/ +Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/DigestMD4/Digest-MD4-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(ExtUtils::MakeMaker), db4-devel, gdbm-devel +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description -The Digest::MD4 module allows you to use the RSA Data Security -Inc. MD4 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. - +The Digest::MD4 module allows you to use the RSA Data Security Inc. MD4 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. %prep %setup -q -n Digest-MD4-%{version} - %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" -make %{?_smp_mflags} - +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - +%{__rm} -rf %{buildroot} +%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} +/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' +/usr/bin/find %{buildroot} -type f -name '*.bs' -empty -exec %{__rm} -f {} ';' +/usr/bin/find %{buildroot} -depth -type d -exec %{__rmdir} {} 2>/dev/null ';' +%{__chmod} -R u+w %{buildroot}/* %check -make test - +%{__make} test %clean -rm -rf $RPM_BUILD_ROOT - +%{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) @@ -52,8 +44,12 @@ rm -rf $RPM_BUILD_ROOT %{perl_vendorarch}/auto/Digest/ %{_mandir}/man3/*.3pm* - %changelog +* Wed Nov 28 2007 Paul Howarth - 1.5-4 +- cosmetic spec changes for new maintainer's preferences +- fix argument order for find with -depth +- add buildreqs db4-devel and gdbm-devel for alignment optimization + * Mon Oct 15 2007 Tom "spot" Callaway - 1.5-3.1 - correct license tag - add BR: perl(ExtUtils::MakeMaker)