3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::Noekeon - Crypt::CBC-compliant block cipher
9 Summary(pl.UTF-8): Crypt::Noekeon - szyfr blokowy kompatybilny z Crypt::CBC
10 Name: perl-Crypt-Noekeon
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 51fc0d4486e2f98cf433df4cf6c4dc6a
17 URL: http://search.cpan.org/dist/Crypt-Noekeon/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Noekeon is a 128-bit key, 128-bit block cipher designed by Joan
24 Daemen, Michael Peeters, Vincent Rijmen, and Gilles Van Assche.
25 Noekeon was submitted as a NESSIE candidate. This module supports
26 the Crypt::CBC interface.
28 %description -l pl.UTF-8
29 Noekeon jest 128-bitowym szyfrem blokowym ze 128-bitowym kluczem,
30 opracowanym przez Joan Daemen, Michaela Peetersa, Vincenta Rijmena
31 i Gillesa Van Assche. Noekeon został zgłoszony jako kandydat do
32 NESSIE. Ten moduł obsługuje interfejs Crypt::CBC.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \
56 > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorarch}/Crypt/Noekeon.pm
66 %dir %{perl_vendorarch}/auto/Crypt/Noekeon
67 %{perl_vendorarch}/auto/Crypt/Noekeon/Noekeon.bs
68 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Noekeon/Noekeon.so
70 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}