3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::Skipjack - Crypt::CBC-compliant block cipher
9 Summary(pl.UTF-8): Crypt::Skipjack - szyfr blokowy kompatybilny z Crypt::CBC
10 Name: perl-Crypt-Skipjack
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 46196172e7020917f8249f36f8b55c21
17 URL: http://search.cpan.org/dist/Crypt-Skipjack/
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 Skipjack is the secret key encryption algorithm designed by the
24 National Security Agency, and is used in the Clipper chip and Fortezza
25 PC card. It was implemented in tamper-resistant hardware and its
26 structure had been classified since its introduction in 1993. Skipjack
27 was unclassified on June 24, 1998. Skipjack is an 80-bit key, 64-bit
28 block cipher. This module supports the Crypt::CBC interface.
30 %description -l pl.UTF-8
31 Skipjack to algorytm szyfrowania klucza tajnego opracowany przez NSA
32 (National Security Agency), używany w układzie Clipper i kartach PC
33 Fortezza. Był zaimplementowany w zabezpieczonym przed intruzami
34 sprzęcie, a jego struktura była zastrzeżona od wprowadzenia w 1993
35 roku do 24 czerwca 1998. Skipjack to 64-bitowy szyfr blokowy z
36 80-bitowym kluczem. Ten moduł obsługuje interfejs Crypt::CBC.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 OPTIMIZE="%{rpmcflags}"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \
59 > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %{perl_vendorarch}/Crypt/Skipjack.pm
69 %dir %{perl_vendorarch}/auto/Crypt/Skipjack
70 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Skipjack/Skipjack.so
72 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}