diff --git a/ghc-pattern-arrows.spec b/ghc-pattern-arrows.spec index c102aca..04f8853 100644 --- a/ghc-pattern-arrows.spec +++ b/ghc-pattern-arrows.spec @@ -13,9 +13,11 @@ License: MIT 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: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof @@ -64,6 +66,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/pattern-arrows-0.0.2.cabal b/pattern-arrows-0.0.2.cabal new file mode 100644 index 0000000..f44e871 --- /dev/null +++ b/pattern-arrows-0.0.2.cabal @@ -0,0 +1,24 @@ +name: pattern-arrows +version: 0.0.2 +x-revision: 1 +cabal-version: >=1.4 +build-type: Simple +license: MIT +license-file: LICENSE +synopsis: Arrows for Pretty Printing +description: A library for generating concise pretty printers based on precedence rules. +copyright: (c) Phil Freeman 2013 +maintainer: Phil Freeman +stability: experimental +category: Text, Combinators, Pretty Printer +author: Phil Freeman +data-dir: "" +homepage: http://blog.functorial.com/posts/2013-10-27-Pretty-Printing-Arrows.html + +library + build-depends: base >=4 && <5, mtl <2.3 + exposed-modules: Control.PatternArrows + exposed: True + buildable: True + hs-source-dirs: src + other-modules: