2011-11-17 15:25:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Crypt-Random
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2006-10-31 15:09:36 +00:00
|
|
|
%define modname Crypt-Random
|
2011-11-17 15:25:13 +00:00
|
|
|
|
2006-10-31 15:09:36 +00:00
|
|
|
Name: perl-%{modname}
|
|
|
|
Version: 1.25
|
|
|
|
Release: 1
|
|
|
|
Summary: Cryptographically Secure, True Random Number Generator
|
2010-12-01 11:57:11 +00:00
|
|
|
Requires: perl-Class-Loader perl-Math-Pari
|
2006-10-31 15:09:36 +00:00
|
|
|
BuildRequires: perl perl-Class-Loader perl-Math-Pari
|
2010-12-03 13:59:33 +00:00
|
|
|
BuildRequires: perl-macros
|
2006-10-31 15:09:36 +00:00
|
|
|
License: GPL/Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
2011-11-17 15:25:13 +00:00
|
|
|
Source: %{modname}-%{version}.tar.gz
|
2008-12-29 14:05:41 +00:00
|
|
|
Patch0: %{modname}-%{version}.diff
|
2011-11-17 15:25:13 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 13:59:33 +00:00
|
|
|
%{perl_requires}
|
2006-10-31 15:09:36 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Crypt::Random is an interface module to the /dev/random device found on most
|
|
|
|
modern Unix systems. The /dev/random driver gathers environmental noise from
|
|
|
|
various non-deterministic sources including inter-keyboard timings and inter-
|
|
|
|
interrupt timings that occur within the operating system environment.
|
|
|
|
|
|
|
|
The /dev/random driver maintains an estimate of true randomness in the pool and
|
|
|
|
decreases it every time random strings are requested for use. When the estimate
|
|
|
|
goes down to zero, the routine blocks and waits for the occurrence of non-
|
|
|
|
deterministic events to refresh the pool.
|
|
|
|
|
|
|
|
The /dev/random kernel module also provides another interface, /dev/urandom,
|
|
|
|
that does not wait for the entropy-pool to recharge and returns as many bytes
|
|
|
|
as requested. /dev/urandom is considerably faster at generation compared to
|
|
|
|
/dev/random, which should be used only when very high quality randomness is
|
|
|
|
desired.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Vipul Ved Prakash <mail@vipul.net>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
2008-12-29 14:05:41 +00:00
|
|
|
%patch0 -p1
|
2006-10-31 15:09:36 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
make
|
2008-12-29 14:05:41 +00:00
|
|
|
|
|
|
|
%check
|
2006-10-31 15:09:36 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README Changes
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
/usr/bin/makerandom
|
2008-12-29 12:51:45 +00:00
|
|
|
%{perl_vendorlib}/Crypt
|
|
|
|
%{perl_vendorarch}/auto/Crypt
|
2006-10-31 15:09:36 +00:00
|
|
|
|
|
|
|
%changelog
|