commit 740add5ba7e4977ee76540b6495f8a07edbc7508bea476c121544dc79f12799c Author: Peter Simons Date: Wed Jul 8 19:28:28 2020 +0000 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-cborg-json revision:1, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-cborg-json?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cborg-json-0.2.2.0.tar.gz b/cborg-json-0.2.2.0.tar.gz new file mode 100644 index 0000000..70a041d --- /dev/null +++ b/cborg-json-0.2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab68a2457cb71a76699d7a8df07a880ea70c51d2c1a891b12669ca9ccfa7517b +size 4075 diff --git a/cborg-json.cabal b/cborg-json.cabal new file mode 100644 index 0000000..e4f7852 --- /dev/null +++ b/cborg-json.cabal @@ -0,0 +1,64 @@ +name: cborg-json +version: 0.2.2.0 +x-revision: 2 +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 == 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.1 + +library + exposed-modules: Codec.CBOR.JSON + ghc-options: -Wall + build-depends: + base >=4.7 && < 4.15, + aeson >=0.7 && <1.6, + aeson-pretty >=0.8 && <0.9, + unordered-containers >=0.2 && <0.3, + scientific >=0.3 && <0.4, + text >=1.1 && <1.3, + vector >=0.10 && <0.13, + 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.6 && < 5.0, + cborg , + cborg-json , + aeson , + bytestring >= 0.10.4 && < 0.11, + criterion >= 1.0 && < 1.6, + deepseq >= 1.0 && < 1.5, + directory, + process, + zlib >= 0.5 && < 0.7 diff --git a/ghc-cborg-json.changes b/ghc-cborg-json.changes new file mode 100644 index 0000000..9620b93 --- /dev/null +++ b/ghc-cborg-json.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Jul 8 16:47:56 UTC 2020 - psimons@suse.com + +- Add cborg-json at version 0.2.2.0. + diff --git a/ghc-cborg-json.spec b/ghc-cborg-json.spec new file mode 100644 index 0000000..489b07e --- /dev/null +++ b/ghc-cborg-json.spec @@ -0,0 +1,74 @@ +# +# spec file for package ghc-cborg-json +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name cborg-json +Name: ghc-%{pkg_name} +Version: 0.2.2.0 +Release: 0 +Summary: A library for encoding JSON as CBOR +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/2.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-aeson-pretty-devel +BuildRequires: ghc-cborg-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-scientific-devel +BuildRequires: ghc-text-devel +BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-vector-devel + +%description +This package implements the bijection between JSON and CBOR defined in the CBOR +specification, RFC 7049. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%prep +%setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE.txt + +%files devel -f %{name}-devel.files +%doc ChangeLog.md + +%changelog