%define modname Crypt-Random Name: perl-%{modname} Version: 1.25 Release: 1 Summary: Cryptographically Secure, True Random Number Generator Requires: perl = %{perl_version} perl-Class-Loader perl-Math-Pari BuildRequires: perl perl-Class-Loader perl-Math-Pari License: GPL/Artistic Group: Development/Libraries/Perl Source: %{modname}-%{version}.tar.bz2 Patch0: %{modname}-%{version}.diff BuildRoot: %{_tmppath}/%{name}-root %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 %prep %setup -q -n %{modname}-%{version} %patch0 -p1 %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make %check 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 %{perl_vendorlib}/Crypt %{perl_vendorarch}/auto/Crypt /var/adm/perl-modules/%{name} %changelog * Tue Sep 12 2006 - James Oakley - 1.25-1 - Initial release