3 %bcond_without tests # Do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::TripleDES Perl module - pure Perl Triple DES implementation
9 Summary(pl.UTF-8): Moduł Perla Crypt::TripleDES - czysto perlowa implementacja Triple DES
10 Name: perl-Crypt-TripleDES
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 90b562175a8f6c5f6bc3eacaddffbcde
18 URL: http://search.cpan.org/dist/Crypt-TripleDES/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module implements 3DES encryption in ECB mode. The code is based
26 on Eric Young's implementation of DES in pure perl. It's quite slow
27 because of the way Perl handles bit operations and is not recommended
28 for use with large texts.
30 %description -l pl.UTF-8
31 Ten moduł jest implementacją szyfrowania 3DES w trybie ECB. Kod bazuje
32 na czysto perlowej implementacji DES Erica Younga. Jest dosyć wolny ze
33 względu na sposób obsługi operacji bitowych przez interpreter i nie
34 jest zalecany do użycia z dużymi tekstami.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 DESTDIR=$RPM_BUILD_ROOT
53 cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Crypt/*.pm
62 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}