]>
Commit | Line | Data |
---|---|---|
b425c6e2 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
77a3a99e | 5 | %include /usr/lib/rpm/macros.perl |
1b224d8d | 6 | %define pdir Crypt |
7 | %define pnam DES | |
c23e79cd | 8 | Summary: Crypt::DES - Perl DES encryption module |
f33aaf53 | 9 | Summary(pl.UTF-8): Crypt::DES - moduł Perla dla szyfrowania DES |
4cac5cba | 10 | Name: perl-Crypt-DES |
0a4e8147 | 11 | Version: 2.07 |
29905bba | 12 | Release: 3 |
c23e79cd | 13 | License: BSD-like (see COPYRIGHT) |
4cac5cba | 14 | Group: Development/Languages/Perl |
eee932a7 | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
0a4e8147 | 16 | # Source0-md5: e845d24cf383ca4a30a3380a2735feac |
eee932a7 | 17 | URL: http://search.cpan.org/dist/Crypt-DES/ |
7ab0dae0 | 18 | %{?with_tests:BuildRequires: perl-Crypt-CBC} |
121e743d | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
c804320d | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
20435378 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4cac5cba | 22 | |
23 | %description | |
c23e79cd | 24 | Crypt::DES is Perl interface to DES block cipher. |
4cac5cba | 25 | |
ed629a48 JR |
26 | %description -l pl.UTF-8 |
27 | Moduł Perla Crypt::DES zawiera obsługę algorytmu szyfrowania DES. | |
4cac5cba | 28 | |
29 | %prep | |
77a3a99e | 30 | %setup -q -n %{pdir}-%{pnam}-%{version} |
4cac5cba | 31 | |
32 | %build | |
c804320d | 33 | %{__perl} Makefile.PL \ |
7dc78531 | 34 | INSTALLDIRS=vendor |
b425c6e2 | 35 | %{__make} \ |
fb8a2829 | 36 | CC="%{__cc}" \ |
b425c6e2 | 37 | OPTIMIZE="%{rpmcflags}" |
38 | ||
39 | %{?with_tests:%{__make} test} | |
4cac5cba | 40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
4cac5cba | 43 | |
b425c6e2 | 44 | %{__make} install \ |
45 | DESTDIR=$RPM_BUILD_ROOT | |
4cac5cba | 46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
76226530 | 52 | %doc COPYRIGHT README |
c804320d | 53 | %{perl_vendorarch}/Crypt/DES.pm |
54 | %dir %{perl_vendorarch}/auto/Crypt/DES | |
c804320d | 55 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/DES/DES.so |
0a4e8147 | 56 | %{_mandir}/man3/Crypt::DES.3pm* |