| 1 | Name: perl-Digest-SHA1
|
|---|
| 2 | Version: 2.13
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Digest-SHA1 Perl module
|
|---|
| 5 |
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | License: GPL+ or Artistic
|
|---|
| 8 | URL: http://search.cpan.org/dist/Digest-SHA1/
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-%{version}.tar.gz
|
|---|
| 11 | BuildRequires: findutils
|
|---|
| 12 | BuildRequires: gcc
|
|---|
| 13 | #BuildRequires: glibc-common
|
|---|
| 14 | BuildRequires: make
|
|---|
| 15 | #BuildRequires: perl-interpreter
|
|---|
| 16 | BuildRequires: perl-devel
|
|---|
| 17 | BuildRequires: perl-generators
|
|---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 19 | # Run-time
|
|---|
| 20 | BuildRequires: perl(Digest::base)
|
|---|
| 21 | BuildRequires: perl(DynaLoader)
|
|---|
| 22 | BuildRequires: perl(Exporter)
|
|---|
| 23 | BuildRequires: perl(strict)
|
|---|
| 24 | BuildRequires: perl(vars)
|
|---|
| 25 | # Tests
|
|---|
| 26 | BuildRequires: perl(Test)
|
|---|
| 27 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 28 | Recommends: perl(Digest::base)
|
|---|
| 29 |
|
|---|
| 30 | %description
|
|---|
| 31 | The Digest::SHA1 module allows you to use the NIST SHA-1 message
|
|---|
| 32 | digest algorithm from within Perl programs. The algorithm takes as
|
|---|
| 33 | input a message of arbitrary length and produces as output a 160-bit
|
|---|
| 34 | "fingerprint" or "message digest" of the input.
|
|---|
| 35 |
|
|---|
| 36 | The Digest::SHA1 module provide a procedural interface for simple use,
|
|---|
| 37 | as well as an object oriented interface that can handle messages of
|
|---|
| 38 | arbitrary length and which can read files directly.
|
|---|
| 39 |
|
|---|
| 40 | A binary digest will be 20 bytes long. A hex digest will be 40
|
|---|
| 41 | characters long. A base64 digest will be 27 characters long.
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | %prep
|
|---|
| 45 | %setup -q -n Digest-SHA1-%{version}
|
|---|
| 46 | #f=Changes ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
|---|
| 47 |
|
|---|
| 48 | %build
|
|---|
| 49 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
|
|---|
| 50 | make %{?_smp_mflags}
|
|---|
| 51 | make manifypods
|
|---|
| 52 |
|
|---|
| 53 | %install
|
|---|
| 54 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 55 | find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -delete
|
|---|
| 56 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|---|
| 57 | chmod -R u+w $RPM_BUILD_ROOT/*
|
|---|
| 58 |
|
|---|
| 59 | %check
|
|---|
| 60 | #make test
|
|---|
| 61 |
|
|---|
| 62 | %files
|
|---|
| 63 | %doc Changes README fip180-1.gif fip180-1.html
|
|---|
| 64 | %{perl_vendorarch}/Digest/
|
|---|
| 65 | %{perl_vendorarch}/auto/Digest/
|
|---|
| 66 | %{_mandir}/man3/*.3*
|
|---|
| 67 |
|
|---|
| 68 | %changelog
|
|---|
| 69 | * Fri Mar 02 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.13-1
|
|---|
| 70 | - initial rpm
|
|---|