From 91965cfd728a6f070b7de2eef6f301abb2e94dbc976b7b9f51e85fc83fb11949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 17 Aug 2021 09:54:16 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-mwc-random revision:16, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-mwc-random?expand=0&rev=25 --- ghc-mwc-random.changes | 34 ++++++++++++++++++++++++++++++++++ ghc-mwc-random.spec | 17 +++++++++++++++-- mwc-random-0.15.0.2.tar.gz | 3 +++ 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 mwc-random-0.15.0.2.tar.gz diff --git a/ghc-mwc-random.changes b/ghc-mwc-random.changes index 27386aa..cd021a8 100644 --- a/ghc-mwc-random.changes +++ b/ghc-mwc-random.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Mon Aug 16 07:22:53 UTC 2021 - psimons@suse.com + +- Update mwc-random to version 0.15.0.2. + ## Changes in 0.15.0.2 + + * Doctests on 32-bit platforms are fixed. (#79) + +------------------------------------------------------------------- +Sat Jul 10 14:07:01 UTC 2021 - psimons@suse.com + +- Update mwc-random to version 0.15.0.1 revision 2. + ## Changes in 0.15.0.1 + + * Bug in generation of Int/Word in both uniform and uniformR is fixed. (#75) + + ## Changes in 0.15.0.0 + + * `withSystemRandomST` and `createSystemSeed` are added. + + * `withSystemRandom` is deprecated. + + * `random>=1.2` is dependency of `mwc-random`. + + * Instances for type classes `StatefulGen` & `FrozenGen` defined in random-1.2 + are added for `Gen`. + + * Functions in `System.Random.MWC.Distributions` and + `System.Random.MWC.CondensedTable` now work with arbitrary `StatefulGen` + + * `System.Random.MWC.uniformVector` now works with arbitrary `StatefulGen` as + well and uses in-place initialization instead of `generateM`. It should be + faster for anything but IO and ST (those shoud remain same). + ------------------------------------------------------------------- Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup diff --git a/ghc-mwc-random.spec b/ghc-mwc-random.spec index b7324a0..6a25180 100644 --- a/ghc-mwc-random.spec +++ b/ghc-mwc-random.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-mwc-random # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,9 @@ %global pkg_name mwc-random +%bcond_with tests Name: ghc-%{pkg_name} -Version: 0.14.0.0 +Version: 0.15.0.2 Release: 0 Summary: Fast, high quality pseudo random number generation License: BSD-2-Clause @@ -27,10 +28,19 @@ Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg BuildRequires: ghc-Cabal-devel BuildRequires: ghc-math-functions-devel BuildRequires: ghc-primitive-devel +BuildRequires: ghc-random-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-time-devel BuildRequires: ghc-vector-devel ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-doctest-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-quickcheck-devel +%endif %description This package contains code for generating high quality random numbers that @@ -64,6 +74,9 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install +%check +%cabal_test + %post devel %ghc_pkg_recache diff --git a/mwc-random-0.15.0.2.tar.gz b/mwc-random-0.15.0.2.tar.gz new file mode 100644 index 0000000..a64c8d8 --- /dev/null +++ b/mwc-random-0.15.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35d64d5d6f8e93321d36952cf9ab64e21a9cad642ba39aa7378d88aa08afc25b +size 26591