3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
8 Summary: Digest::Skein - Perl interface to the Skein digest algorithm
10 Name: perl-Digest-Skein
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: cb7ff5208a078e5e504715e6486a06d5
17 URL: http://search.cpan.org/dist/Digest-Skein/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 %if %{with autodeps} || %{with tests}
21 BuildRequires: perl(Digest)
22 BuildRequires: perl(MIME::Base64)
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Digest::Skein implements the Skein digest algorithm, submitted to NIST
28 for the SHA-3 competition.
30 # %description -l pl.UTF-8
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 %{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc Changes README TODO
57 %{perl_vendorarch}/Digest/*.pm
58 %dir %{perl_vendorarch}/auto/Digest/Skein
59 %attr(755,root,root) %{perl_vendorarch}/auto/Digest/Skein/*.so
61 #it should go to static subpackage, shouldn't it?
62 #%{perl_vendorarch}/auto/libskein/libskein.a