Accepting request 1104407 from devel:languages:haskell

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1104407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-deriving-aeson?expand=0&rev=4
This commit is contained in:
Ana Guerrero 2023-08-18 17:28:01 +00:00 committed by Git OBS Bridge
commit 0b8e04bc71
3 changed files with 45 additions and 0 deletions

37
deriving-aeson.cabal Normal file
View File

@ -0,0 +1,37 @@
cabal-version: 2.4
name: deriving-aeson
version: 0.2.9
x-revision: 1
synopsis: Type driven generic aeson instance customisation
description: This package provides a newtype wrapper with
FromJSON/ToJSON instances customisable via a phantom type parameter.
The instances can be rendered to the original type using DerivingVia.
bug-reports: https://github.com/fumieval/deriving-aeson
license: BSD-3-Clause
license-file: LICENSE
author: Fumiaki Kinoshita
maintainer: fumiexcel@gmail.com
copyright: Copyright (c) 2020 Fumiaki Kinoshita
category: JSON, Generics
extra-source-files: CHANGELOG.md, README.md
tested-with: GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.7, GHC == 9.2.5, GHC == 9.4.4
source-repository head
type: git
location: https://github.com/fumieval/deriving-aeson.git
library
exposed-modules:
Deriving.Aeson
Deriving.Aeson.Stock
build-depends: base >= 4.12 && <5, aeson >= 1.4.7.0 && <2.3
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -Wcompat
test-suite test
type: exitcode-stdio-1.0
main-is: test.hs
build-depends: base, aeson, deriving-aeson, bytestring
hs-source-dirs: tests
default-language: Haskell2010

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 7 07:25:55 UTC 2023 - Peter Simons <psimons@suse.com>
- Update deriving-aeson to version 0.2.9 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Mar 30 17:06:35 UTC 2023 - Peter Simons <psimons@suse.com>

View File

@ -26,6 +26,7 @@ Summary: Type driven generic aeson instance customisation
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-aeson-devel
BuildRequires: ghc-aeson-prof
@ -71,6 +72,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build