3 %bcond_without tests # do not perform "make test"
7 Summary: Math::PRSG - Perl interface to pseudo random sequence generator function
8 Summary(pl.UTF-8): Math::PRSG - interfejs Perla do funkcji generatora ciągów pseudolosowych
12 # if used in a product, Systemics should be given attribution as the author
13 License: free use, distributable
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 4f0c32973d5b03d2a665b6ac6ec04b9c
17 Patch0: %{name}-paths.patch
18 URL: http://search.cpan.org/dist/Math-PRSG/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Math::PRSG is a Perl interface to pseudo random sequence generator
25 function. It implements a (159, 31, 0) LFSR, giving a period of 160
26 bits. This can then be used as a RNG if seeded well (ie. with 160 bits
27 of entropy) and if the output is fed through a message digest function
28 (in order to prevent any prediction).
30 %description -l pl.UTF-8
31 Math::PRSG to perlowy interfejs do funkcji generatora ciągów
32 pseudolosowych. Implementuje funkcję LFSR (159, 31, 0) mającą okres
33 160-bitowy. Może być używany jako generator liczb losowych jeśli
34 zostanie dobrze zasilony (160 bitami entropii), a wyjście jest
35 przekazywane przez funkcję skrótu (w celu uniknięcia
39 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 OPTIMIZE="%{rpmcflags}"
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc examples/prsg_driver.pl
63 %{perl_vendorarch}/Math/PRSG.pm
64 %dir %{perl_vendorarch}/auto/Math/PRSG
65 %attr(755,root,root) %{perl_vendorarch}/auto/Math/PRSG/PRSG.so