]>
Commit | Line | Data |
---|---|---|
0c66f90e | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
aad62c28 | 5 | %define pdir Crypt |
6 | %define pnam RC6 | |
1c4aff6f | 7 | Summary: Crypt::RC6 Perl module - RC6 block cipher encryption |
43425bdc | 8 | Summary(pl.UTF-8): Moduł Perla Crypt::RC6 - szyfr blokowy RC6 |
1c4aff6f JB |
9 | Name: perl-Crypt-RC6 |
10 | Version: 1.0 | |
8eb2096c | 11 | Release: 23 |
8ab1a318 | 12 | License: GPL v2 |
1c4aff6f | 13 | Group: Development/Languages/Perl |
674a9b5d | 14 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
98a3b4f2 | 15 | # Source0-md5: 6cd523b2ebfea33c66fc5f4252e88ce7 |
230f199b | 16 | Patch0: %{name}-endian.patch |
674a9b5d | 17 | URL: http://search.cpan.org/dist/Crypt-RC6/ |
09a901d2 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
ca6e0432 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
1c4aff6f JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Crypt::CBC compliant RC6 block cipher encryption module. RC6 is an | |
24 | evolutionary improvement of RC5, designed to meet the requirements of | |
25 | the Advanced Encryption Standard (AES). This implementation requires | |
26 | the use of a 16-, 24-, or 32-byte key and 16-byte blocks for | |
27 | encryption/decryption. Twenty rounds are performed. | |
28 | ||
0ff148d2 JR |
29 | %description -l pl.UTF-8 |
30 | Moduł jest zgodną z Crypt::CBC implementacją szyfru blokowego RC6. RC6 | |
1c4aff6f JB |
31 | jest ewolucyjnym rozszerzeniem RC5, opracowanym na potrzeby AES |
32 | (Advanced Security Standard - standardu zaawansowanego | |
0ff148d2 JR |
33 | bezpieczeństwa). Ta implementacja wymaga użycia 16, 24, lub |
34 | 32-bajtowego klucza i 16-bajtowych bloków do kodowania i dekodowania. | |
35 | Wykonywane jest dwadzieścia kroków. | |
1c4aff6f JB |
36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
230f199b | 39 | %patch0 -p1 |
1c4aff6f JB |
40 | |
41 | %build | |
ca6e0432 | 42 | %{__perl} Makefile.PL \ |
e2b3d73f | 43 | INSTALLDIRS=vendor |
0c66f90e | 44 | %{__make} \ |
3cbe87ba | 45 | CC="%{__cc}" \ |
0c66f90e | 46 | OPTIMIZE="%{rpmcflags}" |
47 | ||
48 | %{?with_tests:%{__make} test} | |
1c4aff6f JB |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc CHANGES README | |
ca6e0432 | 62 | %{perl_vendorarch}/Crypt/RC6.pm |
63 | %dir %{perl_vendorarch}/auto/Crypt/RC6 | |
ca6e0432 | 64 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/RC6/*.so |
1c4aff6f | 65 | %{_mandir}/man3/* |