From 7e7ef087267a4e97d867d7a3f3f48670c4bc7c71e294efec49cc4d5a8fad870c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 11 Aug 2023 08:05:29 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-deriving-aeson revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-deriving-aeson?expand=0&rev=8 --- deriving-aeson.cabal | 37 +++++++++++++++++++++++++++++++++++++ ghc-deriving-aeson.changes | 6 ++++++ ghc-deriving-aeson.spec | 2 ++ 3 files changed, 45 insertions(+) create mode 100644 deriving-aeson.cabal diff --git a/deriving-aeson.cabal b/deriving-aeson.cabal new file mode 100644 index 0000000..26d5663 --- /dev/null +++ b/deriving-aeson.cabal @@ -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 diff --git a/ghc-deriving-aeson.changes b/ghc-deriving-aeson.changes index 81cd9c6..7046fa5 100644 --- a/ghc-deriving-aeson.changes +++ b/ghc-deriving-aeson.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 7 07:25:55 UTC 2023 - Peter Simons + +- 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 diff --git a/ghc-deriving-aeson.spec b/ghc-deriving-aeson.spec index 3d8ad78..5313301 100644 --- a/ghc-deriving-aeson.spec +++ b/ghc-deriving-aeson.spec @@ -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