]>
Commit | Line | Data |
---|---|---|
e115c8f4 | 1 | # |
899e3cce | 2 | # Conditional build: |
3 | %bcond_without tests # Do not perform "make test" | |
80176dff | 4 | |
dc623c77 | 5 | %define pdir Crypt |
6 | %define pnam Keys | |
80176dff | 7 | %include /usr/lib/rpm/macros.perl |
430d1352 | 8 | Summary: Crypt::Keys Perl module - public and private key management |
debe3d17 | 9 | Summary(pl.UTF-8): Moduł Perla Crypt::Keys - zarządzający kluczami publicznymi i prywatnymi |
430d1352 JB |
10 | Name: perl-Crypt-Keys |
11 | Version: 0.06 | |
dd885995 | 12 | Release: 3 |
acd44504 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
430d1352 | 15 | Group: Development/Languages/Perl |
5452efe9 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
1bbde35a | 17 | # Source0-md5: 6c375a9d965ff86d3ae967b9e6bbaf36 |
80176dff | 18 | URL: http://search.cpan.org/dist/Crypt-Keys/ |
430d1352 JB |
19 | BuildRequires: perl-Convert-PEM >= 0.05 |
20 | BuildRequires: perl-Crypt-CBC >= 2.00 | |
21 | BuildRequires: perl-Crypt-DES | |
22 | BuildRequires: perl-Data-Buffer | |
23 | BuildRequires: perl-Digest-MD5 | |
24 | BuildRequires: perl-MIME-Base64 | |
25 | BuildRequires: perl-Math-Pari >= 2.001804 | |
80176dff | 26 | BuildRequires: perl-devel >= 1:5.8.0 |
ae0404f5 | 27 | BuildRequires: rpm-perlprov >= 4.1-13 |
430d1352 JB |
28 | Requires: perl-Convert-PEM >= 0.05 |
29 | Requires: perl-Crypt-CBC >= 2.00 | |
30 | Requires: perl-Math-Pari >= 2.001804 | |
31 | BuildArch: noarch | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | Crypt::Keys is an on-disk key management system for public and private | |
36 | keyfiles. The goal of the module is to be able to read and write | |
37 | crypto keys in any encoding (eg. PEM, SSH, etc.). It can be used as a | |
38 | front-end for key management, but it does not contain implementations | |
39 | of any of the assymetric cryptography algorithms represented by the | |
40 | keys that it manages. In other words, you can use it to read and write | |
41 | your DSA/RSA/etc. keys, but it does not generate new keys or | |
42 | encrypt/sign data. | |
43 | ||
497bdd37 JR |
44 | %description -l pl.UTF-8 |
45 | Crypt::Keys to system do zarządzania kluczami publicznymi i prywatnymi | |
46 | przechowywanymi na dysku. Celem tego modułu jest umożliwienie odczytu | |
430d1352 | 47 | i zapisu kluczy kryptograficznych o dowolnym kodowaniu (PEM, SSH |
497bdd37 JR |
48 | itd.). Może być używany jako interfejs do zarządzania kluczami, ale |
49 | nie zawiera implementacji żadnego algorytmu kryptograficznego | |
50 | reprezentowanego przez klucze, którymi zarządza. Innymi słowy, potrafi | |
51 | odczytywać i zapisywać klucze DSA/RSA/itp., ale nie jest w stanie | |
52 | wygenerować nowych kluczy ani odszyfrować czy zaszyfrować danych. | |
430d1352 JB |
53 | |
54 | %prep | |
55 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
56 | ||
57 | %build | |
e115c8f4 | 58 | %{__perl} Makefile.PL \ |
59 | INSTALLDIRS=vendor \ | |
60 | < /dev/null | |
430d1352 | 61 | %{__make} |
e115c8f4 | 62 | |
899e3cce | 63 | %{?with_tests:%{__make} test} |
430d1352 JB |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc Changes README ToDo | |
ae0404f5 | 77 | %{perl_vendorlib}/Crypt/Keys.pm |
78 | %{perl_vendorlib}/Crypt/Keys | |
430d1352 | 79 | %{_mandir}/man3/* |