]>
Commit | Line | Data |
---|---|---|
52378337 JB |
1 | # |
2 | # Conditional build: | |
47fba187 | 3 | %bcond_without tests # Do not perform "make test" |
4 | # | |
52378337 | 5 | %include /usr/lib/rpm/macros.perl |
04da72d7 | 6 | %define pdir Crypt |
7 | %define pnam Twofish | |
52378337 | 8 | Summary: Crypt::Twofish Perl module - the Twofish encryption algorithm |
75fd8ce1 | 9 | Summary(pl.UTF-8): Moduł Perla Crypt::Twofish - algorytm szyfrowania Twofish |
52378337 | 10 | Name: perl-Crypt-Twofish |
eea28256 | 11 | Version: 2.14 |
b81467da | 12 | Release: 10 |
52378337 JB |
13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
95902061 | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
eea28256 | 16 | # Source0-md5: 295c059d18f9a46dd14bd765fc465318 |
b81467da | 17 | Patch0: no-dot-in-inc.patch |
95902061 | 18 | URL: http://search.cpan.org/dist/Crypt-Twofish/ |
ab7ab360 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
db0ee5c8 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
52378337 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | This module implements Twofish encryption. It supports the Crypt::CBC | |
25 | interface. Twofish is a 128-bit symmetric block cipher with a variable | |
26 | length (128, 192, or 256-bit) key, developed by Counterpane Labs. It | |
27 | is unpatented and free for all uses, as described at | |
28 | <http://www.counterpane.com/twofish.html>. | |
29 | ||
c36476f4 JR |
30 | %description -l pl.UTF-8 |
31 | Ten moduł jest implementacją szyfrowania Twofish. Obsługuje interfejs | |
52378337 | 32 | Crypt::CBC. Twofish jest 128-bitowym symetrycznym szyfrem blokowym ze |
c36476f4 JR |
33 | zmienną długością klucza (128, 192 lub 256 bitów), opracowanym przez |
34 | Counterpane Labs. Nie jest opatentowany i można go swobodnie używać | |
35 | do dowolnych celów, zgodnie z opisem pod adresem | |
52378337 JB |
36 | <http://www.counterpane.com/twofish.html>. |
37 | ||
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
b81467da | 40 | %patch0 -p1 |
52378337 JB |
41 | |
42 | %build | |
db0ee5c8 | 43 | %{__perl} Makefile.PL \ |
1f08eacd | 44 | INSTALLDIRS=vendor |
e88ed8a8 | 45 | %{__make} \ |
b761ad5c | 46 | CC="%{__cc}" \ |
e88ed8a8 | 47 | OPTIMIZE="%{rpmcflags}" |
48 | ||
47fba187 | 49 | %{?with_tests:%{__make} test} |
52378337 JB |
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 Changes README | |
db0ee5c8 | 63 | %{perl_vendorarch}/Crypt/Twofish.pm |
64 | %dir %{perl_vendorarch}/auto/Crypt/Twofish | |
db0ee5c8 | 65 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Twofish/*.so |
52378337 | 66 | %{_mandir}/man3/* |