3 %bcond_without tests # do not perform "make test"
7 Summary: Digest::GOST - Perl interface to the GOST R 34.11-94 digest algorithm
8 Summary(pl.UTF-8): Digest::GOST - implementacja algorytmu skrótu GOST R 34.11-94
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: d91904e56300d08956ea5f1e174863f3
17 URL: http://search.cpan.org/dist/Digest-GOST/
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-Test-Simple >= 0.82
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Digest::GOST module provides an interface to the GOST R 34.11-94
27 message digest algorithm. This interface follows the conventions set
28 forth by the Digest module. To use the CryptoPro parameters, use
29 Digest::GOST::CryptoPro.
31 %description -l pl.UTF-8
32 Moduł Digest::GOST implementuje algorytm skrótu GOST R 34.11-94.
33 Interfejs programistyczny jest zgodny z konwencją przyjętą przez
34 moduł Digest. W przypadku wykorzystywania parametrów CryptoPro
35 należy użyć modułu Digest::GOST::CryptoPro.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/Digest/GOST.pm
62 %{perl_vendorarch}/Digest/GOST
63 %dir %{perl_vendorarch}/auto/Digest/GOST
64 %attr(755,root,root) %{perl_vendorarch}/auto/Digest/GOST/GOST.so
65 %{_mandir}/man3/Digest::GOST.3pm*
66 %{_mandir}/man3/Digest::GOST::CryptoPro.3pm*