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
This commit is contained in:
Peter Simons 2017-01-30 09:04:14 +00:00 committed by Git OBS Bridge
parent a47105ac99
commit d7570bbbde
3 changed files with 79 additions and 2 deletions

View File

@ -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

View File

@ -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

71
random.cabal Normal file
View File

@ -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