3 %bcond_without tests # Do not perform "make test"
6 %define pnam OpenSSL-RSA
7 Summary: Crypt::OpenSSL::RSA - RSA encoding and decoding, using the OpenSSL libraries
8 Summary(pl.UTF-8): Crypt::OpenSSL::RSA - kodowanie i dekodowanie RSA przy użyciu OpenSSL
9 Name: perl-Crypt-OpenSSL-RSA
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 10bca2fc6d0ba1aa329f227424ae87d5
17 URL: http://search.cpan.org/dist/Crypt-OpenSSL-RSA/
18 BuildRequires: openssl-devel >= 0.9.7d
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Crypt-OpenSSL-Random
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Crypt::OpenSSL::RSA provides the ability to RSA encrypt strings which
28 are somewhat shorter than the block size of a key. It also allows for
29 decryption, signatures and signature verification.
31 %description -l pl.UTF-8
32 Moduł Crypt::OpenSSL::RSA udostępnia możliwość kodowania algorytmem
33 RSA łańcuchów, które są krótsze niż rozmiar bloku klucza. Pozwala
34 także na odszyfrowywanie oraz weryfikację podpisów.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorarch}/Crypt/OpenSSL/RSA.pm
61 %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA
62 %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/*.al
63 %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/autosplit.ix
64 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/*.so
65 %{_mandir}/man3/Crypt::OpenSSL::RSA.3pm*