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