]>
Commit | Line | Data |
---|---|---|
4230dd63 JB |
1 | # |
2 | # Conditional build: | |
e511b52e | 3 | %bcond_without tests # Do not perform "make test" |
4 | # | |
4230dd63 | 5 | %include /usr/lib/rpm/macros.perl |
b75422c5 | 6 | %define pdir Crypt |
7 | %define pnam Twofish2 | |
4230dd63 | 8 | Summary: Crypt::Twofish2 - Crypt::CBC compliant Twofish encryption Perl module |
c76526d6 | 9 | Summary(pl.UTF-8): Crypt::Twofish2 - perlowy moduł szyfru Twofish zgodny z Crypt::CBC |
4230dd63 | 10 | Name: perl-Crypt-Twofish2 |
6270dadf | 11 | Version: 1.02 |
b9ab78b0 | 12 | Release: 10 |
a159acbd | 13 | License: GPL v2 |
4230dd63 | 14 | Group: Development/Languages/Perl |
a159acbd | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
6270dadf | 16 | # Source0-md5: 28efe17baac40c14914912bb3e5932b5 |
a159acbd | 17 | URL: http://search.cpan.org/dist/Crypt-Twofish2/ |
4e902d54 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
afa71e10 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
4230dd63 JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | This module implements the Twofish cipher in a less braindamaged | |
24 | (read: slow and ugly) way than the existing "Crypt::Twofish" module. | |
25 | Although it is "Crypt::CBC" compliant you usually gain nothing by | |
26 | using that module (except generality), since "Crypt::Twofish2" can | |
27 | work in either ECB or CBC mode. | |
28 | ||
c61a342b JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł jest implementacją szyfru Twofish w mniej debilny (powolny | |
31 | i paskudny) sposób niż moduł Crypt::Twofish. Pomimo tego, że jest | |
32 | zgodny z Crypt::CBC, nie ma potrzeby używania tamtego modułu, ponieważ | |
33 | Crypt::Twofish2 może działać zarówno w trybie ECB jak i CBC. | |
4230dd63 JB |
34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
afa71e10 | 39 | %{__perl} Makefile.PL \ |
623a95d5 | 40 | INSTALLDIRS=vendor |
01edc3fa | 41 | %{__make} \ |
736b22c5 | 42 | CC="%{__cc}" \ |
01edc3fa | 43 | OPTIMIZE="%{rpmcflags}" |
e511b52e | 44 | |
45 | %{?with_tests:%{__make} test} | |
4230dd63 JB |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
afa71e10 | 59 | %{perl_vendorarch}/Crypt/Twofish2.pm |
60 | %dir %{perl_vendorarch}/auto/Crypt/Twofish2 | |
afa71e10 | 61 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Twofish2/*.so |
4230dd63 | 62 | %{_mandir}/man3/* |