]>
Commit | Line | Data |
---|---|---|
8da443d5 | 1 | # |
2 | # Conditional build: | |
43db95a7 | 3 | %bcond_with tests # perform "make test" |
8da443d5 | 4 | # |
ac367a50 | 5 | %define pdir Crypt |
6 | %define pnam GPG | |
ca2b3cbf | 7 | Summary: Crypt::GPG Perl module - an object oriented interface to GnuPG |
a1f770b1 | 8 | Summary(pl.UTF-8): Moduł Perla Crypt::GPG - obiektowo zorientowany interfejs do GnuPG |
67c706dc | 9 | Name: perl-Crypt-GPG |
f5347867 | 10 | Version: 1.63 |
0e36b4d5 | 11 | Release: 1 |
0342ce0b | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
67c706dc | 14 | Group: Development/Languages/Perl |
f5347867 | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: 9a2ab2edf9740cfef789f17c998f3fe2 | |
17 | URL: http://search.cpan.org/dist/Crypt-GPG/ | |
61c2ae2e | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
a7aaeed7 | 19 | BuildRequires: perl-Expect >= 1.15 |
67c706dc | 20 | BuildRequires: perl-TimeDate |
26e4e85e | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
67c706dc JB |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | The Crypt::GPG module provides near complete access to GnuPG | |
27 | functionality through an object oriented interface. It provides | |
28 | methods for encryption, decryption, signing, signature verification, | |
29 | key generation, key export and import, and most other key management | |
30 | functions. This module works almost identically to its cousin, | |
31 | Crypt::PGP5. The two modules together provide a uniform interface to | |
32 | deal with both PGP and GnuPG. Eventually, these modules will be folded | |
33 | into a single module which will interface with GnuPG as well as all | |
34 | versions of PGP. | |
0ba1742c | 35 | |
829d05eb JR |
36 | %description -l pl.UTF-8 |
37 | Moduł Crypt::GPG daje prawie całkowity dostęp do funkcjonalności GnuPG | |
38 | poprzez zorientowany obiektowo interfejs. Udostępnia metody do | |
39 | szyfrowania, odszyfrowywania, podpisywania, weryfikacji podpisów, | |
67c706dc | 40 | generowania kluczy, eksportowania i importowania kluczy oraz wielu |
829d05eb JR |
41 | innych funkcji związanych z zarządzaniem kluczami. Ten moduł działa |
42 | prawie identycznie jak jego kuzyn, Crypt::PGP5. Oba moduły razem dają | |
43 | jednolity interfejs do obsługi PGP i GnuPG. Być może te zostaną one | |
44 | połączone w jeden moduł, będący interfejsem jednocześnie do GnuPG i | |
67c706dc JB |
45 | wszystkich wersji PGP. |
46 | ||
47 | %prep | |
48 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
49 | ||
50 | %build | |
26e4e85e | 51 | %{__perl} Makefile.PL \ |
0ba1742c | 52 | INSTALLDIRS=vendor |
67c706dc | 53 | %{__make} |
8da443d5 | 54 | # test disabled by default - it calls gpg, creates keyring etc. |
43db95a7 | 55 | %{?with_tests:%{__make} test} |
67c706dc JB |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
0e36b4d5 | 68 | %doc README |
26e4e85e | 69 | %{perl_vendorlib}/Crypt/GPG.pm |
67c706dc | 70 | %{_mandir}/man3/* |