3 %bcond_without tests # Do not perform "make test"
7 Summary: Crypt::Camellia - Crypt::CBC-compliant block cipher
8 Summary(pl.UTF-8): Crypt::Camellia - szyfr blokowy kompatybilny z Crypt::CBC
9 Name: perl-Crypt-Camellia
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: ba2e8ffa62b22f0cc59c8c867318461a
16 URL: http://search.cpan.org/dist/Crypt-Camellia/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Camellia is a variable-length key, 128-bit block cipher. It is the
23 NESSIE winner for 128-bit block ciphers. The default key length in
24 this implementation is 128 bits. This module supports the Crypt::CBC
27 %description -l pl.UTF-8
28 Camellia to 128-bitowy szyfr blokowy o zmiennej długości klucza. Jest
29 zwycięzcą NESSIE dla 128-bitowych szyfrów blokowych. Domyślny rozmiar
30 klucza w tej implementacji to 128 bitów. Moduł obsługuje interfejs
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \
55 > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorarch}/Crypt/Camellia.pm
65 %dir %{perl_vendorarch}/auto/Crypt/Camellia
66 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Camellia/Camellia.so
68 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}