]>
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 JB |
10 | Name: perl-Crypt-Twofish |
11 | Version: 2.12 | |
9200ae31 | 12 | Release: 4 |
52378337 JB |
13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
3ec8d55f | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
d62357f2 | 16 | # Source0-md5: 39937a00e4d5e6a5d700d1cd9991517c |
ab7ab360 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
db0ee5c8 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
52378337 JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | This module implements Twofish encryption. It supports the Crypt::CBC | |
23 | interface. Twofish is a 128-bit symmetric block cipher with a variable | |
24 | length (128, 192, or 256-bit) key, developed by Counterpane Labs. It | |
25 | is unpatented and free for all uses, as described at | |
26 | <http://www.counterpane.com/twofish.html>. | |
27 | ||
c36476f4 JR |
28 | %description -l pl.UTF-8 |
29 | Ten moduł jest implementacją szyfrowania Twofish. Obsługuje interfejs | |
52378337 | 30 | Crypt::CBC. Twofish jest 128-bitowym symetrycznym szyfrem blokowym ze |
c36476f4 JR |
31 | zmienną długością klucza (128, 192 lub 256 bitów), opracowanym przez |
32 | Counterpane Labs. Nie jest opatentowany i można go swobodnie używać | |
33 | do dowolnych celów, zgodnie z opisem pod adresem | |
52378337 JB |
34 | <http://www.counterpane.com/twofish.html>. |
35 | ||
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
db0ee5c8 | 40 | %{__perl} Makefile.PL \ |
1f08eacd | 41 | INSTALLDIRS=vendor |
e88ed8a8 | 42 | %{__make} \ |
b761ad5c | 43 | CC="%{__cc}" \ |
e88ed8a8 | 44 | OPTIMIZE="%{rpmcflags}" |
45 | ||
47fba187 | 46 | %{?with_tests:%{__make} test} |
52378337 JB |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes README | |
db0ee5c8 | 60 | %{perl_vendorarch}/Crypt/Twofish.pm |
61 | %dir %{perl_vendorarch}/auto/Crypt/Twofish | |
62 | %{perl_vendorarch}/auto/Crypt/Twofish/*.bs | |
63 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Twofish/*.so | |
52378337 | 64 | %{_mandir}/man3/* |