3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Digest::Whirlpool - A 512-bit, collision-resistant, one-way hash function
10 Name: perl-Digest-Whirlpool
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 852a7672ef11d46b229c0be77330e991
18 URL: http://search.cpan.org/dist/Digest-Whirlpool/
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 Provides an interface to the WHIRLPOOL hash algorithm. This module
25 subclasses Digest::base and can be used either directly or through
26 the Digest meta-module. Using the latter is recommended.
28 # %description -l pl.UTF-8
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 OPTIMIZE="%{rpmcflags}"
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
46 %{__make} pure_install \
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_bindir}/*
56 %{perl_vendorarch}/Digest/*.pm
57 %dir %{perl_vendorarch}/auto/Digest/Whirlpool
58 %attr(755,root,root) %{perl_vendorarch}/auto/Digest/Whirlpool/*.so