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