From 898fde5dd42bd777a1f1dfa94d09a40b4a367a11c58993f411df6df8ad1611c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 4 May 2021 10:35:12 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-MonadRandom revision:8, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-MonadRandom?expand=0&rev=9 --- MonadRandom.cabal | 42 +++++++++++++++++++++++++++++++++++++++++ ghc-MonadRandom.changes | 6 ++++++ ghc-MonadRandom.spec | 2 ++ 3 files changed, 50 insertions(+) create mode 100644 MonadRandom.cabal diff --git a/MonadRandom.cabal b/MonadRandom.cabal new file mode 100644 index 0000000..5c0b8de --- /dev/null +++ b/MonadRandom.cabal @@ -0,0 +1,42 @@ +name: MonadRandom +version: 0.5.3 +x-revision: 1 +synopsis: Random-number generation monad. +description: Support for computations which consume random values. +license: BSD3 +license-file: LICENSE +author: Cale Gibbard and others +maintainer: Brent Yorgey +bug-reports: https://github.com/byorgey/MonadRandom/issues +category: Control +build-type: Simple +cabal-version: >=1.10 +extra-source-files: CHANGES.markdown +tested-with: GHC ==7.6.3 || ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.3 || ==8.10.1 + +source-repository head + type: git + location: git://github.com/byorgey/MonadRandom.git + +library + exposed-modules: + Control.Monad.Random, + Control.Monad.Random.Class, + Control.Monad.Random.Lazy, + Control.Monad.Random.Strict, + Control.Monad.Trans.Random, + Control.Monad.Trans.Random.Lazy, + Control.Monad.Trans.Random.Strict + build-depends: + base >=4.6 && <5, + transformers >=0.3 && <0.6, + transformers-compat >=0.4 && <0.7, + mtl >=2.1 && <2.3, + primitive >=0.6 && <0.8, + random >=1.0 && <1.3 + ghc-options: -Wall + default-language: Haskell2010 + other-extensions: Safe + + if impl(ghc < 8.0) + build-depends: fail >= 4.9 diff --git a/ghc-MonadRandom.changes b/ghc-MonadRandom.changes index b83675d..72d9d96 100644 --- a/ghc-MonadRandom.changes +++ b/ghc-MonadRandom.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 29 09:23:50 UTC 2021 - psimons@suse.com + +- Update MonadRandom to version 0.5.3 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Apr 8 20:14:44 UTC 2021 - psimons@suse.com diff --git a/ghc-MonadRandom.spec b/ghc-MonadRandom.spec index ad41d70..551e000 100644 --- a/ghc-MonadRandom.spec +++ b/ghc-MonadRandom.spec @@ -24,6 +24,7 @@ Summary: Random-number generation monad License: BSD-3-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-mtl-devel BuildRequires: ghc-primitive-devel @@ -48,6 +49,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build