3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::GOST Perl module - the GOST encryption algorithm
9 Summary(pl.UTF-8): Moduł Perla Crypt::GOST - algorytm kodowania GOST
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 0250fb0539db739baf6608318894d67d
17 URL: http://search.cpan.org/dist/Crypt-GOST/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module implements GOST encryption. It supports the Crypt::CBC
24 interface. GOST 28147-89 is a 64-bit symmetric block cipher with a
25 256-bit key developed in the former Soviet Union. Some information on
26 it is available at http://vipul.net/gost/.
28 %description -l pl.UTF-8
29 Ten moduł jest implementacją kodowania GOST. Obsługuje interfejs
30 Crypt::CBC. GOST 28147-89 jest 64-bitowym symetrycznym szyfrem
31 blokowym z 256-bitowym kluczem. Został opracowany w byłym Związku
32 Radzieckim. Więcej informacji na stronie http://vipul.net/gost/.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorarch}/Crypt/GOST.pm
59 %dir %{perl_vendorarch}/auto/Crypt/GOST
60 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/GOST/*.so