Accepting request 1097774 from devel:languages:haskell

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1097774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-aeson-pretty?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2023-07-09 18:41:01 +00:00 committed by Git OBS Bridge
commit cf26df833e
5 changed files with 12 additions and 89 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a21f2cd78adcb149ceba770239ed664519552911e7680172b18ff695cfa7ae5
size 5894

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5dbc4f451dfa1e667b2c6ec5170714fed1905dc9cae6a1134b3376f355fa2a08
size 5802

View File

@ -1,83 +0,0 @@
cabal-version: 2.0
name: aeson-pretty
version: 0.8.9
x-revision: 2
license: BSD3
license-file: LICENSE
category: Text, Web, JSON, Pretty Printer
copyright: Copyright 2011 Falko Peters
author: Falko Peters <falko.peters@gmail.com>
maintainer: Martijn Bastiaan <martijn@hmbastiaan.nl>
stability: experimental
homepage: http://github.com/informatikr/aeson-pretty
bug-reports: http://github.com/informatikr/aeson-pretty/issues
build-type: Simple
synopsis: JSON pretty-printing library and command-line tool.
description:
A JSON pretty-printing library compatible with aeson as well as
a command-line tool to improve readabilty of streams of JSON data.
.
The /library/ provides the function "encodePretty". It is a drop-in
replacement for aeson's "encode" function, producing JSON-ByteStrings for
human readers.
.
The /command-line tool/ reads JSON from stdin and writes prettified JSON
to stdout. It also offers a complementary "compact"-mode, essentially the
opposite of pretty-printing. If you specify @-flib-only@ like this
.
> cabal install -flib-only aeson-pretty
.
the command-line tool will NOT be installed.
extra-source-files:
README.markdown
CHANGELOG.markdown
flag lib-only
description: Only build/install the library, NOT the command-line tool.
default: False
library
exposed-modules:
Data.Aeson.Encode.Pretty
build-depends:
aeson ^>= 1.0 || ^>=1.1 || ^>=1.2 || ^>=1.3 || ^>=1.4 || ^>=1.5 || ^>=2.0 || ^>=2.1,
base >= 4.5,
base-compat >= 0.9,
bytestring >= 0.9,
scientific >= 0.3,
vector >= 0.9,
text >= 0.11,
unordered-containers >= 0.2.14.0
if !impl(ghc >= 8.0)
build-depends:
semigroups >= 0.18.2
ghc-options: -Wall
default-language: Haskell2010
executable aeson-pretty
hs-source-dirs: cli-tool
main-is: Main.hs
other-modules: Paths_aeson_pretty
autogen-modules: Paths_aeson_pretty
if flag(lib-only)
buildable: False
else
build-depends:
aeson >= 0.6,
aeson-pretty,
attoparsec >= 0.10,
base == 4.*,
bytestring >= 0.9,
cmdargs >= 0.7
ghc-options: -Wall
default-language: Haskell2010
source-repository head
type: git
location: http://github.com/informatikr/aeson-pretty

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Jul 1 07:33:14 UTC 2023 - Peter Simons <psimons@suse.com>
- Update aeson-pretty to version 0.8.10.
## 0.8.10
* Added support for Aeson 2.2
* Added support for Aeson 2.1
-------------------------------------------------------------------
Thu Mar 30 17:05:43 UTC 2023 - Peter Simons <psimons@suse.com>

View File

@ -19,13 +19,12 @@
%global pkg_name aeson-pretty
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 0.8.9
Version: 0.8.10
Release: 0
Summary: JSON pretty-printing library and command-line tool
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-prof
@ -89,7 +88,6 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%define cabal_configure_options -flib-only