]> git.pld-linux.org Git - packages/perl-Crypt-Anubis.git/blame - perl-Crypt-Anubis.spec
perl 5.38.0 rebuild
[packages/perl-Crypt-Anubis.git] / perl-Crypt-Anubis.spec
CommitLineData
9a032ee9
JB
1#
2# Conditional build:
a0df0387 3%bcond_without tests # Do not perform "make test"
9a032ee9 4#
1df86b0a 5%define pdir Crypt
6%define pnam Anubis
9a032ee9 7Summary: Crypt::Anubis - Crypt::CBC-compliant block cipher
e1807643 8Summary(pl.UTF-8): Crypt::Abubis - szyfr blokowy kompatybilny z Crypt::CBC
9a032ee9 9Name: perl-Crypt-Anubis
917998e0 10Version: 1.0.4
3330dbd7 11Release: 18
09343677 12License: GPL v2
9a032ee9 13Group: Development/Languages/Perl
09343677 14Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
917998e0 15# Source0-md5: aa62fb3a199063b5dff8bcbfc632338e
09343677 16URL: http://search.cpan.org/dist/Crypt-Anubis/
1a685527 17BuildRequires: perl-devel >= 1:5.8.0
9a032ee9
JB
18BuildRequires: rpm-perlprov >= 4.1-13
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Anubis is a variable-length key, 128-bit block cipher designed by
23Vincent Rijmen and Paulo S. L. M. Barreto. Key length can be 128, 160,
24192, 224, 256, 288, or 320 bits. The default key length used in this
25implementation is 128 bits (16 bytes). This module supports the
26Crypt::CBC interface.
27
dce6c171
JR
28%description -l pl.UTF-8
29Anubis to 128-bitowy szyfr blokowy o zmiennej długości klucza
30opracowany przez Vincenta Rijmena i Paulo S. L. M. Baretto. Klucz może
31mieć długość 128, 160, 192, 224, 256, 228 lub 320 bitów. Domyślna
32długość klucza w tej implementacji to 128 bitów (16 bajtów). Ten moduł
33obsługuje interfejs Crypt::CBC.
9a032ee9
JB
34
35%prep
36%setup -q -n %{pdir}-%{pnam}-%{version}
37
38%build
39%{__perl} Makefile.PL \
40 INSTALLDIRS=vendor
3d05966e 41%{__make} \
2ce39288 42 CC="%{__cc}" \
3d05966e 43 OPTIMIZE="%{rpmcflags}"
9a032ee9 44
a0df0387 45%{?with_tests:%{__make} test}
9a032ee9
JB
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53cd examples
54install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55for f in * ; do
56 sed -e "s@#!/usr/local/bin/perl@#!/usr/bin/perl@" $f \
57 > $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$f
58done
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes README
66%{perl_vendorarch}/Crypt/Anubis.pm
67%dir %{perl_vendorarch}/auto/Crypt/Anubis
9a032ee9
JB
68%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Anubis/Anubis.so
69%{_mandir}/man3/*
70%attr(755,root,root) %{_examplesdir}/%{name}-%{version}
This page took 0.10248 seconds and 4 git commands to generate.