commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2020-08-28 21:35:12 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new.3399 (New) Package is "ghc-mwc-random" Fri Aug 28 21:35:12 2020 rev:6 rq:829357 version:0.14.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2020-06-19 17:15:44.662591511 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new.3399/ghc-mwc-random.changes 2020-08-28 21:35:15.344720325 +0200 @@ -1,0 +2,5 @@ +Tue Aug 18 10:45:31 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +--- Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.V5u2XK/_old 2020-08-28 21:35:16.300720777 +0200 +++ /var/tmp/diff_new_pack.V5u2XK/_new 2020-08-28 21:35:16.304720779 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-mwc-random # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -55,7 +55,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} %build %ghc_lib_build
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2020-06-19 17:15:41 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new.3606 (New) Package is "ghc-mwc-random" Fri Jun 19 17:15:41 2020 rev:5 rq:815137 version:0.14.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2019-12-27 13:55:36.444723214 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new.3606/ghc-mwc-random.changes 2020-06-19 17:15:44.662591511 +0200 @@ -1,0 +2,5 @@ +Tue Jun 16 11:14:22 UTC 2020 - Peter Simons + +- Re-generate file with latest version of spec-cleaner. + +--- Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.mLbXEk/_old 2020-06-19 17:15:45.826595139 +0200 +++ /var/tmp/diff_new_pack.mLbXEk/_new 2020-06-19 17:15:45.830595152 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-mwc-random # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2019-12-27 13:55:28 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new.6675 (New) Package is "ghc-mwc-random" Fri Dec 27 13:55:28 2019 rev:4 rq:759455 version:0.14.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2018-10-25 08:27:49.331761117 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new.6675/ghc-mwc-random.changes 2019-12-27 13:55:36.444723214 +0100 @@ -1,0 +2,5 @@ +Fri Nov 8 16:14:16 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +--- Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.IGY100/_old 2019-12-27 13:55:37.280723618 +0100 +++ /var/tmp/diff_new_pack.IGY100/_new 2019-12-27 13:55:37.280723618 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-mwc-random # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,6 @@ Release:0 Summary:Fast, high quality pseudo random number generation License:BSD-2-Clause -Group: Development/Libraries/Haskell 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 @@ -47,7 +46,6 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version}
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2018-10-25 08:27:42 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new (New) Package is "ghc-mwc-random" Thu Oct 25 08:27:42 2018 rev:3 rq:643426 version:0.14.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2018-08-20 16:20:39.544927403 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new/ghc-mwc-random.changes 2018-10-25 08:27:49.331761117 +0200 @@ -1,0 +2,5 @@ +Sat Oct 20 11:31:46 UTC 2018 - Peter Simons + +- Use https URL to refer to bugs.opensuse.org. + +--- Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.nhVAOF/_old 2018-10-25 08:27:50.747760459 +0200 +++ /var/tmp/diff_new_pack.nhVAOF/_new 2018-10-25 08:27:50.751760458 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ #
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2018-08-20 16:20:38 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new (New) Package is "ghc-mwc-random" Mon Aug 20 16:20:38 2018 rev:2 rq:630370 version:0.14.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2018-07-25 16:09:23.253481285 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new/ghc-mwc-random.changes 2018-08-20 16:20:39.544927403 +0200 @@ -1,0 +2,13 @@ +Fri Aug 17 09:43:29 UTC 2018 - psim...@suse.com + +- Update mwc-random to version 0.14.0.0. + ## Changes in 0.14.0.0 + +* Low level functions for acquiring random data for initialization + of PRGN state is moved to `System.Random.MWC.SeedSource` module + +* Ensure that carry is always correct when restoring PRNG state from + seed. Only affects users who create 258 element seed manually. + (#63, #65) + +--- Old: mwc-random-0.13.6.0.tar.gz New: mwc-random-0.14.0.0.tar.gz Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.GcorNx/_old 2018-08-20 16:20:42.256931236 +0200 +++ /var/tmp/diff_new_pack.GcorNx/_new 2018-08-20 16:20:42.260931242 +0200 @@ -17,9 +17,8 @@ %global pkg_name mwc-random -%bcond_with tests Name: ghc-%{pkg_name} -Version:0.13.6.0 +Version:0.14.0.0 Release:0 Summary:Fast, high quality pseudo random number generation License:BSD-2-Clause @@ -32,14 +31,6 @@ BuildRequires: ghc-rpm-macros 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 %description This package contains code for generating high quality random numbers that @@ -74,9 +65,6 @@ %install %ghc_lib_install -%check -%cabal_test - %post devel %ghc_pkg_recache ++ mwc-random-0.13.6.0.tar.gz -> mwc-random-0.14.0.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.6.0/README.markdown new/mwc-random-0.14.0.0/README.markdown --- old/mwc-random-0.13.6.0/README.markdown 2017-04-27 14:54:49.0 +0200 +++ new/mwc-random-0.14.0.0/README.markdown 2018-07-11 18:23:47.0 +0200 @@ -1,4 +1,6 @@ # Efficient, general purpose pseudo-random number generation +[![Build Status](https://travis-ci.org/Shimuuar/mwc-random.png?branch=master)](https://travis-ci.org/Shimuuar/mwc-random) +[![Build status](https://ci.appveyor.com/api/projects/status/4228vkxje4as3nhw/branch/master)](https://ci.appveyor.com/project/Shimuuar/mwc-random) This package provides the System.Random.MWC module, a Haskell library for generating high-quality pseudo-random numbers in a space- and diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.6.0/System/Random/MWC/SeedSource.hs new/mwc-random-0.14.0.0/System/Random/MWC/SeedSource.hs --- old/mwc-random-0.13.6.0/System/Random/MWC/SeedSource.hs 1970-01-01 01:00:00.0 +0100 +++ new/mwc-random-0.14.0.0/System/Random/MWC/SeedSource.hs 2018-07-11 18:23:47.0 +0200 @@ -0,0 +1,97 @@ +{-# LANGUAGE CPP #-} +{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE ScopedTypeVariables #-} +-- | +-- Low level source of random values for seeds. It should work on both +-- unices and windows +module System.Random.MWC.SeedSource ( +acquireSeedSystem + , acquireSeedTime + , randomSourceName + ) where + +import Control.Monad (liftM) +import Data.Word (Word32,Word64) +import Data.Bits (shiftR) +import Data.Ratio ((%), numerator) +import Data.Time.Clock.POSIX (getPOSIXTime) + +import Foreign.Storable +import Foreign.Marshal.Alloc (allocaBytes) +import Foreign.Marshal.Array (peekArray) +#if defined(mingw32_HOST_OS) +import Foreign.Ptr +import Foreign.C.Types +#endif +import System.CPUTime (cpuTimePrecision, getCPUTime) +import System.IO(IOMode(..), hGetBuf, withBinaryFile) + +-- Acquire seed from current time. This is horrible fallback for +-- Windows system. +acquireSeedTime :: IO [Word32] +acquireSeedTime = do + c <- (numerator . (%cpuTimePrecision)) `liftM` getCPUTime + t <- toRational `liftM` getPOSIXTime + let n= fromIntegral (numerator t) ::
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2018-07-25 16:09:16 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new (New) Package is "ghc-mwc-random" Wed Jul 25 16:09:16 2018 rev:1 rq:624462 version:0.13.6.0 Changes: New Changes file: --- /dev/null 2018-07-14 11:19:38.193360615 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new/ghc-mwc-random.changes 2018-07-25 16:09:23.253481285 +0200 @@ -0,0 +1,4 @@ +--- +Fri Jul 20 13:38:44 UTC 2018 - psim...@suse.com + +- Add mwc-random at version 0.13.6.0. New: ghc-mwc-random.changes ghc-mwc-random.spec mwc-random-0.13.6.0.tar.gz Other differences: -- ++ ghc-mwc-random.spec ++ # # spec file for package ghc-mwc-random # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global pkg_name mwc-random %bcond_with tests Name: ghc-%{pkg_name} Version:0.13.6.0 Release:0 Summary:Fast, high quality pseudo random number generation License:BSD-2-Clause Group: Development/Libraries/Haskell 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-math-functions-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-rpm-macros 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 %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. %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %check %cabal_test %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %license LICENSE %files devel -f %{name}-devel.files %doc README.markdown changelog.md %changelog
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2017-09-15 21:59:47 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new (New) Package is "ghc-mwc-random" Fri Sep 15 21:59:47 2017 rev:6 rq:525047 version:0.13.6.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2017-06-04 01:54:50.262509770 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new/ghc-mwc-random.changes 2017-09-15 21:59:48.457761274 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +--- Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.XkH5q1/_old 2017-09-15 21:59:49.233651938 +0200 +++ /var/tmp/diff_new_pack.XkH5q1/_new 2017-09-15 21:59:49.233651938 +0200 @@ -17,13 +17,14 @@ %global pkg_name mwc-random +%bcond_with tests Name: ghc-%{pkg_name} Version:0.13.6.0 Release:0 Summary:Fast, high quality pseudo random number generation License:BSD-2-Clause -Group: Development/Languages/Other -Url:https://hackage.haskell.org/package/%{pkg_name} +Group: Development/Libraries/Haskell +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-math-functions-devel @@ -31,7 +32,14 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-time-devel BuildRequires: ghc-vector-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%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 %description This package contains code for generating high quality random numbers that @@ -48,7 +56,7 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -66,6 +74,9 @@ %install %ghc_lib_install +%check +%cabal_test + %post devel %ghc_pkg_recache @@ -73,11 +84,9 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %doc README.markdown changelog.md %changelog
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2017-06-04 01:54:49 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new (New) Package is "ghc-mwc-random" Sun Jun 4 01:54:49 2017 rev:5 rq:494179 version:0.13.6.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2017-01-12 15:50:53.605389041 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new/ghc-mwc-random.changes 2017-06-04 01:54:50.262509770 +0200 @@ -1,0 +2,5 @@ +Wed May 3 08:13:52 UTC 2017 - psim...@suse.com + +- Update to version 0.13.6.0 with cabal2obs. + +--- Old: mwc-random-0.13.5.0.tar.gz New: mwc-random-0.13.6.0.tar.gz Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.PAlY2s/_old 2017-06-04 01:54:50.802433490 +0200 +++ /var/tmp/diff_new_pack.PAlY2s/_new 2017-06-04 01:54:50.806432925 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-mwc-random # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %global pkg_name mwc-random Name: ghc-%{pkg_name} -Version:0.13.5.0 +Version:0.13.6.0 Release:0 Summary:Fast, high quality pseudo random number generation License:BSD-2-Clause @@ -26,6 +26,7 @@ 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-math-functions-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-time-devel ++ mwc-random-0.13.5.0.tar.gz -> mwc-random-0.13.6.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.5.0/System/Random/MWC/CondensedTable.hs new/mwc-random-0.13.6.0/System/Random/MWC/CondensedTable.hs --- old/mwc-random-0.13.5.0/System/Random/MWC/CondensedTable.hs 2016-12-01 14:29:55.0 +0100 +++ new/mwc-random-0.13.6.0/System/Random/MWC/CondensedTable.hs 2017-04-27 14:54:49.0 +0200 @@ -40,6 +40,7 @@ import qualified Data.Vector.Unboxed as U import qualified Data.Vector as V import Data.Vector.Generic (Vector) +import Numeric.SpecFunctions (logFactorial) import Prelude hiding ((++)) @@ -237,9 +238,11 @@ ++ U.tail (U.unfoldr unfoldBackward (pMax, nMax)) where -- Number with highest probability and its probability +-- +-- FIXME: this is not ideal precision-wise. Check if code +--from statistics gives better precision. nMax = floor lam :: Int -pMax = let c = lam * exp( -lam / fromIntegral nMax ) - in U.foldl' (\p i -> p * c / i) 1 (U.enumFromN 1 nMax) +pMax = exp $ fromIntegral nMax * log lam - lam - logFactorial nMax -- Build probability list unfoldForward (p,i) | p < minP = Nothing @@ -252,6 +255,7 @@ | otherwise = Just ( (i,p) , (p / lam * fromIntegral i, i-1) ) +-- Minimal representable probability for condensed tables minP = 1.1641532182693481e-10 -- 2**(-33) -- | Create a lookup table for the binomial distribution. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.5.0/changelog.md new/mwc-random-0.13.6.0/changelog.md --- old/mwc-random-0.13.5.0/changelog.md2016-12-01 14:29:55.0 +0100 +++ new/mwc-random-0.13.6.0/changelog.md2017-04-27 14:54:49.0 +0200 @@ -1,3 +1,8 @@ +## Changes in 0.13.6.0 + + * `tablePoisson` now can handle λ>1923, see #59 for details. +That required intoduction of dependency on math-functions. + ## Changes in 0.13.5.0 * `logCategorical` added diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.5.0/mwc-random.cabal new/mwc-random-0.13.6.0/mwc-random.cabal --- old/mwc-random-0.13.5.0/mwc-random.cabal2016-12-01 14:29:55.0 +0100 +++ new/mwc-random-0.13.6.0/mwc-random.cabal2017-04-27 14:54:49.0 +0200 @@ -1,5 +1,5 @@ name: mwc-random -version:0.13.5.0 +version:0.13.6.0 synopsis: Fast, high quality pseudo random number
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2016-07-21 08:13:46 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new (New) Package is "ghc-mwc-random" Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2016-02-23 16:59:34.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new/ghc-mwc-random.changes 2016-07-21 08:13:51.0 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:23:39 UTC 2016 - psim...@suse.com + +- Update to version 0.13.4.0 revision 0 with cabal2obs. + +--- Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.sdz0Sy/_old 2016-07-21 08:13:54.0 +0200 +++ /var/tmp/diff_new_pack.sdz0Sy/_new 2016-07-21 08:13:54.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-mwc-random # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,35 +15,23 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%global pkg_name mwc-random - -%bcond_with tests -Name: ghc-mwc-random +%global pkg_name mwc-random +Name: ghc-%{pkg_name} Version:0.13.4.0 Release:0 Summary:Fast, high quality pseudo random number generation -Group: System/Libraries - License:BSD-2-Clause +Group: System/Libraries Url:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-primitive-devel +BuildRequires: ghc-rpm-macros 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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build # End cabal-rpm deps %description @@ -59,19 +47,17 @@ Compared to the mersenne-random package, this package has a more convenient API, is faster, and supports more statistical distributions. - %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. - %prep %setup -q -n %{pkg_name}-%{version} @@ -84,28 +70,18 @@ %ghc_lib_install -%check -%if %{with tests} -%cabal test -%endif - - %post devel %ghc_pkg_recache - %postun devel %ghc_pkg_recache - %files -f %{name}.files %defattr(-,root,root,-) %doc LICENSE - %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc README.markdown - +%doc ChangeLog README.markdown %changelog
commit ghc-mwc-random for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-mwc-random for openSUSE:Factory checked in at 2016-02-23 16:57:43 Comparing /work/SRC/openSUSE:Factory/ghc-mwc-random (Old) and /work/SRC/openSUSE:Factory/.ghc-mwc-random.new (New) Package is "ghc-mwc-random" Changes: --- /work/SRC/openSUSE:Factory/ghc-mwc-random/ghc-mwc-random.changes 2015-09-17 09:20:16.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-mwc-random.new/ghc-mwc-random.changes 2016-02-23 16:59:34.0 +0100 @@ -1,0 +2,5 @@ +Mon Feb 22 07:27:38 UTC 2016 - mimi...@gmail.com + +- update to 0.13.4.0 + +--- Old: mwc-random-0.13.3.2.tar.gz New: mwc-random-0.13.4.0.tar.gz Other differences: -- ++ ghc-mwc-random.spec ++ --- /var/tmp/diff_new_pack.Y50DIv/_old 2016-02-23 16:59:35.0 +0100 +++ /var/tmp/diff_new_pack.Y50DIv/_new 2016-02-23 16:59:35.0 +0100 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-mwc-random -Version:0.13.3.2 +Version:0.13.4.0 Release:0 Summary:Fast, high quality pseudo random number generation Group: System/Libraries ++ mwc-random-0.13.3.2.tar.gz -> mwc-random-0.13.4.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.3.2/ChangeLog new/mwc-random-0.13.4.0/ChangeLog --- old/mwc-random-0.13.3.2/ChangeLog 2015-03-29 23:25:02.0 +0200 +++ new/mwc-random-0.13.4.0/ChangeLog 2016-02-20 12:34:03.0 +0100 @@ -1,3 +1,8 @@ +Changes in 0.13.4.0 + + * withSystemRandom uses RtlGenRandom for seeding generator on windows + + Changes in 0.13.3.1 * primitive-0.6 compatibility diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.3.2/System/Random/MWC/Distributions.hs new/mwc-random-0.13.4.0/System/Random/MWC/Distributions.hs --- old/mwc-random-0.13.3.2/System/Random/MWC/Distributions.hs 2015-03-29 23:25:02.0 +0200 +++ new/mwc-random-0.13.4.0/System/Random/MWC/Distributions.hs 2016-02-20 12:34:03.0 +0100 @@ -1,4 +1,4 @@ -{-# LANGUAGE BangPatterns, GADTs, FlexibleContexts, ScopedTypeVariables #-} +{-# LANGUAGE BangPatterns, CPP, GADTs, FlexibleContexts, ScopedTypeVariables #-} -- | -- Module: System.Random.MWC.Distributions -- Copyright : (c) 2012 Bryan O'Sullivan @@ -41,7 +41,10 @@ import Control.Monad.Primitive (PrimMonad, PrimState) import Data.Bits ((.&.)) import Data.Foldable (foldl') -import Data.Traversable (Traversable,mapM) +#if !MIN_VERSION_base(4,8,0) +import Data.Traversable (Traversable) +#endif +import Data.Traversable (mapM) import Data.Word (Word32) import System.Random.MWC (Gen, uniform, uniformR) import qualified Data.Vector.Unboxed as I diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mwc-random-0.13.3.2/System/Random/MWC.hs new/mwc-random-0.13.4.0/System/Random/MWC.hs --- old/mwc-random-0.13.3.2/System/Random/MWC.hs2015-03-29 23:25:02.0 +0200 +++ new/mwc-random-0.13.4.0/System/Random/MWC.hs2016-02-20 12:34:03.0 +0100 @@ -1,5 +1,6 @@ {-# LANGUAGE BangPatterns, CPP, DeriveDataTypeable, FlexibleContexts, -MagicHash, Rank2Types, ScopedTypeVariables, TypeFamilies, UnboxedTuples #-} +MagicHash, Rank2Types, ScopedTypeVariables, TypeFamilies, UnboxedTuples, +ForeignFunctionInterface #-} -- | -- Module: System.Random.MWC -- Copyright : (c) 2009-2012 Bryan O'Sullivan @@ -103,14 +104,17 @@ import Control.Monad.Primitive (PrimBase) #endif import Control.Monad.ST(ST) -import Data.Bits (Bits, (.&.), (.|.), shiftL, shiftR, xor) +import Data.Bits ((.&.), (.|.), shiftL, shiftR, xor) import Data.Int(Int8, Int16, Int32, Int64) import Data.IORef (atomicModifyIORef, newIORef) import Data.Ratio ((%), numerator) import Data.Time.Clock.POSIX (getPOSIXTime) import Data.Typeable (Typeable) import Data.Vector.Generic (Vector) -import Data.Word (Word, Word8, Word16, Word32, Word64) +import Data.Word (Word8, Word16, Word32, Word64) +#if !MIN_VERSION_base(4,8,0) +import Data.Word (Word) +#endif import Foreign.Marshal.Alloc (allocaBytes) import Foreign.Marshal.Array (peekArray) import qualified Data.Vector.Generic as G @@ -120,7 +124,10 @@ import System.IO(IOMode(..), hGetBuf, hPutStrLn, stderr, withBinaryFile) import System.IO.Unsafe (unsafePerformIO) import qualified Control.Exception as E - +#if defined(mingw32_HOST_OS) +import Foreign.Ptr +import