]>
Commit | Line | Data |
---|---|---|
1e20d7b7 JB |
1 | # |
2 | # Conditional build: | |
ab0b69f4 | 3 | %bcond_without tests # Do not perform "make test" |
1e20d7b7 | 4 | # |
70250439 | 5 | %define pdir Crypt |
6 | %define pnam Misty1 | |
1e20d7b7 | 7 | Summary: Crypt::Misty1 - Crypt::CBC-compliant block cipher |
a963bbfd | 8 | Summary(pl.UTF-8): Crypt::Misty1 - szyfr blokowy kompatybilny z Crypt::CBC |
1e20d7b7 | 9 | Name: perl-Crypt-Misty1 |
1ed78a65 | 10 | Version: 1.1.3 |
9ae3c326 | 11 | Release: 16 |
49db97c8 | 12 | License: GPL v2 |
1e20d7b7 | 13 | Group: Development/Languages/Perl |
49db97c8 | 14 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
1ed78a65 | 15 | # Source0-md5: ca9e4ad4db7b249751731a35cae5f9bc |
49db97c8 | 16 | URL: http://search.cpan.org/dist/Crypt-Misty1/ |
2e32196d | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
1e20d7b7 JB |
18 | BuildRequires: rpm-perlprov >= 4.1-13 |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Misty1 is a 64-bit symmetric block cipher with a 128-bit key. It was | |
23 | developed by Mitsuru Matsui, and is described in the paper "New Block | |
24 | Encryption Algorithm MISTY" and in RFC 2994. In January of 2000, the | |
25 | 3GPP consortium selected a variant of Misty1, dubbed as KASUMI (the | |
26 | Japanese word for "misty"), as the mandatory cipher in W-CDMA. This | |
27 | module supports the Crypt::CBC interface. | |
28 | ||
6adbcd5c | 29 | %description -l pl.UTF-8 |
1e20d7b7 | 30 | Misty1 to 64-bitowy symetryczny szyfr blokowy ze 128-bitowym kluczem. |
6adbcd5c | 31 | Został opracowany przez Mitsuru Matsui i opisany w dokumencie "New |
1e20d7b7 | 32 | Block Encryption Algorithm MISTY" oraz w RFC 2994. W styczniu 2000 |
6adbcd5c JR |
33 | konsorcjum 3GPP wybrało wariant Misty1 pod nazwą KASUMI (japoński |
34 | odpowiednik słowa "misty") jako obowiązkowy szyfr w W-CDMA. Ten | |
35 | moduł obsługuje interfejs Crypt::CBC. | |
1e20d7b7 JB |
36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
0a974b7b | 43 | %{__make} \ |
3ea7af90 | 44 | CC="%{__cc}" \ |
0a974b7b | 45 | OPTIMIZE="%{rpmcflags}" |
1e20d7b7 | 46 | |
ab0b69f4 | 47 | %{?with_tests:%{__make} test} |
1e20d7b7 JB |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | cd examples | |
56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | for f in * ; do | |
58 | sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \ | |
59 | > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f | |
60 | done | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc Changes README | |
68 | %{perl_vendorarch}/Crypt/Misty1.pm | |
69 | %dir %{perl_vendorarch}/auto/Crypt/Misty1 | |
1e20d7b7 JB |
70 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Misty1/Misty1.so |
71 | %{_mandir}/man3/* | |
72 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version} |