]>
Commit | Line | Data |
---|---|---|
0f95cd96 JB |
1 | # |
2 | # Conditional build: | |
17d54ccf | 3 | %bcond_without tests # Do not perform "make test" |
8698d70b | 4 | |
31ab443b | 5 | %define pdir Crypt |
6 | %define pnam Cipher | |
8698d70b | 7 | %include /usr/lib/rpm/macros.perl |
0f95cd96 | 8 | Summary: Crypt::Cipher - very flexible base class for text ciphers |
f2057b2e | 9 | Summary(pl.UTF-8): Crypt::Cipher - bardzo elastyczna klasa bazowa dla szyfrów tekstowych |
0f95cd96 | 10 | Name: perl-Crypt-Cipher |
f6d8d03e | 11 | Version: 0.03 |
4f6bce2b | 12 | Release: 2 |
c330a9a0 | 13 | # same as perl |
0f95cd96 JB |
14 | License: GPL v1+ or Artistic |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
f6d8d03e | 17 | # Source0-md5: 0d4467342f81a0adb1f53cabb9cd473b |
8698d70b | 18 | URL: http://search.cpan.org/dist/Crypt-Cipher/ |
f71a2fa9 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
0f95cd96 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
8698d70b ER |
21 | %if %{with tests} |
22 | BuildRequires: perl-Regexp-Tr >= 0.04 | |
23 | %endif | |
0f95cd96 JB |
24 | Requires: perl-Regexp-Tr >= 0.04 |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Crypt::Cipher provides a standard interface and simple methods for | |
30 | ciphers of various kinds, saving on development time and redundant | |
31 | code. | |
32 | ||
bdc7e788 | 33 | %description -l pl.UTF-8 |
8698d70b ER |
34 | Moduł Crypt::Cipher dostarcza standardowy interfejs i proste metody |
35 | dla szyfrów różnego rodzaju, pozwalając zaoszczędzić na czasie | |
0f95cd96 JB |
36 | programowania i powielonym kodzie. |
37 | ||
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
2dce2901 | 46 | %{?with_tests:%{__make} test} |
0f95cd96 JB |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc README | |
60 | %{perl_vendorlib}/Crypt/Cipher.pm | |
61 | %{_mandir}/man3/* |