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