1
0

osc copypac from project:devel:languages:haskell:ghc-9.6.x package:ghc-mwc-random revision:3, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-mwc-random?expand=0&rev=31
This commit is contained in:
Peter Simons 2023-11-10 14:07:19 +00:00 committed by Git OBS Bridge
commit 384ffac20f
6 changed files with 355 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

87
ghc-mwc-random.changes Normal file
View File

@ -0,0 +1,87 @@
-------------------------------------------------------------------
Thu Mar 30 17:07:39 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Mon Nov 15 06:57:18 UTC 2021 - psimons@suse.com
- Update mwc-random to version 0.15.0.2 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
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 <mimi.vx@gmail.com>
- disable %{ix86} build
-------------------------------------------------------------------
Tue Aug 18 10:45:31 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 16 11:14:22 UTC 2020 - Peter Simons <psimons@suse.com>
- Re-generate file with latest version of spec-cleaner.
-------------------------------------------------------------------
Fri Nov 8 16:14:16 UTC 2019 - Peter Simons <psimons@suse.com>
- Drop obsolete group attributes.
-------------------------------------------------------------------
Sat Oct 20 11:31:46 UTC 2018 - Peter Simons <psimons@suse.com>
- Use https URL to refer to bugs.opensuse.org.
-------------------------------------------------------------------
Fri Aug 17 09:43:29 UTC 2018 - psimons@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)
-------------------------------------------------------------------
Fri Jul 20 13:38:44 UTC 2018 - psimons@suse.com
- Add mwc-random at version 0.13.6.0.

129
ghc-mwc-random.spec Normal file
View File

@ -0,0 +1,129 @@
#
# spec file for package ghc-mwc-random
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global pkg_name mwc-random
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.15.0.2
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
BuildRequires: ghc-math-functions-devel
BuildRequires: ghc-math-functions-prof
BuildRequires: ghc-primitive-devel
BuildRequires: ghc-primitive-prof
BuildRequires: ghc-random-devel
BuildRequires: ghc-random-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-prof
BuildRequires: ghc-vector-devel
BuildRequires: ghc-vector-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-doctest-devel
BuildRequires: ghc-doctest-prof
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-hunit-prof
BuildRequires: ghc-tasty-prof
BuildRequires: ghc-tasty-quickcheck-devel
BuildRequires: ghc-tasty-quickcheck-prof
%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
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.
%package -n ghc-%{pkg_name}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
This package provides the Haskell %{pkg_name} library documentation.
%package -n ghc-%{pkg_name}-prof
Summary: Haskell %{pkg_name} profiling library
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
%description -n ghc-%{pkg_name}-prof
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
%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
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35d64d5d6f8e93321d36952cf9ab64e21a9cad642ba39aa7378d88aa08afc25b
size 26591

112
mwc-random.cabal Normal file
View File

@ -0,0 +1,112 @@
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 <bos@serpentine.com>
maintainer: Bryan O'Sullivan <bos@serpentine.com>
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