3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Crypt::RSA Perl module - RSA public-key cryptosystem
9 Summary(pl.UTF-8): Moduł Perla Crypt::RSA - system kryptograficzny klucza publicznego 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: fb0eb5f47f42eb8737e1ecfa28ed4523
18 URL: http://search.cpan.org/dist/Crypt-RSA/
20 BuildRequires: perl-Convert-ASCII-Armour
21 BuildRequires: perl-Class-Loader >= 2.00
22 BuildRequires: perl-Crypt-Blowfish
23 BuildRequires: perl-Crypt-CBC
24 BuildRequires: perl-Crypt-Primes >= 0.38
25 BuildRequires: perl-Crypt-Random >= 0.33
26 BuildRequires: perl-Data-Buffer
27 BuildRequires: perl-Digest-MD2
28 BuildRequires: perl-Digest-MD5
29 BuildRequires: perl-Digest-SHA1
30 BuildRequires: perl-Math-Pari >= 2.001804
31 BuildRequires: perl-Sort-Versions
32 BuildRequires: perl-Tie-EncryptedHash
34 BuildRequires: perl-devel >= 1:5.8.0
35 BuildRequires: rpm-perlprov >= 4.1-13
36 Requires: perl-Class-Loader >= 2.00
37 Requires: perl-Crypt-Primes >= 0.38
38 Requires: perl-Crypt-Random >= 0.33
39 Requires: perl-Math-Pari >= 2.001804
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Crypt::RSA is a pure-perl, cleanroom implementation of the RSA
45 public-key cryptosystem.
47 %description -l pl.UTF-8
48 Moduł Crypt::RSA jest czysto perlową implementacją systemu
49 kryptograficznego klucza publicznego RSA.
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
72 %doc Changes TODO extradocs/*
73 %{perl_vendorlib}/Crypt/RSA.pm
74 %{perl_vendorlib}/Crypt/RSA