]>
Commit | Line | Data |
---|---|---|
2fb54064 | 1 | # |
2 | # Conditional build: | |
b415bdf0 | 3 | %bcond_without tests # do not perform "make test" |
2f1b1492 | 4 | # |
4c3f1528 | 5 | %include /usr/lib/rpm/macros.perl |
922eab39 | 6 | %define pdir Crypt |
7 | %define pnam RSA | |
4c3f1528 | 8 | Summary: Crypt::RSA Perl module - RSA public-key cryptosystem |
b1c3d946 | 9 | Summary(pl.UTF-8): Moduł Perla Crypt::RSA - system kryptograficzny klucza publicznego RSA |
4c3f1528 | 10 | Name: perl-Crypt-RSA |
002d8505 | 11 | Version: 1.99 |
9b871fff | 12 | Release: 1 |
d4967266 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
4c3f1528 | 15 | Group: Development/Languages/Perl |
25859345 | 16 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
002d8505 | 17 | # Source0-md5: f675a07810d735e99d7894338aba8e87 |
25859345 | 18 | URL: http://search.cpan.org/dist/Crypt-RSA/ |
002d8505 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
b415bdf0 | 21 | %if %{with tests} |
4c3f1528 | 22 | BuildRequires: perl-Class-Loader >= 2.00 |
002d8505 | 23 | BuildRequires: perl(Convert::ASCII::Armour) |
24 | BuildRequires: perl(Crypt::Blowfish) | |
25 | BuildRequires: perl(Crypt::CBC) | |
26 | BuildRequires: perl(Crypt::Primes) >= 0.38 | |
27 | BuildRequires: perl(Crypt::Random) >= 0.34 | |
28 | BuildRequires: perl(Data::Buffer) | |
29 | BuildRequires: perl(Digest::MD2) | |
30 | BuildRequires: perl(Math::Pari) >= 2.001804 | |
31 | BuildRequires: perl(Sort::Versions) | |
32 | BuildRequires: perl(Tie::EncryptedHash) | |
4c3f1528 | 33 | BuildRequires: perl-Digest-SHA1 |
b415bdf0 | 34 | %endif |
4c3f1528 JB |
35 | BuildArch: noarch |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Crypt::RSA is a pure-perl, cleanroom implementation of the RSA | |
40 | public-key cryptosystem. | |
41 | ||
f4490e03 JR |
42 | %description -l pl.UTF-8 |
43 | Moduł Crypt::RSA jest czysto perlową implementacją systemu | |
4c3f1528 JB |
44 | kryptograficznego klucza publicznego RSA. |
45 | ||
46 | %prep | |
47 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
48 | ||
49 | %build | |
77774e9b | 50 | %{__perl} Makefile.PL \ |
d4594029 | 51 | INSTALLDIRS=vendor |
4c3f1528 JB |
52 | %{__make} |
53 | ||
b415bdf0 | 54 | %{?with_tests:%{__make} test} |
2fb54064 | 55 | |
4c3f1528 JB |
56 | %install |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
002d8505 | 67 | %doc Changes README TODO |
68 | %{perl_vendorlib}/Crypt/*.pm | |
77774e9b | 69 | %{perl_vendorlib}/Crypt/RSA |
4c3f1528 | 70 | %{_mandir}/man3/* |