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