]>
Commit | Line | Data |
---|---|---|
ae9b64b7 JB |
1 | # |
2 | # Conditional build: | |
76301240 | 3 | %bcond_without tests # Do not perform "make test" |
ae9b64b7 | 4 | # |
03307636 | 5 | %define pdir Crypt |
6 | %define pnam OpenSSL-RSA | |
ae9b64b7 | 7 | Summary: Crypt::OpenSSL::RSA - RSA encoding and decoding, using the OpenSSL libraries |
f01a88e5 | 8 | Summary(pl.UTF-8): Crypt::OpenSSL::RSA - kodowanie i dekodowanie RSA przy użyciu OpenSSL |
5eaa700c | 9 | Name: perl-Crypt-OpenSSL-RSA |
58a932e4 JB |
10 | Version: 0.31 |
11 | Release: 1 | |
0dc9f40a | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
5eaa700c | 14 | Group: Development/Languages/Perl |
3ae18032 | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
58a932e4 JB |
16 | # Source0-md5: d33681e19d2094df7c26bc7a4509265e |
17 | URL: https://metacpan.org/dist/Crypt-OpenSSL-RSA | |
37f90543 | 18 | BuildRequires: openssl-devel >= 0.9.7d |
58a932e4 JB |
19 | BuildRequires: perl-Crypt-OpenSSL-Guess >= 0.11 |
20 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.48 | |
a0e2336a | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
ec9b99c8 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
58a932e4 | 23 | BuildRequires: rpmbuild(macros) >= 1.745 |
76301240 | 24 | %if %{with tests} |
c2ed4ce9 | 25 | BuildRequires: perl-Crypt-OpenSSL-Random |
58a932e4 | 26 | BuildRequires: perl-Test-Simple |
c2ed4ce9 | 27 | %endif |
5eaa700c GS |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
b65e2d4a | 31 | Crypt::OpenSSL::RSA provides the ability to RSA encrypt strings which |
32 | are somewhat shorter than the block size of a key. It also allows for | |
33 | decryption, signatures and signature verification. | |
af5ac3b1 | 34 | |
add9040a JR |
35 | %description -l pl.UTF-8 |
36 | Moduł Crypt::OpenSSL::RSA udostępnia możliwość kodowania algorytmem | |
37 | RSA łańcuchów, które są krótsze niż rozmiar bloku klucza. Pozwala | |
38 | także na odszyfrowywanie oraz weryfikację podpisów. | |
ae9b64b7 | 39 | |
5eaa700c GS |
40 | %prep |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
ec9b99c8 | 44 | %{__perl} Makefile.PL \ |
1080de59 | 45 | INSTALLDIRS=vendor |
9b69a8f5 | 46 | %{__make} \ |
9ad487c4 | 47 | CC="%{__cc}" \ |
9b69a8f5 | 48 | OPTIMIZE="%{rpmcflags}" |
ae9b64b7 | 49 | |
76301240 | 50 | %{?with_tests:%{__make} test} |
5eaa700c GS |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
9b69a8f5 | 55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
5eaa700c | 57 | |
5eaa700c GS |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
18869ad5 | 63 | %doc Changes README |
ec9b99c8 | 64 | %{perl_vendorarch}/Crypt/OpenSSL/RSA.pm |
65 | %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA | |
66 | %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/*.al | |
ec9b99c8 | 67 | %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/autosplit.ix |
58a932e4 | 68 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/RSA.so |
a173b707 | 69 | %{_mandir}/man3/Crypt::OpenSSL::RSA.3pm* |