3 %bcond_without tests # do not perform "make test"
6 %define pnam Eksblowfish
7 Summary: Crypt::Eksblowfish - the Eksblowfish block cipher
8 Name: perl-Crypt-Eksblowfish
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: d2907b00cc500fc523bf86bb427d9bb8
15 URL: http://search.cpan.org/dist/Crypt-Eksblowfish/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: perl-Class-Mix
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Crypt::Eksblowfish - An object of this type encapsulates a keyed instance of the Eksblowfish block cipher, ready to encrypt and decrypt
25 %setup -q -n %{pdir}-%{pnam}-%{version}
28 %{__perl} Makefile.PL \
33 OPTIMIZE="%{rpmcflags}"
35 %{?with_tests:%{__make} test}
38 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %{perl_vendorarch}/Crypt/*.pm
50 %dir %{perl_vendorarch}/Crypt/Eksblowfish
51 %{perl_vendorarch}/Crypt/Eksblowfish/*.pm
52 %dir %{perl_vendorarch}/auto/Crypt/Eksblowfish
53 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Eksblowfish/Eksblowfish.so
54 %{_mandir}/man3/Crypt::*.3pm*