diff --git a/.gitignore b/.gitignore index e69de29..e806163 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Digest-Perl-MD5-[0-9.]*.tar.gz diff --git a/perl-Digest-Perl-MD5.spec b/perl-Digest-Perl-MD5.spec new file mode 100644 index 0000000..e7fa169 --- /dev/null +++ b/perl-Digest-Perl-MD5.spec @@ -0,0 +1,53 @@ +Name: perl-Digest-Perl-MD5 +Version: 1.8 +Release: 2%{?dist} +Summary: Perl implementation of Ron Rivest's MD5 Algorithm +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Digest-Perl-MD5/ +Source0: http://search.cpan.org/CPAN/authors/id/D/DE/DELTA/Digest-Perl-MD5-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +A pure-perl implementation of Ron Rivest's MD5 Algorithm. + +%prep +%setup -q -n Digest-Perl-MD5-%{version} + +# Remove spurious exec permissions +chmod -c -x README lib/Digest/Perl/MD5.pm + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null +%{_fixperms} %{buildroot} + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc CHANGES README +%{perl_vendorlib}/Digest/ +%{_mandir}/man3/Digest::Perl::MD5.3pm* + +%changelog +* Mon Aug 22 2011 Paul Howarth - 1.8-2 +- BR: perl (Exporter) and perl(Test) (#732484) + +* Mon Aug 22 2011 Paul Howarth - 1.8-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..5f2ef41 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8b54271ffe5f174456dd68b79bf3f8f3 Digest-Perl-MD5-1.8.tar.gz