source: spec/trunk/SPECS/perl-Digest-SHA1.spec@ 1504

Last change on this file since 1504 was 1320, checked in by Silvan Scherrer, 8 years ago

spec: perl-Digest-SHA1: Release version 2.13-1.

File size: 2.2 KB
Line 
1Name: perl-Digest-SHA1
2Version: 2.13
3Release: 1%{?dist}
4Summary: Digest-SHA1 Perl module
5
6Group: Development/Libraries
7License: GPL+ or Artistic
8URL: http://search.cpan.org/dist/Digest-SHA1/
9Vendor: bww bitwise works GmbH
10Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-%{version}.tar.gz
11BuildRequires: findutils
12BuildRequires: gcc
13#BuildRequires: glibc-common
14BuildRequires: make
15#BuildRequires: perl-interpreter
16BuildRequires: perl-devel
17BuildRequires: perl-generators
18BuildRequires: perl(ExtUtils::MakeMaker)
19# Run-time
20BuildRequires: perl(Digest::base)
21BuildRequires: perl(DynaLoader)
22BuildRequires: perl(Exporter)
23BuildRequires: perl(strict)
24BuildRequires: perl(vars)
25# Tests
26BuildRequires: perl(Test)
27Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
28Recommends: perl(Digest::base)
29
30%description
31The Digest::SHA1 module allows you to use the NIST SHA-1 message
32digest algorithm from within Perl programs. The algorithm takes as
33input a message of arbitrary length and produces as output a 160-bit
34"fingerprint" or "message digest" of the input.
35
36The Digest::SHA1 module provide a procedural interface for simple use,
37as well as an object oriented interface that can handle messages of
38arbitrary length and which can read files directly.
39
40A binary digest will be 20 bytes long. A hex digest will be 40
41characters 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
49perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
50make %{?_smp_mflags}
51make manifypods
52
53%install
54make pure_install DESTDIR=$RPM_BUILD_ROOT
55find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -delete
56find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
57chmod -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
Note: See TracBrowser for help on using the repository browser.