forked from pool/ghc-cborg-json
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
This commit is contained in:
commit
740add5ba7
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
cborg-json-0.2.2.0.tar.gz
Normal file
3
cborg-json-0.2.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ab68a2457cb71a76699d7a8df07a880ea70c51d2c1a891b12669ca9ccfa7517b
|
||||||
|
size 4075
|
64
cborg-json.cabal
Normal file
64
cborg-json.cabal
Normal file
@ -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
|
5
ghc-cborg-json.changes
Normal file
5
ghc-cborg-json.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 8 16:47:56 UTC 2020 - psimons@suse.com
|
||||||
|
|
||||||
|
- Add cborg-json at version 0.2.2.0.
|
||||||
|
|
74
ghc-cborg-json.spec
Normal file
74
ghc-cborg-json.spec
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user