[ghc-mwc-random] update to 0.13.3.0
Jens Petersen
petersen at fedoraproject.org
Tue Jan 20 08:51:10 UTC 2015
commit d6307848d91935151c5ffd1cf574c2b834550795
Author: Jens Petersen <petersen at redhat.com>
Date: Tue Jan 20 17:51:07 2015 +0900
update to 0.13.3.0
.gitignore | 1 +
ghc-mwc-random.spec | 37 +++++++++++++++++++++++++++++--------
sources | 2 +-
3 files changed, 31 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0b3d44b..e81ef0d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/mwc-random-0.11.0.0.tar.gz
/mwc-random-0.12.0.0.tar.gz
/mwc-random-0.12.0.1.tar.gz
+/mwc-random-0.13.3.0.tar.gz
diff --git a/ghc-mwc-random.spec b/ghc-mwc-random.spec
index 3929ae3..3e9b7ac 100644
--- a/ghc-mwc-random.spec
+++ b/ghc-mwc-random.spec
@@ -2,14 +2,16 @@
%global pkg_name mwc-random
+%bcond_with tests
+
Name: ghc-%{pkg_name}
-Version: 0.12.0.1
-Release: 7%{?dist}
+Version: 0.13.3.0
+Release: 1%{?dist}
Summary: Fast, high quality pseudo random number generation
License: BSD
-URL: http://hackage.haskell.org/package/%{pkg_name}
-Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
+Url: https://hackage.haskell.org/package/%{pkg_name}
+Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
@@ -17,16 +19,25 @@ BuildRequires: ghc-rpm-macros
BuildRequires: ghc-primitive-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-vector-devel
+%if %{with tests}
+BuildRequires: ghc-HUnit-devel
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-statistics-devel
+BuildRequires: ghc-test-framework-devel
+BuildRequires: ghc-test-framework-hunit-devel
+BuildRequires: ghc-test-framework-quickcheck2-devel
+%endif
# End cabal-rpm deps
%description
A library for generating high quality random numbers that follow
either a uniform or normal distribution. The generated numbers are
suitable for use in statistical applications.
+
The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
-multiply-with-carry generator, which has a period of 2^8222 and
-fares well in tests of randomness. It is also extremely fast,
-between 2 and 3 times faster than the Mersenne Twister.
+multiply-with-carry generator, which has a period of 2^8222 and fares well in
+tests of randomness. It is also extremely fast, between 2 and 3 times faster
+than the Mersenne Twister.
Compared to the mersenne-random package, this package has a more
convenient API, is faster, and supports more statistical distributions.
@@ -34,10 +45,11 @@ convenient API, is faster, and supports more statistical distributions.
%package devel
Summary: Haskell %{pkg_name} library development files
+Provides: %{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
@@ -55,6 +67,12 @@ This package provides the Haskell %{pkg_name} library development files.
%ghc_lib_install
+%check
+%if %{with tests}
+%cabal test
+%endif
+
+
%post devel
%ghc_pkg_recache
@@ -72,6 +90,9 @@ This package provides the Haskell %{pkg_name} library development files.
%changelog
+* Tue Jan 20 2015 Jens Petersen <petersen at redhat.com> - 0.13.3.0-1
+- update to 0.13.3.0
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
diff --git a/sources b/sources
index d606ac2..a4b0aa5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2214efca0e9413a8ea178bb494f8d1b6 mwc-random-0.12.0.1.tar.gz
+80f398f0c855325ef7af69d33903c49e mwc-random-0.13.3.0.tar.gz
More information about the scm-commits
mailing list