]> git.pld-linux.org Git - packages/perl-Crypt-Misty1.git/blame - perl-Crypt-Misty1.spec
rebuild with perl 5.32
[packages/perl-Crypt-Misty1.git] / perl-Crypt-Misty1.spec
CommitLineData
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 7Summary: Crypt::Misty1 - Crypt::CBC-compliant block cipher
a963bbfd 8Summary(pl.UTF-8): Crypt::Misty1 - szyfr blokowy kompatybilny z Crypt::CBC
1e20d7b7 9Name: perl-Crypt-Misty1
1ed78a65 10Version: 1.1.3
9ae3c326 11Release: 16
49db97c8 12License: GPL v2
1e20d7b7 13Group: Development/Languages/Perl
49db97c8 14Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
1ed78a65 15# Source0-md5: ca9e4ad4db7b249751731a35cae5f9bc
49db97c8 16URL: http://search.cpan.org/dist/Crypt-Misty1/
2e32196d 17BuildRequires: perl-devel >= 1:5.8.0
1e20d7b7
JB
18BuildRequires: rpm-perlprov >= 4.1-13
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Misty1 is a 64-bit symmetric block cipher with a 128-bit key. It was
23developed by Mitsuru Matsui, and is described in the paper "New Block
24Encryption Algorithm MISTY" and in RFC 2994. In January of 2000, the
253GPP consortium selected a variant of Misty1, dubbed as KASUMI (the
26Japanese word for "misty"), as the mandatory cipher in W-CDMA. This
27module supports the Crypt::CBC interface.
28
6adbcd5c 29%description -l pl.UTF-8
1e20d7b7 30Misty1 to 64-bitowy symetryczny szyfr blokowy ze 128-bitowym kluczem.
6adbcd5c 31Został opracowany przez Mitsuru Matsui i opisany w dokumencie "New
1e20d7b7 32Block Encryption Algorithm MISTY" oraz w RFC 2994. W styczniu 2000
6adbcd5c
JR
33konsorcjum 3GPP wybrało wariant Misty1 pod nazwą KASUMI (japoński
34odpowiednik słowa "misty") jako obowiązkowy szyfr w W-CDMA. Ten
35moduł 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
50rm -rf $RPM_BUILD_ROOT
51
52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
54
55cd examples
56install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57for f in * ; do
58 sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \
59 > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f
60done
61
62%clean
63rm -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}
This page took 0.209857 seconds and 4 git commands to generate.