]>
Commit | Line | Data |
---|---|---|
c12375f3 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
7c68b70c | 4 | |
085616ed | 5 | %define pdir Crypt |
6 | %define pnam Primes | |
7c68b70c | 7 | %include /usr/lib/rpm/macros.perl |
0fa01fb7 | 8 | Summary: Crypt::Primes - provable prime number generator suitable for cryptographic applications |
3f74fbb1 | 9 | Summary(pl.UTF-8): Crypt::Primes - wiarygodny generator liczb pierwszych, nadający się do aplikacji kryptograficznych |
903a90b0 | 10 | Name: perl-Crypt-Primes |
c4115716 | 11 | Version: 0.50 |
45a4daa9 | 12 | Release: 5 |
0fa01fb7 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
903a90b0 | 15 | Group: Development/Languages/Perl |
7ad3737a | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
b73e32a4 | 17 | # Source0-md5: 041947b9645142615d687b89cf2e1a7b |
7c68b70c | 18 | URL: http://search.cpan.org/dist/Crypt-Primes/ |
9ff4a649 JB |
19 | BuildRequires: perl-Crypt-Random >= 0.33 |
20 | BuildRequires: perl-Math-Pari >= 2.001804 | |
7c68b70c | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
da3c4fab | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
903a90b0 GS |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
0fa01fb7 | 27 | Crypt::Primes module implements in pure Perl Ueli Maurer's algorithm |
28 | for generating large provable primes and secure parameters for | |
7c68b70c | 29 | public-key cryptosystems. The generated primes are almost uniformly |
0fa01fb7 | 30 | distributed over the set of primes of the specified bitsize and |
31 | expected time for generation is less than the time required for | |
7c68b70c | 32 | generating a pseudo-prime of the same size with Miller-Rabin tests. |
0fa01fb7 | 33 | Detailed description and running time analysis of the algorithm can be |
34 | found in Maurer's paper (Fast Generation of Prime Numbers and Secure | |
35 | Public-Key Cryptographic Parameters, Ueli Maurer (1994)). | |
903a90b0 | 36 | |
8e5fd7e7 JR |
37 | %description -l pl.UTF-8 |
38 | Moduł Crypt::Primes jest czysto perlową implementacją algorytmu | |
39 | generacji dużych wiarygodnych liczb losowych Ueli Maurera oraz | |
40 | generacji bezpiecznych parametrów dla systemów kryptograficznych | |
41 | korzystających z klucza publicznego. Wygenerowane liczby pierwsze są | |
42 | rozłożone niemal jednostajnie w zbiorze liczb pierwszych o zadanym | |
43 | rozmiarze bitowym a oczekiwany czas generacji jest krótszy niż dla | |
44 | generacji liczb pseudo-pierwszych o tym samym rozmiarze za pomocą | |
45 | testów Millera-Rabina. Szczegółowy opis i analizy czasowe algorytmu | |
46 | można znaleźć z artykule Maurera (Fast Generation of Prime Numbers and | |
0fa01fb7 | 47 | Secure Public-Key Cryptographic Parameters, Ueli Maurer (1994)) |
48 | ||
7c68b70c ER |
49 | - wiarygodny generator liczb pierwszych, nadający się dla aplikacji |
50 | kryptograficznych. | |
903a90b0 GS |
51 | |
52 | %prep | |
53 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
54 | ||
55 | %build | |
da3c4fab | 56 | %{__perl} Makefile.PL \ |
05ead0b4 | 57 | INSTALLDIRS=vendor |
903a90b0 GS |
58 | %{__make} |
59 | ||
c12375f3 | 60 | %{?with_tests:%{__make} test} |
61 | ||
903a90b0 GS |
62 | %install |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
c12375f3 | 65 | %{__make} install \ |
66 | DESTDIR=$RPM_BUILD_ROOT | |
903a90b0 | 67 | |
903a90b0 GS |
68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
9ff4a649 JB |
73 | %doc Changes README |
74 | %attr(755,root,root) %{_bindir}/* | |
da3c4fab | 75 | %{perl_vendorlib}/Crypt/Primes.pm |
9ff4a649 | 76 | %{_mandir}/man[13]/* |