]>
Commit | Line | Data |
---|---|---|
00a61d16 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
f5eefb6e | 5 | %define pdir Crypt |
6 | %define pnam IDEA | |
7c042446 | 7 | Summary: Crypt::IDEA - Perl interface to IDEA block cipher |
c7bd0df5 | 8 | Summary(pl.UTF-8): Crypt::IDEA - interfejs perlowy do szyfru blokowego IDEA |
e3f32346 | 9 | Name: perl-Crypt-IDEA |
8483a649 | 10 | Version: 1.10 |
73352b8c | 11 | Release: 6 |
a65f39cd | 12 | License: BSD-like (see COPYRIGHT) |
e3f32346 | 13 | Group: Development/Languages/Perl |
4073013f | 14 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
8483a649 | 15 | # Source0-md5: 0284334d0d3e18543f178111130aa00d |
65330f13 | 16 | Patch0: %{name}-paths.patch |
648abe77 | 17 | Patch1: %{name}-5.6.0.patch |
4073013f | 18 | URL: http://search.cpan.org/dist/Crypt-IDEA/ |
a02a388b | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
8a9f0d7c | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
280b799c | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e3f32346 | 22 | |
23 | %description | |
7c042446 | 24 | Crypt::IDEA Perl extension is an implementation of the IDEA block |
25 | cipher algorithm. | |
e3f32346 | 26 | |
84ef490c JR |
27 | %description -l pl.UTF-8 |
28 | Rozszerzenie Perla Crypt::IDEA stanowi implementację algorytmu | |
7c042446 | 29 | szyfrowania blokowego IDEA. |
e3f32346 | 30 | |
31 | %prep | |
160851fe | 32 | %setup -q -n %{pdir}-%{pnam}-%{version} |
e3f32346 | 33 | %patch0 -p0 |
a95a6647 | 34 | %patch1 -p1 |
e3f32346 | 35 | |
36 | %build | |
8a9f0d7c | 37 | %{__perl} Makefile.PL \ |
1d5a31f5 | 38 | INSTALLDIRS=vendor |
00a61d16 | 39 | %{__make} \ |
d1eb997c | 40 | CC="%{__cc}" \ |
00a61d16 | 41 | OPTIMIZE="%{rpmcflags}" |
42 | ||
43 | %{?with_tests:%{__make} test} | |
e3f32346 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
00a61d16 | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
e3f32346 | 49 | |
4073013f | 50 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Crypt/IDEA.pod |
bdb6dd92 | 51 | |
e3f32346 | 52 | %clean |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
a65f39cd | 57 | %doc COPYRIGHT |
8a9f0d7c | 58 | %{perl_vendorarch}/Crypt/IDEA.pm |
59 | %dir %{perl_vendorarch}/auto/Crypt/IDEA | |
8a9f0d7c | 60 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/IDEA/IDEA.so |
4073013f | 61 | %{_mandir}/man3/Crypt::IDEA.3pm* |