3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Digest::SHA1 - interface to the SHA-1 algorithm
9 Summary(pl.UTF-8): Digest::SHA1 - interfejs do algorytmu SHA-1
10 Name: perl-Digest-SHA1
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: bd22388f268434f2b24f64e28bf1aa35
18 Patch0: %{name}-reset.patch
19 URL: http://search.cpan.org/dist/Digest-SHA1/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The Digest::SHA1 Perl module allows you to use the NIST SHA-1 message
26 digest algorithm from within Perl programs. The algorithm takes as
27 input a message of arbitrary length and produces as output a 160-bit
28 "fingerprint" or "message digest" of the input.
30 %description -l pl.UTF-8
31 Moduł Perla Digest::SHA1 pozwala używać algorytmu skrótu NIST SHA-1 z
32 programów w Perlu. Algorytm pobiera z wejścia wiadomość dowolnej
33 długości, a na wyjściu produkuje 160-bitowy "odcisk palca" lub "skrót
34 wiadomości" z wejścia.
36 %description -l pt_BR.UTF-8
37 Este módulos Perl permite a utilização do algoritmo de digest de
38 mensagens NIST SHA-1 em programas Perl.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 OPTIMIZE="%{rpmcflags}"
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc Changes README fip180-1.{gif,html}
65 %{perl_vendorarch}/Digest/SHA1.pm
66 %dir %{perl_vendorarch}/auto/Digest/SHA1
67 %attr(755,root,root) %{perl_vendorarch}/auto/Digest/SHA1/SHA1.so
68 %{_mandir}/man3/Digest::SHA1.3pm*