]> git.pld-linux.org Git - packages/perl-Math-PRSG.git/blame - perl-Math-PRSG.spec
- rebuild with perl 5.30.0
[packages/perl-Math-PRSG.git] / perl-Math-PRSG.spec
CommitLineData
01aab1ca 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
26daaeea 5%include /usr/lib/rpm/macros.perl
b8f90a9e 6%define pdir Math
7%define pnam PRSG
8fd630ec
JB
8Summary: Math::PRSG - Perl interface to pseudo random sequence generator function
9Summary(pl.UTF-8): Math::PRSG - interfejs Perla do funkcji generatora ciągów pseudolosowych
d988ea1e 10Name: perl-Math-PRSG
11Version: 1.0
aa11e868 12Release: 21
01aab1ca 13# if used in a product, Systemics should be given attribution as the author
14License: free use, distributable
d988ea1e 15Group: Development/Languages/Perl
8fd630ec 16Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
4a29a834 17# Source0-md5: 4f0c32973d5b03d2a665b6ac6ec04b9c
961c3c49 18Patch0: %{name}-paths.patch
8fd630ec 19URL: http://search.cpan.org/dist/Math-PRSG/
07400e55 20BuildRequires: perl-devel >= 1:5.8.0
8fd630ec 21BuildRequires: rpm-perlprov >= 4.1-13
9eb34ca1 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d988ea1e 23
24%description
8fd630ec
JB
25Math::PRSG is a Perl interface to pseudo random sequence generator
26function. It implements a (159, 31, 0) LFSR, giving a period of 160
27bits. This can then be used as a RNG if seeded well (ie. with 160 bits
28of entropy) and if the output is fed through a message digest function
29(in order to prevent any prediction).
d988ea1e 30
cdc0944b 31%description -l pl.UTF-8
8fd630ec
JB
32Math::PRSG to perlowy interfejs do funkcji generatora ciągów
33pseudolosowych. Implementuje funkcję LFSR (159, 31, 0) mającą okres
34160-bitowy. Może być używany jako generator liczb losowych jeśli
35zostanie dobrze zasilony (160 bitami entropii), a wyjście jest
36przekazywane przez funkcję skrótu (w celu uniknięcia
37przewidywalności).
d988ea1e 38
39%prep
26daaeea 40%setup -q -n %{pdir}-%{pnam}-%{version}
8b395f5a 41%patch0 -p1
d988ea1e 42
43%build
d4d8b755 44%{__perl} Makefile.PL \
40732574 45 INSTALLDIRS=vendor
01aab1ca 46%{__make} \
ced382c3 47 CC="%{__cc}" \
01aab1ca 48 OPTIMIZE="%{rpmcflags}"
49
50%{?with_tests:%{__make} test}
d988ea1e 51
52%install
53rm -rf $RPM_BUILD_ROOT
d988ea1e 54
99e1dfa0 55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
d988ea1e 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
2f498b7a 63%doc examples/prsg_driver.pl
d4d8b755 64%{perl_vendorarch}/Math/PRSG.pm
65%dir %{perl_vendorarch}/auto/Math/PRSG
d4d8b755 66%attr(755,root,root) %{perl_vendorarch}/auto/Math/PRSG/PRSG.so
d988ea1e 67%{_mandir}/man3/*
This page took 1.585657 seconds and 4 git commands to generate.