]>
Commit | Line | Data |
---|---|---|
b1701a7a | 1 | # |
2 | # Conditional build: | |
3e5787ff | 3 | %bcond_without tests # Do not perform "make test" |
4 | # | |
56fc2d6e | 5 | %define pdir Crypt |
6 | %define pnam RIPEMD160 | |
b1701a7a | 7 | Summary: Crypt::RIPEMD160 Perl module - RIPEMD160 message digest algorithm |
a2c4488f | 8 | Summary(pl.UTF-8): Moduł Perla Crypt::RIPEMD160 - algorytm skrótu RIPEMD160 |
b1701a7a | 9 | Name: perl-Crypt-RIPEMD160 |
a3bf41c3 | 10 | Version: 0.06 |
3d7ead6c | 11 | Release: 6 |
11d361b5 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
b1701a7a | 14 | Group: Development/Languages/Perl |
add01953 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
a3bf41c3 | 16 | # Source0-md5: f37eae17af81b230104f9d0aca1b2327 |
7c75ce2b JB |
17 | Patch0: %{name}-types.patch |
18 | URL: http://search.cpan.org/dist/Crypt-RIPEMD160/ | |
8efeab8c | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
4ea2ffd1 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
b1701a7a | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | The Crypt::RIPEMD160 module allows you to use the RIPEMD160 Message | |
25 | Digest algorithm from within Perl programs. RIPEMD-160 is a 160-bit | |
26 | cryptographic hash function, designed by Hans Dobbertin, Antoon | |
27 | Bosselaers, and Bart Preneel. It is intended to be used as a secure | |
28 | replacement for the 128-bit hash functions MD4, MD5, and RIPEMD. | |
29 | ||
573c0b21 JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Crypt::RIPEMD160 pozwala na używanie algorytmu skrótu RIPEMD160 | |
32 | z poziomu programów w Perlu. RIPEMD-160 jest 160-bitową | |
33 | kryptograficzną funkcją mieszającą, opracowaną przez Hansa Dobbertina, | |
34 | Antoona Bosselaersa i Barta Preneela. Ma być bezpiecznym zamiennikiem | |
35 | 128-bitowych funkcji mieszających MD4, MD5 i RIPEMD. | |
b1701a7a | 36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
7c75ce2b | 39 | %patch0 -p1 |
b1701a7a | 40 | |
41 | %build | |
4ea2ffd1 | 42 | %{__perl} Makefile.PL \ |
47766885 | 43 | INSTALLDIRS=vendor |
7008a2e1 | 44 | %{__make} \ |
80c593ae | 45 | CC="%{__cc}" \ |
7008a2e1 | 46 | OPTIMIZE="%{rpmcflags}" |
b1701a7a | 47 | |
3e5787ff | 48 | %{?with_tests:%{__make} test} |
b1701a7a | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc README rmd160/doc/*.html | |
4ea2ffd1 | 62 | %{perl_vendorarch}/Crypt/RIPEMD160.pm |
63 | %{perl_vendorarch}/Crypt/RIPEMD160 | |
64 | %dir %{perl_vendorarch}/auto/Crypt/RIPEMD160 | |
65 | %{perl_vendorarch}/auto/Crypt/RIPEMD160/autosplit.ix | |
4ea2ffd1 | 66 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/RIPEMD160/*.so |
b1701a7a | 67 | %{_mandir}/man3/* |