diff --git a/ansi-wl-pprint-0.6.8.2.cabal b/ansi-wl-pprint-0.6.8.2.cabal new file mode 100644 index 0000000..6477ddf --- /dev/null +++ b/ansi-wl-pprint-0.6.8.2.cabal @@ -0,0 +1,58 @@ +name: ansi-wl-pprint +version: 0.6.8.2 +x-revision: 1 +cabal-version: >= 1.10 +category: User Interfaces, Text +synopsis: The Wadler/Leijen Pretty Printer for colored ANSI terminal output +description: { + +This is a pretty printing library based on Wadler's paper ["A Prettier Printer"](https://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf). It has been enhanced with support for ANSI terminal colored output using the [ansi-terminal](https://hackage.haskell.org/package/ansi-terminal) package. + +} +license: BSD3 +license-file: LICENSE +extra-source-files: README.md Changelog.md +author: Daan Leijen, Max Bolingbroke +maintainer: Edward Kmett +bug-reports: http://github.com/ekmett/ansi-wl-pprint/issues +homepage: http://github.com/ekmett/ansi-wl-pprint +build-type: Simple +tested-with: GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3, GHC==8.6.3 + +source-repository head + type: git + location: https://github.com/ekmett/ansi-wl-pprint.git + +flag Example + description: Build the example application + default: False + manual: True + +library + default-language: Haskell2010 + hs-source-dirs: . + exposed-modules: Text.PrettyPrint.ANSI.Leijen + , Text.PrettyPrint.ANSI.Leijen.Internal + ghc-options: -Wall -fno-warn-name-shadowing -fno-warn-unused-matches + + -- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0 + if impl(ghc >= 8.0) + ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances + else + -- see also notes in Text.PrettyPrint.ANSI.Leijen + build-depends: semigroups >= 0.1 && < 0.19 + + build-depends: ansi-terminal >= 0.4.0 && < 0.10 + build-depends: base >= 4.5 && < 5 + +executable ansi-wl-pprint-example + default-language: Haskell2010 + hs-source-dirs: src-exe + main-is: Example.hs + + if flag(example) + build-depends: ansi-wl-pprint + -- dependencies whose constraints are inherited via lib:ansi-wl-pprint + build-depends: base, ansi-terminal + else + buildable: False diff --git a/ghc-ansi-wl-pprint.spec b/ghc-ansi-wl-pprint.spec index 7107d18..e455ce5 100644 --- a/ghc-ansi-wl-pprint.spec +++ b/ghc-ansi-wl-pprint.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name ansi-wl-pprint @@ -6,16 +6,19 @@ Name: ghc-%{pkg_name} Version: 0.6.8.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Wadler/Leijen Pretty Printer for colored ANSI terminal output License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-ansi-terminal-devel # End cabal-rpm deps @@ -42,17 +45,23 @@ This package provides the Haskell %{pkg_name} library development files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} - +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup sed -i 's/\r$//' README.md %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %post devel @@ -64,7 +73,9 @@ sed -i 's/\r$//' README.md %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -72,6 +83,9 @@ sed -i 's/\r$//' README.md %changelog +* Sun Feb 17 2019 Jens Petersen - 0.6.8.2-3 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.6.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild