update to 0.2.3.0

This commit is contained in:
Jens Petersen 2020-06-27 13:18:13 +08:00
parent abb0e0063f
commit a42d979b1b
4 changed files with 166 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/cborg-0.2.2.1.tar.gz
/cborg-0.2.3.0.tar.gz

157
cborg-0.2.3.0.cabal Normal file
View File

@ -0,0 +1,157 @@
name: cborg
version: 0.2.3.0
x-revision: 1
synopsis: Concise Binary Object Representation (CBOR)
license: BSD3
license-file: LICENSE.txt
author: Duncan Coutts
maintainer: duncan@community.haskell.org, ben@smart-cactus.org
bug-reports: https://github.com/well-typed/cborg/issues
copyright: 2015-2019 Duncan Coutts,
2015-2019 Well-Typed LLP,
2015 IRIS Connect Ltd
category: Codec
build-type: Simple
cabal-version: >= 1.10
tested-with:
GHC == 7.8.4, GHC == 7.10.3, 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:
ChangeLog.md
description:
This package provides an efficient implementation of the Concise
Binary Object Representation (CBOR), as specified by
[RFC 7049](https://tools.ietf.org/html/rfc7049).
.
If you are looking for a library for serialisation of Haskell values,
have a look at the [serialise](/package/serialise) package, which is
built upon this library.
.
An implementation of the standard bijection between CBOR and JSON is
provided by the [cborg-json](/package/cborg-json) package. Also see
[cbor-tool](/package/cbor-tool) for a convenient command-line utility
for working with CBOR data.
.
This package was formerly known as @binary-serialise-cbor@.
extra-source-files:
src/cbits/cbor.h
tests/test-vectors/appendix_a.json
tests/test-vectors/README.md
source-repository head
type: git
location: https://github.com/well-typed/cborg.git
--------------------------------------------------------------------------------
-- Flags
flag optimize-gmp
default: True
manual: False
description: Use optimized code paths for integer-gmp
--------------------------------------------------------------------------------
-- Library
library
default-language: Haskell2010
ghc-options: -Wall
include-dirs: src/cbits
hs-source-dirs: src
exposed-modules:
Codec.CBOR
Codec.CBOR.Decoding
Codec.CBOR.Encoding
Codec.CBOR.FlatTerm
Codec.CBOR.Magic
Codec.CBOR.Pretty
Codec.CBOR.Read
Codec.CBOR.Write
Codec.CBOR.Term
Codec.CBOR.ByteArray
Codec.CBOR.ByteArray.Sliced
other-modules:
Codec.CBOR.ByteArray.Internal
other-extensions:
CPP, ForeignFunctionInterface, MagicHash,
UnboxedTuples, BangPatterns, DeriveDataTypeable,
RankNTypes
build-depends:
array >= 0.4 && < 0.6,
base >= 4.7 && < 4.15,
bytestring >= 0.10.4 && < 0.11,
containers >= 0.5 && < 0.7,
deepseq >= 1.0 && < 1.5,
ghc-prim >= 0.3.1.0 && < 0.7,
half >= 0.2.2.3 && < 0.4,
primitive >= 0.5 && < 0.8,
text >= 1.1 && < 1.3
if flag(optimize-gmp)
cpp-options: -DFLAG_OPTIMIZE_GMP
build-depends:
integer-gmp
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances
else
-- provide/emulate `Control.Monad.Fail` and `Data.Semigroups` API for pre-GHC8
build-depends: fail == 4.9.*, semigroups >=0.18 && <0.20
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Main.hs
default-language: Haskell2010
ghc-options:
-Wall -fno-warn-orphans
-threaded -rtsopts "-with-rtsopts=-N2"
other-modules:
Tests.UnitTests
Tests.Properties
Tests.Boundary
Tests.ByteOffset
Tests.Canonical
Tests.PreEncoded
Tests.Regress
Tests.Regress.Issue160
Tests.Regress.Issue162
Tests.Regress.FlatTerm
Tests.Reference
Tests.Reference.Implementation
Tests.Reference.Generators
Tests.Reference.TestVectors
Tests.Term
Tests.UTF8
Tests.Util
build-depends:
array >= 0.4 && < 0.6,
base >= 4.7 && < 4.15,
base-orphans,
bytestring >= 0.10.4 && < 0.11,
text >= 1.1 && < 1.3,
cborg,
aeson >= 0.7 && < 1.6,
base64-bytestring >= 1.0 && < 1.2,
base16-bytestring >= 0.1 && < 0.2,
deepseq >= 1.0 && < 1.5,
half >= 0.2.2.3 && < 0.4,
QuickCheck >= 2.9 && < 2.15,
random,
scientific >= 0.3 && < 0.4,
tasty >= 0.11 && < 1.4,
tasty-hunit >= 0.9 && < 0.11,
tasty-quickcheck >= 0.8 && < 0.11,
vector >= 0.10 && < 0.13
if !impl(ghc >= 8.0)
build-depends:
fail >= 4.9.0.0 && < 4.10

View File

@ -10,14 +10,15 @@
%endif
Name: ghc-%{pkg_name}
Version: 0.2.2.1
Release: 2%{?dist}
Version: 0.2.3.0
Release: 1%{?dist}
Summary: Concise Binary Object Representation (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:
@ -100,6 +101,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
chmod a-x ChangeLog.md
# End cabal-rpm setup
@ -142,6 +144,9 @@ chmod a-x ChangeLog.md
%changelog
* Sat Jun 27 2020 Jens Petersen <petersen@redhat.com> - 0.2.3.0-1
- update to 0.2.3.0
* Thu Jun 4 2020 Jens Petersen <petersen@redhat.com> - 0.2.2.1-2
- fix permissions of ChangeLog.md (#1795526)

View File

@ -1 +1 @@
SHA512 (cborg-0.2.2.1.tar.gz) = afa2eead3255769f6bc487182482c79cb9d1f264484112035aa5942255f6a381801e3bbb73d5414951ba561c2d1a844e3a692c063fead41eef11e2b6ea1180ab
SHA512 (cborg-0.2.3.0.tar.gz) = 43502fad8a880bee1a068e86336fbea283f8183befa3e838c0a708489efa70a99f33e3b04fd576a552a8f77f8cc56e5b912f686bc414cc947a07b65ec10a6cbf