]> git.pld-linux.org Git - packages/perl-Crypt-Camellia.git/blame - perl-Crypt-Camellia.spec
rebuild with perl 5.32
[packages/perl-Crypt-Camellia.git] / perl-Crypt-Camellia.spec
CommitLineData
a96e0d2b
JB
1#
2# Conditional build:
276e357a 3%bcond_without tests # Do not perform "make test"
a96e0d2b 4#
d426c5c3 5%define pdir Crypt
6%define pnam Camellia
a96e0d2b 7Summary: Crypt::Camellia - Crypt::CBC-compliant block cipher
8c9a3e64 8Summary(pl.UTF-8): Crypt::Camellia - szyfr blokowy kompatybilny z Crypt::CBC
a96e0d2b 9Name: perl-Crypt-Camellia
03e03887 10Version: 1.0.2
5953ce3e 11Release: 15
a96e0d2b
JB
12License: GPL
13Group: Development/Languages/Perl
86938737 14Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
03e03887 15# Source0-md5: ba2e8ffa62b22f0cc59c8c867318461a
86938737 16URL: http://search.cpan.org/dist/Crypt-Camellia/
af0b0c97 17BuildRequires: perl-devel >= 1:5.8.0
a96e0d2b
JB
18BuildRequires: rpm-perlprov >= 4.1-13
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Camellia is a variable-length key, 128-bit block cipher. It is the
23NESSIE winner for 128-bit block ciphers. The default key length in
24this implementation is 128 bits. This module supports the Crypt::CBC
25interface.
26
4672489e
JR
27%description -l pl.UTF-8
28Camellia to 128-bitowy szyfr blokowy o zmiennej długości klucza. Jest
29zwycięzcą NESSIE dla 128-bitowych szyfrów blokowych. Domyślny rozmiar
30klucza w tej implementacji to 128 bitów. Moduł obsługuje interfejs
a96e0d2b
JB
31Crypt::CBC.
32
33%prep
34%setup -q -n %{pdir}-%{pnam}-%{version}
35
36%build
37%{__perl} Makefile.PL \
38 INSTALLDIRS=vendor
a58cc920 39%{__make} \
1be09aa0 40 CC="%{__cc}" \
a58cc920 41 OPTIMIZE="%{rpmcflags}"
a96e0d2b 42
276e357a 43%{?with_tests:%{__make} test}
a96e0d2b
JB
44
45%install
46rm -rf $RPM_BUILD_ROOT
47
48%{__make} install \
49 DESTDIR=$RPM_BUILD_ROOT
50
51cd examples
52install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53for f in * ; do
54 sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \
55 > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f
56done
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc Changes README
64%{perl_vendorarch}/Crypt/Camellia.pm
65%dir %{perl_vendorarch}/auto/Crypt/Camellia
a96e0d2b
JB
66%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Camellia/Camellia.so
67%{_mandir}/man3/*
68%attr(755,root,root) %{_examplesdir}/%{name}-%{version}
This page took 0.523233 seconds and 4 git commands to generate.