Blob Blame Raw

%global pkg_name aeson-pretty

Name:           ghc-%{pkg_name}
Version:        0.7.1
Release:        3%{?dist}
Summary:        JSON pretty-printing library

License:        BSD
URL:  {pkg_name}

BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires:  chrpath
BuildRequires:  ghc-aeson-devel
BuildRequires:  ghc-attoparsec-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-cmdargs-devel
BuildRequires:  ghc-text-devel
BuildRequires:  ghc-unordered-containers-devel
BuildRequires:  ghc-vector-devel
# End cabal-rpm deps

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.

%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Requires:       ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%setup -q -n %{pkg_name}-%{version}



%ghc_fix_dynamic_rpath %{pkg_name}

%post devel

%postun devel

%files -f %{name}.files

%files devel -f %{name}-devel.files
%doc README.markdown

* Sat Aug 16 2014 Fedora Release Engineering <> - 0.7.1-3
- Rebuilt for

* Sat Jun 07 2014 Fedora Release Engineering <> - 0.7.1-2
- Rebuilt for

* Mon Jan 27 2014 Jens Petersen <> - 0.7.1-1
- package the tool in devel subpackage
- simpler summary and description

* Mon Jan 27 2014 Fedora Haskell SIG <> - 0.7.1
- spec file generated by cabal-rpm-0.8.8