3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
7 Summary: Crypt::TripleDES Perl module - pure Perl Triple DES implementation
8 Summary(pl): Modu³ Perla Crypt::TripleDES - czysto perlowa implementacja Triple DES
9 Name: perl-Crypt-TripleDES
12 License: Artistic or GPL
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: perl-devel >= 5.6
16 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This module implements 3DES encryption in ECB mode. The code is based
22 on Eric Young's implementation of DES in pure perl. It's quite slow
23 because of the way Perl handles bit operations and is not recommended
24 for use with large texts.
27 Ten modu³ jest implementacj± szyfrowania 3DES w trybie ECB. Kod bazuje
28 na czysto perlowej implementacji DES Erica Younga. Jest dosyæ wolny ze
29 wzglêdu na sposób obs³ugi operacji bitowych przez interpreter i nie
30 jest zalecany do u¿ycia z du¿ymi tekstami.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
39 %{!?_without_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46 DESTDIR=$RPM_BUILD_ROOT
48 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %{perl_vendorlib}/Crypt/*.pm
57 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}