]>
Commit | Line | Data |
---|---|---|
2ab3aa2c | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
4d6757a2 | 5 | %include /usr/lib/rpm/macros.perl |
17e4ab56 | 6 | %define pdir Crypt |
7 | %define pnam Blowfish | |
f04f7134 | 8 | Summary: Crypt::Blowfish - Perl Blowfish encryption module |
84ce462a | 9 | Summary(pl.UTF-8): Crypt::Blowfish - moduł Perla dla szyfrowania Blowfish |
4d6757a2 | 10 | Name: perl-Crypt-Blowfish |
b7ac1d89 | 11 | Version: 2.12 |
34393211 | 12 | Release: 4 |
b7404c03 | 13 | License: BSD-like (see COPYRIGHT) |
4d6757a2 | 14 | Group: Development/Languages/Perl |
e0660606 | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
b7ac1d89 | 16 | # Source0-md5: a0eca17addc8bdaf38c044c365a8800c |
2951a02c | 17 | Patch0: build.patch |
c9a96498 | 18 | URL: http://search.cpan.org/dist/Crypt-Blowfish/ |
e0660606 | 19 | %{?with_tests:BuildRequires: perl-Crypt-CBC >= 1.22} |
7e72c2c1 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
e9dec12c | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
4d6757a2 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
f04f7134 | 25 | Crypt::Blowfish Perl module contains an implementation of the Blowfish |
b7404c03 | 26 | cryptography algorithm. |
4d6757a2 | 27 | |
e9829e22 JR |
28 | %description -l pl.UTF-8 |
29 | Moduł Perla Crypt::Blowfish zawiera implementację algorytmu | |
b7404c03 | 30 | kryptograficznego Blowfish. |
4d6757a2 | 31 | |
32 | %prep | |
33 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
2951a02c | 34 | %patch0 -p1 |
4d6757a2 | 35 | |
36 | %build | |
e9dec12c | 37 | %{__perl} Makefile.PL \ |
d7257f45 | 38 | INSTALLDIRS=vendor |
2ab3aa2c | 39 | %{__make} \ |
8cc58fd6 | 40 | CC="%{__cc}" \ |
2ab3aa2c | 41 | OPTIMIZE="%{rpmcflags}" |
42 | ||
43 | %{?with_tests:%{__make} test} | |
4d6757a2 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
2ab3aa2c | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
4d6757a2 | 50 | |
4d6757a2 | 51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
b7404c03 | 56 | %doc Changes COPYRIGHT README |
e9dec12c | 57 | %{perl_vendorarch}/Crypt/Blowfish.pm |
58 | %dir %{perl_vendorarch}/auto/Crypt/Blowfish | |
e0660606 JB |
59 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Blowfish/Blowfish.so |
60 | %{_mandir}/man3/Crypt::Blowfish.3pm* |