[perl-Digest-JHash] Import.

corsepiu corsepiu at fedoraproject.org
Mon Feb 28 18:02:55 UTC 2011


commit b09dab7bf70c296804ffa1933b656a682bf864a2
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Mon Feb 28 19:02:38 2011 +0100

    Import.

 .gitignore             |    1 +
 perl-Digest-JHash.spec |   59 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..49b9504 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Digest-JHash-0.07.tar.gz
diff --git a/perl-Digest-JHash.spec b/perl-Digest-JHash.spec
new file mode 100644
index 0000000..e4c46fc
--- /dev/null
+++ b/perl-Digest-JHash.spec
@@ -0,0 +1,59 @@
+Name:           perl-Digest-JHash
+Version:        0.07
+Release:        1%{?dist}
+Summary:        Perl extension for 32 bit Jenkins Hashing Algorithm
+License:        Artistic 2.0
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Digest-JHash/
+Source0:        http://www.cpan.org/authors/id/S/SH/SHLOMIF/Digest-JHash-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+
+# For improved testing
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+The Digest::JHash module allows you to use the fast JHash hashing algorithm
+developed by Bob Jenkins from within Perl programs. The algorithm takes as
+input a message of arbitrary length and produces as output a 32-bit
+"message digest" of the input in the form of an unsigned long integer.
+
+%prep
+%setup -q -n Digest-JHash-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+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' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test RELEASE_TESTING=1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Digest*
+%{_mandir}/man3/*
+
+%changelog
+* Sat Feb 05 2011 Ralf Corsépius <corsepiu at fedoraproject.org> 0.07-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..b089b3f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+273adb11b5c4701dc43273d82ab26dd9  Digest-JHash-0.07.tar.gz



More information about the perl-devel mailing list