]>
Commit | Line | Data |
---|---|---|
b425c6e2 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
1b224d8d | 5 | %define pdir Crypt |
6 | %define pnam DES | |
c23e79cd | 7 | Summary: Crypt::DES - Perl DES encryption module |
f33aaf53 | 8 | Summary(pl.UTF-8): Crypt::DES - moduł Perla dla szyfrowania DES |
4cac5cba | 9 | Name: perl-Crypt-DES |
0a4e8147 | 10 | Version: 2.07 |
60c50c83 | 11 | Release: 14 |
c23e79cd | 12 | License: BSD-like (see COPYRIGHT) |
4cac5cba | 13 | Group: Development/Languages/Perl |
eee932a7 | 14 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
0a4e8147 | 15 | # Source0-md5: e845d24cf383ca4a30a3380a2735feac |
8efd5f4f | 16 | URL: https://metacpan.org/dist/Crypt-DES |
7ab0dae0 | 17 | %{?with_tests:BuildRequires: perl-Crypt-CBC} |
121e743d | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
c804320d | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
8efd5f4f | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
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* |