diff --git a/ghc-text-manipulate.spec b/ghc-text-manipulate.spec index 6eab52c..096c4fb 100644 --- a/ghc-text-manipulate.spec +++ b/ghc-text-manipulate.spec @@ -15,9 +15,11 @@ License: MPLv2.0 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 @@ -83,6 +85,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/text-manipulate-0.3.0.0.cabal b/text-manipulate-0.3.0.0.cabal new file mode 100644 index 0000000..4d3fee1 --- /dev/null +++ b/text-manipulate-0.3.0.0.cabal @@ -0,0 +1,74 @@ +name: text-manipulate +version: 0.3.0.0 +x-revision: 1 +synopsis: + Case conversion, word boundary manipulation, and textual subjugation. + +homepage: https://github.com/brendanhay/text-manipulate +license: MPL-2.0 +license-file: LICENSE +author: Brendan Hay +maintainer: Brendan Hay +copyright: Copyright (c) 2014-2020 Brendan Hay +category: Data, Text +build-type: Simple +extra-source-files: README.md +cabal-version: >=2.0 +description: + Manipulate identifiers and structurally non-complex pieces + of text by delimiting word boundaries via a combination of whitespace, + control-characters, and case-sensitivity. + . + Has support for common idioms like casing of programmatic variable names, + taking, dropping, and splitting by word, and modifying the first character + of a piece of text. + . + /Caution:/ this library makes heavy use of the + library's internal loop optimisation framework. Since internal modules are not + guaranteed to have a stable API there is potential for build breakage when + the text dependency is upgraded. Consider yourself warned! + +source-repository head + type: git + location: git://github.com/brendanhay/text-manipulate.git + +library + default-language: Haskell2010 + hs-source-dirs: src + ghc-options: -Wall + exposed-modules: + Data.Text.Lazy.Manipulate + Data.Text.Manipulate + + other-modules: + Data.Text.Manipulate.Internal.Fusion + Data.Text.Manipulate.Internal.Types + + build-depends: + base >=4.12 && <5 + , text >=1.1 && <1.3 + +benchmark benchmarks + type: exitcode-stdio-1.0 + default-language: Haskell2010 + main-is: Main.hs + hs-source-dirs: bench + ghc-options: -Wall -O2 -threaded -with-rtsopts=-T + build-depends: + base >=4.12 && <5 + , criterion >=1.0.0.2 + , text + , text-manipulate + +test-suite tests + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: test + main-is: Main.hs + ghc-options: -Wall -threaded + build-depends: + base >=4.12 && <5 + , tasty >=0.8 + , tasty-hunit >=0.8 + , text + , text-manipulate