[dieharder/el5] Initial release for Fedora

Jirka Hladky jhladky at fedoraproject.org
Sat Nov 26 22:29:49 UTC 2011


commit cda0a075962e037201d5fc9c2c411492854299ab
Author: Jirka Hladky <hladky.jiri at gmail.com>
Date:   Sat Nov 26 23:29:38 2011 +0100

    Initial release for Fedora

 .gitignore     |    1 +
 dieharder.spec |  144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 146 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..764a029 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dieharder-3.31.1.tgz
diff --git a/dieharder.spec b/dieharder.spec
new file mode 100644
index 0000000..d903c5e
--- /dev/null
+++ b/dieharder.spec
@@ -0,0 +1,144 @@
+Summary:        Random number generator tester and timer
+Name:           dieharder
+Version:        3.31.1
+Release:        3%{?dist}
+License:        GPLv2+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Group:          Development/Tools
+Source0:        http://www.phy.duke.edu/~rgb/General/${name}/%{name}-%{version}.tgz
+URL:            http://www.phy.duke.edu/~rgb/General/dieharder.php
+
+Requires:       gsl
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+
+# Needed for building manual
+BuildRequires:  texlive-latex latex2html
+
+BuildRequires:  gsl-devel
+
+
+%description 
+dieharder is a fairly involved random number/uniform deviate generator
+tester.  It can either test any of its many prebuilt and linked
+generators (basically all of those in the Gnu Scientific Library plus
+some others) or a potentially random data-set in a file.  With file
+input, it can manage either a variety of ASCII-formatted input or a raw
+binary bit string.  It is thus suitable for use in testing both software
+RNG's and hardware RNG's.
+
+dieharder does all of its work with a standalone, extensible library,
+libdieharder. Therefore its tests can be integrated into other programs.
+
+dieharder encapsulates following random number tests: George Marsaglia's
+"Diehard" battery of tests, STS (v1.6) from NIST FIPS, Knuth's tests,
+and more.  Check the documentation for complete list of the tests and
+references where possible. It is intended to be the "Swiss army knife of
+random number testers", or "the last suite of random number testers
+you'll ever wear".
+
+########################################################################
+# LIBRARY: This is the basic dieharder library
+########################################################################
+
+%package libs
+Summary:        A library of random number generator tests and timing routines
+Group:          Development/Libraries
+
+%description libs
+
+libdieharder is the core library of dieharder designed to be "the last
+suite of random number testers you'll ever wear".  It can test any of
+its many prebuilt and library linked generators (basically all of those
+in the Gnu Scientific Library plus a number of others from various
+sources) or a potentially random data-set in either an ASCII-formatted
+or raw (presumed 32 bit unsigned int) binary file.  It is fairly
+straightforward to wrap new software generators for testing, or to add
+hardware generators that have a software interface for testing, and the
+file input method permits pretty much any software or hardware RNG to be
+tested using libdieharder calls.
+
+libdieharder has as a design goal the full encapsulation in an
+extensible shell of basically all the random number tests: George
+Marsaglia's "Diehard" battery of tests, STS (v1.6) from NIST FIPS,
+Knuth's tests, and more.  Check the documentation for complete list.  
+
+
+%package devel
+Summary: A library of random number generator tests and timing routines
+Group: Development/Libraries
+Requires:  %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Development files for %{name}
+
+
+########################################################################
+# The main section common to all builds.
+########################################################################
+%prep
+%setup -q
+
+%build
+%configure
+###SMP build is not working
+###make %{?_smp_mflags} V=1
+make V=1
+
+# Build pdf manual
+pushd manual
+make
+
+
+%check
+make check
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
+rm -rf %{buildroot}%{_libdir}/libdieharder.la
+rm -rf %{buildroot}%{_libdir}/libdieharder.a
+
+########################################################################
+# Command to execute post install or uninstall of libdieharder
+########################################################################
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%clean
+rm -rf %{buildroot}
+
+########################################################################
+# Files installed with the dieharder tty UI
+########################################################################
+%files
+%defattr(-,root,root,-)
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}*
+%doc ChangeLog Copyright README COPYING NOTES %{name}.html manual/%{name}.pdf
+
+%files libs
+%defattr(-,root,root,-)
+%doc libdieharder/COPYING libdieharder/NOTES libdieharder/README
+%{_libdir}/*.so.*
+%{_mandir}/man3/lib%{name}.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/%{name}
+%{_libdir}/*.so
+
+%changelog
+* Wed Nov 16 2011 Jirka Hladky <hladky.jiri at gmail.com> - 3.31.1-3
+  - Updates according to https://bugzilla.redhat.com/show_bug.cgi?id=744339#c14
+* Tue Nov 15 2011 Jirka Hladky <hladky.jiri at gmail.com> - 3.31.1-2
+  - Updates according to https://bugzilla.redhat.com/show_bug.cgi?id=744339#c11
+* Mon Nov 14 2011 Jirka Hladky <hladky.jiri at gmail.com> - 3.31.1-1
+  - Updates according to https://bugzilla.redhat.com/show_bug.cgi?id=744339#c9
+* Sat Oct 15 2011 Jirka Hladky <hladky.jiri at gmail.com> - 3.31.1-0
+  - Update to 3.31.1
+  - It fixes build warnings
+* Fri Oct 07 2011 Jirka Hladky <hladky.jiri at gmail.com> - 3.31.0-0
+ - Initial package
+
diff --git a/sources b/sources
index e69de29..853bed4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b57404dfb812d4548caaf71a05be2d17  dieharder-3.31.1.tgz


More information about the scm-commits mailing list