]>
Commit | Line | Data |
---|---|---|
f3eb10e9 | 1 | # |
b3d09cb6 | 2 | # Conditional build: |
1d8e2fca | 3 | %bcond_without tests # do not perform "make test" |
f3eb10e9 | 4 | # |
3c95d340 | 5 | %include /usr/lib/rpm/macros.perl |
0d5c2ea5 | 6 | %define pdir Crypt |
7 | %define pnam Random | |
b3d09cb6 | 8 | Summary: Crypt::Random - cryptographically secure, true random number generator |
2361c53f | 9 | Summary(pl.UTF-8): Crypt::Random - bezpieczny kryptograficznie, prawdziwy generator liczb losowych |
3c95d340 | 10 | Name: perl-Crypt-Random |
78d0631f | 11 | Version: 1.25 |
eda451cb | 12 | Release: 2 |
c1753f43 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
3c95d340 | 15 | Group: Development/Languages/Perl |
46d819a4 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
78d0631f | 17 | # Source0-md5: 5730c9d5acdd698790216d354ffb0513 |
4c36e404 | 18 | Patch0: %{name}-no_Class_Loader.patch |
1d8e2fca | 19 | %if %{with tests} |
7615c4eb | 20 | BuildRequires: perl-Math-Pari >= 2.001804 |
1d8e2fca | 21 | %endif |
a4652ac2 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
ab6fe8b4 | 23 | BuildRequires: perl-devel >= 1:5.8.0 |
3c95d340 GS |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
b3d09cb6 JB |
28 | Crypt::Random is an interface module to the /dev/random device found |
29 | on most modern Unix systems. The /dev/random driver gathers | |
30 | environmental noise from various non-deterministic sources including | |
31 | inter-keyboard timings and inter-interrupt timings that occur within | |
32 | the operating system environment. | |
3c95d340 | 33 | |
63ceaca4 JR |
34 | %description -l pl.UTF-8 |
35 | Moduł Perla Crypt::Random stanowi interfejs do urządzenia /dev/random | |
36 | znajdującego się w większości współczesnych systemów uniksowych. | |
37 | Sterownik /dev/random gromadzi szum pochodzący z różnych | |
38 | niedeterministycznych źródeł, włączając w to: przebiegi czasowe | |
39 | klawiatury i przerwań występujące w systemie operacyjnym. | |
3c95d340 GS |
40 | |
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
4c36e404 | 43 | %patch0 -p1 |
3c95d340 GS |
44 | |
45 | %build | |
a4652ac2 | 46 | %{__perl} Makefile.PL \ |
82b46ca6 | 47 | INSTALLDIRS=vendor |
3c95d340 GS |
48 | %{__make} |
49 | ||
1d8e2fca | 50 | %{?with_tests:%{__make} test} |
b3d09cb6 | 51 | |
3c95d340 GS |
52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
1d8e2fca | 55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
3c95d340 | 57 | |
3c95d340 GS |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
7615c4eb JB |
63 | %doc Changes README |
64 | %attr(755,root,root) %{_bindir}/* | |
a4652ac2 | 65 | %{perl_vendorlib}/Crypt/Random.pm |
66 | %{perl_vendorlib}/Crypt/Random | |
67 | #%%{perl_vendorlib}/Crypt/Random/Generator.pm | |
3c95d340 | 68 | %{_mandir}/man3/* |