From d7570bbbde42e24ac5bd5f05a3c70ae85097e4025f725d5bd03daed09fc6a602 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 30 Jan 2017 09:04:14 +0000 Subject: [PATCH] syncronize with lts-7 repo from configuration 2c5a8d9cf26081f520de1f85ce8b0c84c5974021 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-random?expand=0&rev=16 --- ghc-random.changes | 5 ++++ ghc-random.spec | 5 ++-- random.cabal | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 random.cabal diff --git a/ghc-random.changes b/ghc-random.changes index ab3615e..8529b91 100644 --- a/ghc-random.changes +++ b/ghc-random.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 26 16:20:16 UTC 2017 - psimons@suse.com + +- Update to version 1.1 revision 1 with cabal2obs. + ------------------------------------------------------------------- Sun Jul 10 17:13:32 UTC 2016 - psimons@suse.com diff --git a/ghc-random.spec b/ghc-random.spec index 42f7f1e..8f7bd9e 100644 --- a/ghc-random.spec +++ b/ghc-random.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-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 @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Other 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-rpm-macros BuildRequires: ghc-time-devel @@ -47,6 +48,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build @@ -66,6 +68,5 @@ This package provides the Haskell %{pkg_name} library development files. %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc CHANGELOG.md README.md %changelog diff --git a/random.cabal b/random.cabal new file mode 100644 index 0000000..1c6e21e --- /dev/null +++ b/random.cabal @@ -0,0 +1,71 @@ +name: random +version: 1.1 +x-revision: 1 + + + + +license: BSD3 +license-file: LICENSE +maintainer: carter dot schonwald at google mail dot com +bug-reports: https://github.com/haskell/random/issues +synopsis: random number library +category: System +description: + This package provides a basic random number generation + library, including the ability to split random number + generators. + +extra-source-files: + .travis.yml + README.md + CHANGELOG.md + .gitignore + .darcs-boring + + + +build-type: Simple +-- cabal-version 1.8 needed because "the field 'build-depends: random' refers +-- to a library which is defined within the same package" +cabal-version: >= 1.8 + + + +Library + exposed-modules: + System.Random + extensions: CPP + GHC-Options: -O2 + build-depends: base >= 3 && < 5, time + +source-repository head + type: git + location: http://git.haskell.org/packages/random.git + +-- To run the Test-Suite: +-- $ cabal configure --enable-tests +-- $ cabal test --show-details=always --test-options="+RTS -M1M -RTS" + +Test-Suite T7936 + type: exitcode-stdio-1.0 + main-is: T7936.hs + hs-source-dirs: tests + build-depends: base >= 3 && < 5, random + ghc-options: -rtsopts -O2 + +Test-Suite TestRandomRs + type: exitcode-stdio-1.0 + main-is: TestRandomRs.hs + hs-source-dirs: tests + build-depends: base >= 3 && < 5, random + ghc-options: -rtsopts -O2 + -- TODO. Why does the following not work? + --test-options: +RTS -M1M -RTS + +Test-Suite TestRandomIOs + type: exitcode-stdio-1.0 + main-is: TestRandomIOs.hs + hs-source-dirs: tests + build-depends: base >= 3 && < 5, random + ghc-options: -rtsopts -O2