]> git.pld-linux.org Git - packages/perl-Crypt-Primes.git/blame - perl-Crypt-Primes.spec
use generic url
[packages/perl-Crypt-Primes.git] / perl-Crypt-Primes.spec
CommitLineData
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 8Summary: Crypt::Primes - provable prime number generator suitable for cryptographic applications
3f74fbb1 9Summary(pl.UTF-8): Crypt::Primes - wiarygodny generator liczb pierwszych, nadający się do aplikacji kryptograficznych
903a90b0 10Name: perl-Crypt-Primes
c4115716 11Version: 0.50
45a4daa9 12Release: 5
0fa01fb7 13# same as perl
14License: GPL v1+ or Artistic
903a90b0 15Group: Development/Languages/Perl
7ad3737a 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
b73e32a4 17# Source0-md5: 041947b9645142615d687b89cf2e1a7b
7c68b70c 18URL: http://search.cpan.org/dist/Crypt-Primes/
9ff4a649
JB
19BuildRequires: perl-Crypt-Random >= 0.33
20BuildRequires: perl-Math-Pari >= 2.001804
7c68b70c 21BuildRequires: perl-devel >= 1:5.8.0
da3c4fab 22BuildRequires: rpm-perlprov >= 4.1-13
903a90b0
GS
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
0fa01fb7 27Crypt::Primes module implements in pure Perl Ueli Maurer's algorithm
28for generating large provable primes and secure parameters for
7c68b70c 29public-key cryptosystems. The generated primes are almost uniformly
0fa01fb7 30distributed over the set of primes of the specified bitsize and
31expected time for generation is less than the time required for
7c68b70c 32generating a pseudo-prime of the same size with Miller-Rabin tests.
0fa01fb7 33Detailed description and running time analysis of the algorithm can be
34found in Maurer's paper (Fast Generation of Prime Numbers and Secure
35Public-Key Cryptographic Parameters, Ueli Maurer (1994)).
903a90b0 36
8e5fd7e7
JR
37%description -l pl.UTF-8
38Moduł Crypt::Primes jest czysto perlową implementacją algorytmu
39generacji dużych wiarygodnych liczb losowych Ueli Maurera oraz
40generacji bezpiecznych parametrów dla systemów kryptograficznych
41korzystających z klucza publicznego. Wygenerowane liczby pierwsze są
42rozłożone niemal jednostajnie w zbiorze liczb pierwszych o zadanym
43rozmiarze bitowym a oczekiwany czas generacji jest krótszy niż dla
44generacji liczb pseudo-pierwszych o tym samym rozmiarze za pomocą
45testów Millera-Rabina. Szczegółowy opis i analizy czasowe algorytmu
46można znaleźć z artykule Maurera (Fast Generation of Prime Numbers and
0fa01fb7 47Secure 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
63rm -rf $RPM_BUILD_ROOT
64
c12375f3 65%{__make} install \
66 DESTDIR=$RPM_BUILD_ROOT
903a90b0 67
903a90b0
GS
68%clean
69rm -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]/*
This page took 0.090904 seconds and 4 git commands to generate.