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