[perl-Digest-MD5-File] Initial import of perl-Digest-MD5-File-0.07-2

Paul Howarth pghmcfc at fedoraproject.org
Thu May 5 20:42:20 UTC 2011


commit 84cf70f46a7e611b4290504a12ab5526a7f6c294
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu May 5 21:41:21 2011 +0100

    Initial import of perl-Digest-MD5-File-0.07-2
    
    Get MD5 sums for files of a given path or content of a given URL.

 .gitignore                |    1 +
 perl-Digest-MD5-File.spec |   58 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef4af13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Digest-MD5-File-0.07.tar.gz
diff --git a/perl-Digest-MD5-File.spec b/perl-Digest-MD5-File.spec
new file mode 100644
index 0000000..b29040c
--- /dev/null
+++ b/perl-Digest-MD5-File.spec
@@ -0,0 +1,58 @@
+Name:		perl-Digest-MD5-File
+Version:	0.07
+Release:	2%{?dist}
+Summary:	Perl extension for getting MD5 sums for files and URLs
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/Digest-MD4/
+Source0:	http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/Digest-MD5-File-%{version}.tar.gz
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildRequires:	perl(Digest::MD5)
+BuildRequires:	perl(Encode)
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(File::Spec)
+BuildRequires:	perl(LWP::UserAgent)
+BuildRequires:	perl(Test::More)
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+# Not picked up by rpm
+Requires:	perl(Encode)
+Requires:	perl(Exporter)
+Requires:	perl(File::Spec)
+
+%description
+Get MD5 sums for files of a given path or content of a given URL.
+
+%prep
+%setup -q -n Digest-MD5-File-%{version}
+
+%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::MD5::File.3pm*
+
+%changelog
+* Thu May  5 2011 Paul Howarth <paul at city-fan.org> - 0.07-2
+- BR/R: perl(Encode), perl(Exporter), perl(File::Spec) (#702277)
+
+* Thu May  5 2011 Paul Howarth <paul at city-fan.org> - 0.07-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..a723d65 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1fd9c101fededbdf140f1cedecd4056e  Digest-MD5-File-0.07.tar.gz


More information about the scm-commits mailing list