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