3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
7 Summary: Crypt::Twofish2 - Crypt::CBC compliant Twofish encryption Perl module
8 Summary(pl): Crypt::Twofish2 - perlowy modu³ szyfru Twofish zgodny z Crypt::CBC
9 Name: perl-Crypt-Twofish2
13 Group: Development/Languages/Perl
14 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: perl-devel >= 5.6
16 BuildRequires: rpm-perlprov >= 3.0.3-16
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This module implements the Twofish cipher in a less braindamaged
21 (read: slow and ugly) way than the existing "Crypt::Twofish" module.
22 Although it is "Crypt::CBC" compliant you usually gain nothing by
23 using that module (except generality), since "Crypt::Twofish2" can
24 work in either ECB or CBC mode.
27 Ten modu³ jest implementacj± szyfru Twofish w mniej debilny (powolny
28 i paskudny) sposób ni¿ modu³ Crypt::Twofish. Pomimo tego, ¿e jest
29 zgodny z Crypt::CBC, nie ma potrzeby u¿ywania tamtego modu³u, poniewa¿
30 Crypt::Twofish2 mo¿e dzia³aæ zarówno w trybie ECB jak i CBC.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__make} OPTIMIZE="%{rpmcflags}"
38 %{!?_without_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_sitearch}/Crypt/Twofish2.pm
53 %dir %{perl_sitearch}/auto/Crypt/Twofish2
54 %{perl_sitearch}/auto/Crypt/Twofish2/*.bs
55 %attr(755,root,root) %{perl_sitearch}/auto/Crypt/Twofish2/*.so