3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::DES - Perl DES encryption module
9 Summary(pl.UTF-8): Crypt::DES - moduł Perla dla szyfrowania DES
13 License: BSD-like (see COPYRIGHT)
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a8a0bea7064e11d2af434f3e468c17bb
17 URL: http://search.cpan.org/dist/Crypt-DES/
18 %{?with_tests:BuildRequires: perl-Crypt-CBC}
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Crypt::DES is Perl interface to DES block cipher.
26 %description -l pl.UTF-8
27 Moduł Perla Crypt::DES zawiera obsługę algorytmu szyfrowania DES.
30 %setup -q -n %{pdir}-%{pnam}-%{version}
33 %{__perl} Makefile.PL \
37 OPTIMIZE="%{rpmcflags}"
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %{perl_vendorarch}/Crypt/DES.pm
54 %dir %{perl_vendorarch}/auto/Crypt/DES
55 %{perl_vendorarch}/auto/Crypt/DES/DES.bs
56 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/DES/DES.so