osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-generic-random revision:6, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-generic-random?expand=0&rev=7
This commit is contained in:
Peter Simons 2022-02-10 14:36:52 +00:00 committed by Git OBS Bridge
parent 19b33cde07
commit 2b7a60cc30
5 changed files with 14 additions and 112 deletions

View File

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

View File

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

View File

@ -1,105 +0,0 @@
name: generic-random
version: 1.5.0.0
x-revision: 1
synopsis: Generic random generators for QuickCheck
description:
Derive instances of @Arbitrary@ for QuickCheck,
with various options to customize implementations.
.
For more information
.
- See the README
.
- "Generic.Random.Tutorial"
.
- http://blog.poisson.chat/posts/2018-01-05-generic-random-tour.html
homepage: http://github.com/lysxia/generic-random
license: MIT
license-file: LICENSE
stability: Stable
author: Li-yao Xia
maintainer: lysxia@gmail.com
category: Generics, Testing
build-type: Simple
extra-source-files: README.md CHANGELOG.md
cabal-version: >=1.10
tested-with: GHC == 8.4.1, GHC == 8.6.1, GHC == 8.8.4, GHC == 8.10.5, GHC == 9.0.1
library
hs-source-dirs: src
exposed-modules:
Generic.Random
Generic.Random.DerivingVia
Generic.Random.Internal.BaseCase
Generic.Random.Internal.Generic
Generic.Random.Tutorial
build-depends:
base >= 4.11 && < 4.16,
QuickCheck >= 2.14
-- exports RecursivelyShrink
default-language: Haskell2010
ghc-options: -Wall -fno-warn-name-shadowing
source-repository head
type: git
location: https://github.com/lysxia/generic-random
test-suite unit
hs-source-dirs: test
main-is: Unit.hs
build-depends:
base,
deepseq,
QuickCheck,
generic-random
type: exitcode-stdio-1.0
default-language: Haskell2010
test-suite coherence
hs-source-dirs: test
main-is: coherence.hs
build-depends:
base,
deepseq,
QuickCheck,
generic-random
type: exitcode-stdio-1.0
default-language: Haskell2010
test-suite inspect
hs-source-dirs: test
main-is: Inspect.hs
build-depends:
base,
QuickCheck,
inspection-testing,
generic-random
type: exitcode-stdio-1.0
default-language: Haskell2010
if !flag(enable-inspect)
buildable: False
else
build-depends: random < 1.2
-- TODO: this test fails with newer versions of random
test-suite inspect-derivingvia
hs-source-dirs: test
main-is: Inspect/DerivingVia.hs
build-depends:
base,
QuickCheck,
inspection-testing,
generic-random
type: exitcode-stdio-1.0
default-language: Haskell2010
if !flag(enable-inspect)
buildable: False
else
build-depends: random < 1.2
-- TODO: this test fails with newer versions of random
flag enable-inspect
description: Enable inspection tests
default: False
manual: True

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Feb 4 12:15:07 UTC 2022 - psimons@suse.com
- Update generic-random to version 1.5.0.1.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/generic-random-1.5.0.1/src/CHANGELOG.md
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 15 06:59:51 UTC 2021 - psimons@suse.com Mon Nov 15 06:59:51 UTC 2021 - psimons@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghc-generic-random # spec file for package ghc-generic-random
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,13 +19,12 @@
%global pkg_name generic-random %global pkg_name generic-random
%bcond_with tests %bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 1.5.0.0 Version: 1.5.0.1
Release: 0 Release: 0
Summary: Generic random generators for QuickCheck Summary: Generic random generators for QuickCheck
License: MIT License: MIT
URL: https://hackage.haskell.org/package/%{pkg_name} URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz 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-Cabal-devel
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
@ -58,7 +57,6 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
%autosetup -n %{pkg_name}-%{version} %autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build %build
%ghc_lib_build %ghc_lib_build