From b61f064bbec20caadc7fb76b90ce9d30b3ae3174569e9fe11f30b91c941ea779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 10 Sep 2021 10:03:06 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-hedgehog revision:14, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hedgehog?expand=0&rev=11 --- ghc-hedgehog.changes | 6 ++ ghc-hedgehog.spec | 4 +- hedgehog.cabal | 151 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 hedgehog.cabal diff --git a/ghc-hedgehog.changes b/ghc-hedgehog.changes index 28c1371..10829d9 100644 --- a/ghc-hedgehog.changes +++ b/ghc-hedgehog.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 10 08:13:36 UTC 2021 - psimons@suse.com + +- Update hedgehog to version 1.0.5 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Tue Aug 17 15:23:29 UTC 2021 - Ondřej Súkup diff --git a/ghc-hedgehog.spec b/ghc-hedgehog.spec index acae0a7..948a0c2 100644 --- a/ghc-hedgehog.spec +++ b/ghc-hedgehog.spec @@ -25,6 +25,7 @@ Summary: Release with confidence 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-ansi-terminal-devel BuildRequires: ghc-async-devel @@ -77,7 +78,8 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} -cabal-tweak-dep-ver mmorph '< 1.2' '< 1.3' +cp -p %{SOURCE1} %{pkg_name}.cabal +cabal-tweak-dep-ver 'mmorph' '< 1.2' '< 1.3' %build %ghc_lib_build diff --git a/hedgehog.cabal b/hedgehog.cabal new file mode 100644 index 0000000..517d636 --- /dev/null +++ b/hedgehog.cabal @@ -0,0 +1,151 @@ +version: 1.0.5 +x-revision: 1 + +name: + hedgehog +author: + Jacob Stanley +maintainer: + Jacob Stanley +homepage: + https://hedgehog.qa +bug-reports: + https://github.com/hedgehogqa/haskell-hedgehog/issues +synopsis: + Release with confidence. +description: + automatically generates a comprehensive array + of test cases, exercising your software in ways human testers would never + imagine. + . + Generate hundreds of test cases automatically, exposing even the + most insidious of corner cases. Failures are automatically simplified, giving + developers coherent, intelligible error messages. + . + To get started quickly, see the . +category: + Testing +license: + BSD3 +license-file: + LICENSE +cabal-version: + >= 1.10 +build-type: + Simple +tested-with: + GHC == 8.0.2 + , GHC == 8.2.2 + , GHC == 8.4.4 + , GHC == 8.6.5 + , GHC == 8.8.3 + , GHC == 8.10.1 +extra-source-files: + README.md + CHANGELOG.md + +source-repository head + type: git + location: git://github.com/hedgehogqa/haskell-hedgehog.git + +library + build-depends: + -- GHC 8.0.1 / base-4.9.0.0 (May 2016) + base >= 4.9 && < 5 + , ansi-terminal >= 0.6 && < 0.12 + , async >= 2.0 && < 2.3 + , bytestring >= 0.10 && < 0.12 + , concurrent-output >= 1.7 && < 1.11 + , containers >= 0.4 && < 0.7 + , deepseq >= 1.1.0.0 && < 1.5 + , directory >= 1.2 && < 1.4 + , erf >= 2.0 && < 2.1 + , exceptions >= 0.7 && < 0.11 + , lifted-async >= 0.7 && < 0.11 + , mmorph >= 1.0 && < 1.2 + , monad-control >= 1.0 && < 1.1 + , mtl >= 2.1 && < 2.3 + , pretty-show >= 1.6 && < 1.11 + , primitive >= 0.6 && < 0.8 + , random >= 1.1 && < 1.3 + , resourcet >= 1.1 && < 1.3 + , stm >= 2.4 && < 2.6 + , template-haskell >= 2.10 && < 2.18 + , text >= 1.1 && < 1.3 + , time >= 1.4 && < 1.13 + , transformers >= 0.5 && < 0.6 + , transformers-base >= 0.4.5.1 && < 0.5 + , wl-pprint-annotated >= 0.0 && < 0.2 + + ghc-options: + -Wall + + hs-source-dirs: + src + + exposed-modules: + Hedgehog + Hedgehog.Gen + Hedgehog.Main + Hedgehog.Range + + Hedgehog.Internal.Config + Hedgehog.Internal.Discovery + Hedgehog.Internal.Distributive + Hedgehog.Internal.Exception + Hedgehog.Internal.Gen + Hedgehog.Internal.HTraversable + Hedgehog.Internal.Opaque + Hedgehog.Internal.Prelude + Hedgehog.Internal.Property + Hedgehog.Internal.Queue + Hedgehog.Internal.Range + Hedgehog.Internal.Region + Hedgehog.Internal.Report + Hedgehog.Internal.Runner + Hedgehog.Internal.Seed + Hedgehog.Internal.Show + Hedgehog.Internal.Shrink + Hedgehog.Internal.Source + Hedgehog.Internal.State + Hedgehog.Internal.TH + Hedgehog.Internal.Tree + Hedgehog.Internal.Tripping + + default-language: + Haskell2010 + +test-suite test + type: + exitcode-stdio-1.0 + + main-is: + test.hs + + ghc-options: + -Wall -threaded -O2 + + hs-source-dirs: + test + + other-modules: + Test.Hedgehog.Applicative + Test.Hedgehog.Confidence + Test.Hedgehog.Filter + Test.Hedgehog.Maybe + Test.Hedgehog.Seed + Test.Hedgehog.Text + Test.Hedgehog.Zip + + build-depends: + hedgehog + , base >= 3 && < 5 + , containers >= 0.4 && < 0.7 + , mmorph >= 1.0 && < 1.2 + , mtl >= 2.1 && < 2.3 + , pretty-show >= 1.6 && < 1.11 + , text >= 1.1 && < 1.3 + , transformers >= 0.3 && < 0.6 + + default-language: + Haskell2010