diff --git a/.gitignore b/.gitignore index ad51daf..acafcae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /cborg-json-0.2.2.0.tar.gz /cborg-json-0.2.3.0.tar.gz +/cborg-json-0.2.5.0.tar.gz diff --git a/cborg-json-0.2.5.0.cabal b/cborg-json-0.2.5.0.cabal new file mode 100644 index 0000000..5b997a1 --- /dev/null +++ b/cborg-json-0.2.5.0.cabal @@ -0,0 +1,73 @@ +name: cborg-json +version: 0.2.5.0 +x-revision: 1 +synopsis: A library for encoding JSON as CBOR +description: This package implements the bijection between JSON and + CBOR defined in the CBOR specification, RFC 7049. +homepage: https://github.com/well-typed/cborg +license: BSD3 +license-file: LICENSE.txt +author: Duncan Coutts +maintainer: ben@smart-cactus.org +bug-reports: https://github.com/well-typed/cborg/issues +copyright: 2015-2017 Duncan Coutts, + 2015-2017 Well-Typed LLP, + 2015 IRIS Connect Ltd +category: Codec +build-type: Simple +extra-source-files: ChangeLog.md +cabal-version: >=1.10 +tested-with: + GHC == 8.4.4, + GHC == 8.6.5, + GHC == 8.8.3, + GHC == 8.10.7, + GHC == 9.0.1, + GHC == 9.2.2, + GHC == 9.4.2 + +library + exposed-modules: Codec.CBOR.JSON + ghc-options: -Wall + build-depends: + base >=4.11 && < 4.18, + aeson >=0.7 && <2.2, + aeson-pretty >=0.8 && <0.9, + unordered-containers >=0.2 && <0.3, + scientific >=0.3 && <0.4, + text >=1.1 && <2.1, + vector >=0.10 && <0.14, + + cborg ==0.2.* + + hs-source-dirs: src + default-language: Haskell2010 + + if impl(ghc >= 8.0) + ghc-options: -Wcompat -Wnoncanonical-monad-instances + + + +benchmark bench + type: exitcode-stdio-1.0 + hs-source-dirs: bench + main-is: Main.hs + + default-language: Haskell2010 + ghc-options: + -Wall -rtsopts -fno-cse -fno-ignore-asserts -fno-warn-orphans -O2 + + other-modules: + + build-depends: + base >= 4.11 && < 4.18, + bytestring >= 0.10.4 && < 0.12, + criterion >= 1.0 && < 1.6, + deepseq >= 1.0 && < 1.5, + zlib >= 0.5 && < 0.7, + directory, + process, + aeson, + + cborg, + cborg-json diff --git a/ghc-cborg-json.spec b/ghc-cborg-json.spec index 85ac56e..cba9298 100644 --- a/ghc-cborg-json.spec +++ b/ghc-cborg-json.spec @@ -5,17 +5,19 @@ %global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} -Version: 0.2.3.0 -Release: 2%{?dist} +Version: 0.2.5.0 +Release: 1%{?dist} Summary: A library for encoding JSON as CBOR License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: +BuildRequires: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-aeson-prof @@ -71,6 +73,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -108,6 +111,10 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Sun Jan 22 2023 Jens Petersen - 0.2.5.0-1 +- https://hackage.haskell.org/package/cborg-json-0.2.5.0/changelog +- refresh to cabal-rpm-2.1.0 with SPDX migration + * Thu Jul 21 2022 Fedora Release Engineering - 0.2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 4aed887..32a7ab4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cborg-json-0.2.3.0.tar.gz) = 3860aea1e074d0cc2c36d34bf07f26fa46aded05408510bc9b6243d94c63e9835842568cae46dd295fa2f8ffa082949b07a03148eee5b489c6beb99ff3ca485c +SHA512 (cborg-json-0.2.5.0.tar.gz) = 0f2ff692915a882e6531cdbfa9a41038ed1189fbd3e428676511998a668e6a700ebe7142c30de4a9ab8dc7738002517a0fa7d9af7a4a34a6389eee9ce912c3be