]>
Commit | Line | Data |
---|---|---|
a3d44a99 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
0e485ed5 | 5 | %include /usr/lib/rpm/macros.perl |
2173b856 | 6 | %define pdir Digest |
7 | %define pnam SHA1 | |
1309fd4e | 8 | Summary: Digest::SHA1 - interface to the SHA-1 algorithm |
54ef0379 | 9 | Summary(pl.UTF-8): Digest::SHA1 - interfejs do algorytmu SHA-1 |
30907004 | 10 | Name: perl-Digest-SHA1 |
9a82b2fd | 11 | Version: 2.13 |
cf4742e5 | 12 | Release: 7 |
1309fd4e | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
30907004 | 15 | Group: Development/Languages/Perl |
9e4a8399 | 16 | Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz |
9a82b2fd | 17 | # Source0-md5: bd22388f268434f2b24f64e28bf1aa35 |
4f874d3a | 18 | Patch0: %{name}-reset.patch |
6c8f6476 | 19 | URL: http://search.cpan.org/dist/Digest-SHA1/ |
4f874d3a | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
8526f7e0 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
30907004 JR |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
1309fd4e | 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 | |
30907004 JR |
27 | input a message of arbitrary length and produces as output a 160-bit |
28 | "fingerprint" or "message digest" of the input. | |
29 | ||
18235d24 JR |
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. | |
4f019f20 | 35 | |
18235d24 JR |
36 | %description -l pt_BR.UTF-8 |
37 | Este módulos Perl permite a utilização do algoritmo de digest de | |
f7d7209d | 38 | mensagens NIST SHA-1 em programas Perl. |
39 | ||
30907004 | 40 | %prep |
0e485ed5 | 41 | %setup -q -n %{pdir}-%{pnam}-%{version} |
4f874d3a | 42 | %patch0 -p1 |
30907004 JR |
43 | |
44 | %build | |
7284b64f | 45 | %{__perl} Makefile.PL \ |
64568f25 | 46 | INSTALLDIRS=vendor |
8526f7e0 | 47 | %{__make} \ |
ec08435d | 48 | CC="%{__cc}" \ |
8526f7e0 | 49 | OPTIMIZE="%{rpmcflags}" |
a3d44a99 JB |
50 | |
51 | %{?with_tests:%{__make} test} | |
30907004 JR |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
30907004 | 55 | |
8526f7e0 | 56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
30907004 | 58 | |
30907004 JR |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
9e4a8399 JB |
64 | %doc Changes README fip180-1.{gif,html} |
65 | %{perl_vendorarch}/Digest/SHA1.pm | |
66 | %dir %{perl_vendorarch}/auto/Digest/SHA1 | |
9e4a8399 JB |
67 | %attr(755,root,root) %{perl_vendorarch}/auto/Digest/SHA1/SHA1.so |
68 | %{_mandir}/man3/Digest::SHA1.3pm* |