3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam OpenSSL-RSA
8 Summary: Crypt::OpenSSL::RSA - RSA encoding and decoding, using the OpenSSL libraries
9 Summary(pl.UTF-8): Crypt::OpenSSL::RSA - kodowanie i dekodowanie RSA przy użyciu OpenSSL
10 Name: perl-Crypt-OpenSSL-RSA
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 10bca2fc6d0ba1aa329f227424ae87d5
18 URL: http://search.cpan.org/dist/Crypt-OpenSSL-RSA/
19 BuildRequires: openssl-devel >= 0.9.7d
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-Crypt-OpenSSL-Random
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/Crypt/OpenSSL/RSA.pm
62 %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA
63 %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/*.al
64 %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/autosplit.ix
65 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/*.so
66 %{_mandir}/man3/Crypt::OpenSSL::RSA.3pm*