diff --git a/ghc-mwc-random.changes b/ghc-mwc-random.changes index f58a9de..efc6a6e 100644 --- a/ghc-mwc-random.changes +++ b/ghc-mwc-random.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Jul 9 17:21:28 UTC 2024 - Peter Simons + +- Update mwc-random to version 0.15.1.0. + ## Changes in 0.15.1.0 + + * Additon of binomial sampler using the rejection sampling method in + Kachitvichyanukul, V. and Schmeiser, B. W. Binomial Random + Variate Generation. Communications of the ACM, 31, 2 (February, + 1988) 216. . A more + efficient basis for e.g. the beta binomial distribution: + `beta a b g >>= \p -> binomial n p g`. + ------------------------------------------------------------------- Thu Mar 30 17:07:39 UTC 2023 - Peter Simons diff --git a/ghc-mwc-random.spec b/ghc-mwc-random.spec index 9af77c1..d5e84dd 100644 --- a/ghc-mwc-random.spec +++ b/ghc-mwc-random.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-mwc-random # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,13 +20,12 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.15.0.2 +Version: 0.15.1.0 Release: 0 Summary: Fast, high quality pseudo random number generation License: BSD-2-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-base-prof @@ -49,6 +48,8 @@ BuildRequires: ghc-bytestring-devel BuildRequires: ghc-bytestring-prof BuildRequires: ghc-doctest-devel BuildRequires: ghc-doctest-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof BuildRequires: ghc-tasty-devel BuildRequires: ghc-tasty-hunit-devel BuildRequires: ghc-tasty-hunit-prof @@ -60,14 +61,11 @@ BuildRequires: ghc-tasty-quickcheck-prof %description This package contains code 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. - -Compared to the mersenne-random package, this package has a more convenient +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. +. Compared to the mersenne-random package, this package has a more convenient API, is faster, and supports more statistical distributions. %package devel @@ -98,7 +96,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -119,7 +116,7 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %license LICENSE %files devel -f %{name}-devel.files -%doc README.markdown changelog.md +%doc README.md changelog.md docs %files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files %license LICENSE diff --git a/mwc-random-0.15.0.2.tar.gz b/mwc-random-0.15.0.2.tar.gz deleted file mode 100644 index a64c8d8..0000000 --- a/mwc-random-0.15.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35d64d5d6f8e93321d36952cf9ab64e21a9cad642ba39aa7378d88aa08afc25b -size 26591 diff --git a/mwc-random-0.15.1.0.tar.gz b/mwc-random-0.15.1.0.tar.gz new file mode 100644 index 0000000..974b4af --- /dev/null +++ b/mwc-random-0.15.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:032bf9bd65054dc0def9bf037ea6a8f91a5cefe77ada18bee98598b045c3e2c8 +size 42553 diff --git a/mwc-random.cabal b/mwc-random.cabal deleted file mode 100644 index 8ce2fdc..0000000 --- a/mwc-random.cabal +++ /dev/null @@ -1,112 +0,0 @@ -name: mwc-random -version: 0.15.0.2 -x-revision: 1 -synopsis: Fast, high quality pseudo random number generation -description: - This package contains code 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. - . - Compared to the mersenne-random package, this package has a more - convenient API, is faster, and supports more statistical - distributions. - -license: BSD3 -license-file: LICENSE -homepage: https://github.com/bos/mwc-random -bug-reports: https://github.com/bos/mwc-random/issues -author: Bryan O'Sullivan -maintainer: Bryan O'Sullivan -copyright: 2009, 2010, 2011 Bryan O'Sullivan -category: Math, Statistics -build-type: Simple -cabal-version: >= 1.10 -extra-source-files: - changelog.md - README.markdown - -tested-with: - GHC ==7.10.3 - || ==8.0.2 - || ==8.2.2 - || ==8.4.4 - || ==8.6.5 - || ==8.8.3 - || ==8.10.1 - , GHCJS ==8.4 - -library - default-language: Haskell2010 - exposed-modules: System.Random.MWC - System.Random.MWC.Distributions - System.Random.MWC.CondensedTable - System.Random.MWC.SeedSource - build-depends: base >= 4.8 && < 5 - , primitive >= 0.6.2 - , random >= 1.2 - , time - , vector >= 0.7 - , math-functions >= 0.2.1.0 - - ghc-options: -Wall -funbox-strict-fields -fwarn-tabs - - -source-repository head - type: git - location: git://github.com/bos/mwc-random - -source-repository head - type: mercurial - location: https://bitbucket.org/bos/mwc-random - - -benchmark mwc-bench - type: exitcode-stdio-1.0 - hs-source-dirs: bench - main-is: Benchmark.hs - default-language: Haskell2010 - build-depends: base < 5 - , vector >= 0.11 - , gauge >= 0.2.5 - , mersenne-random - , mwc-random - , random - - -test-suite mwc-prop-tests - type: exitcode-stdio-1.0 - hs-source-dirs: tests - main-is: props.hs - default-language: Haskell2010 - ghc-options: - -Wall -threaded -rtsopts - - build-depends: base - , mwc-random - , QuickCheck >=2.2 - , vector >=0.12.1 - , tasty >=1.3.1 - , tasty-quickcheck - , tasty-hunit - -test-suite mwc-doctests - type: exitcode-stdio-1.0 - main-is: doctests.hs - hs-source-dirs: tests - default-language: Haskell2010 - if impl(ghcjs) || impl(ghc < 8.0) - Buildable: False - build-depends: - base -any - , mwc-random -any - , doctest >=0.15 && <0.20 - -- - , bytestring - , primitive - , vector >=0.11 - , random >=1.2