# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name aeson-pretty Name: %{pkg_name} Version: 0.7 Release: 1%{?dist} Summary: JSON pretty-printing library and command-line tool License: BSD URL: http://hackage.haskell.org/package/%{name} Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz 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 %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. %package -n ghc-%{name} Summary: Haskell %{name} library %description -n ghc-%{name} This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel This package provides the Haskell %{name} library development files. %prep %setup -q %build %ghc_lib_build %install %ghc_lib_install %ghc_fix_dynamic_rpath %{name} %post -n ghc-%{name}-devel %ghc_pkg_recache %postun -n ghc-%{name}-devel %ghc_pkg_recache %files %doc LICENSE %doc README.markdown %{_bindir}/%{name} %files -n ghc-%{name} -f ghc-%{name}.files %doc LICENSE %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %doc README.markdown %changelog * Fri Oct 25 2013 Fedora Haskell SIG - 0.7 - spec file generated by cabal-rpm-0.8.5