# # Conditional build: %bcond_without tests # Do not perform "make test" # %define pdir Crypt %define pnam Serpent Summary: Crypt::Serpent Perl module - Serpent block cipher implementation Summary(pl.UTF-8): Moduł Perla Crypt::Serpent - implementacja szyfru blokowego Serpent Name: perl-Crypt-Serpent Version: 1.01 Release: 1 # it's basically BSD, but contains code with clause: # > This code is freely distributed for AES selection process. # > No other use is allowed. # (but AES selection is over - Rijndael has won...) License: non-distributable, unusable(?) Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz # NoSource0-md5: 65336d40cd32d96bb0fc76f4174b206a NoSource: 0 URL: http://search.cpan.org/dist/Crypt-Serpent/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 Requires: perl-Term-ReadKey BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Crypt::Serpent is Crypt::CBC compliant Serpent block cipher encryption module. Serpent was designed by Ross Anderson, Eli Biham and Lars Knudsen as a candidate for the Advanced Encryption Standard. It has been selected as one of the five finalists in the AES competition. Serpent is faster than DES and more secure than Triple DES. Serpent is a 128-bit block cipher. The key length can vary, but for the purposes of the AES it is defined to be either 128, 192, or 256 bits. The Serpent algorithm uses 32 rounds, or iterations of the main algorithm. %description -l pl.UTF-8 Crypt::Serpent to zgodny z Crypt::CBC moduł szyfru blokowego Serpent. Serpent został zaprojektowany przez Rossa Andersona, Eli Bihama i Larsa Knudsena jako kandydat na AES (Advanced Encryption Standard - standard zaawansowanego szyfrowania). Został wybrany jako jeden z pięciu finalistów konkursu na AES. Serpent jest szybszy niż DES i bezpieczniejszy niż Triple DES. Jest 128-bitowym szyfrem blokowym Długość klucza może być różna, na potrzeby AES została zdefiniowana jako 128, 192 lub 256 bitów. Algorytm używa 32 iteracji podstawowego algorytmu. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ CC="%{__cc}" \ OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGES README %{perl_vendorarch}/Crypt/Serpent.pm %dir %{perl_vendorarch}/auto/Crypt/Serpent %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Serpent/*.so %{_mandir}/man3/*