[perl-Hash-MoreUtils] Import.

corsepiu corsepiu at fedoraproject.org
Mon Mar 7 07:53:12 UTC 2011


commit ffe7e9c88995157a815ee0e89e20b2fbffa56d19
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Mon Mar 7 08:53:01 2011 +0100

    Import.

 .gitignore               |    1 +
 perl-Hash-MoreUtils.spec |   60 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0a1603b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Hash-MoreUtils-0.02.tar.gz
diff --git a/perl-Hash-MoreUtils.spec b/perl-Hash-MoreUtils.spec
new file mode 100644
index 0000000..c43ea33
--- /dev/null
+++ b/perl-Hash-MoreUtils.spec
@@ -0,0 +1,60 @@
+Name:           perl-Hash-MoreUtils
+Version:        0.02
+Release:        1%{?dist}
+Summary:        Provide the stuff missing in Hash::Util
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Hash-MoreUtils/
+Source0:        http://www.cpan.org/authors/id/R/RE/REHSACK/Hash-MoreUtils-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# For improved tests
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
+BuildRequires:  perl(Test::Pod) >= 1.22
+BuildRequires:  perl(Test::CheckManifest) >= 0.9
+
+%description
+Similar to List::MoreUtils, Hash::MoreUtils contains trivial but commonly-
+used functionality for hashes.
+
+%prep
+# Unpackage tarball in a subdirectory, otherwise the testsuite will fail.
+%setup -q -c -n %{name}-%{version}
+%setup -q -T -D -n %{name}-%{version} -a0
+
+%build
+cd Hash-MoreUtils-%{version}
+%{__perl} Build.PL installdirs=vendor
+./Build
+cd ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd Hash-MoreUtils-%{version}
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+cd ..
+
+%check
+cd Hash-MoreUtils-%{version}
+RELEASE_TESTING=1 ./Build test
+cd ..
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Hash-MoreUtils-%{version}/Changes Hash-MoreUtils-%{version}/README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Feb 05 2011 Ralf Corsépius <corsepiu at fedoraproject.org> 0.02-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..cce267a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07350a6b0813fbe88b8b48ef786dda98  Hash-MoreUtils-0.02.tar.gz



More information about the perl-devel mailing list