]>
Commit | Line | Data |
---|---|---|
0b11415b | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
c24cde73 | 5 | %include /usr/lib/rpm/macros.perl |
86b5ae8b | 6 | %define pdir Crypt |
7 | %define pnam GOST | |
3e6556d0 | 8 | Summary: Crypt::GOST Perl module - the GOST encryption algorithm |
8e17a9af | 9 | Summary(pl.UTF-8): Moduł Perla Crypt::GOST - algorytm kodowania GOST |
c24cde73 JB |
10 | Name: perl-Crypt-GOST |
11 | Version: 1.00 | |
f4d9b623 | 12 | Release: 11 |
c24cde73 JB |
13 | License: Artistic |
14 | Group: Development/Languages/Perl | |
facca3ba | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
5bb3f1f1 | 16 | # Source0-md5: 0250fb0539db739baf6608318894d67d |
facca3ba | 17 | URL: http://search.cpan.org/dist/Crypt-GOST/ |
bbb31f36 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
0be68cfc | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
c24cde73 JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
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/. | |
27 | ||
02d177a5 JR |
28 | %description -l pl.UTF-8 |
29 | Ten moduł jest implementacją kodowania GOST. Obsługuje interfejs | |
c24cde73 | 30 | Crypt::CBC. GOST 28147-89 jest 64-bitowym symetrycznym szyfrem |
02d177a5 JR |
31 | blokowym z 256-bitowym kluczem. Został opracowany w byłym Związku |
32 | Radzieckim. Więcej informacji na stronie http://vipul.net/gost/. | |
c24cde73 JB |
33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
0be68cfc | 38 | %{__perl} Makefile.PL \ |
87b4f7cd | 39 | INSTALLDIRS=vendor |
0b11415b | 40 | %{__make} \ |
bd1f47f4 | 41 | CC="%{__cc}" \ |
0b11415b | 42 | OPTIMIZE="%{rpmcflags}" |
43 | ||
44 | %{?with_tests:%{__make} test} | |
c24cde73 JB |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
0be68cfc | 58 | %{perl_vendorarch}/Crypt/GOST.pm |
59 | %dir %{perl_vendorarch}/auto/Crypt/GOST | |
0be68cfc | 60 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/GOST/*.so |
c24cde73 | 61 | %{_mandir}/man3/* |