From bc501e98464eaf78b599ed2a4948afc50fc5e331 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 18 Jun 2022 00:21:41 +0800 Subject: [PATCH] revise .cabal --- ghc-regex-compat.spec | 2 ++ regex-compat-0.95.2.1.cabal | 64 +++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 regex-compat-0.95.2.1.cabal diff --git a/ghc-regex-compat.spec b/ghc-regex-compat.spec index 90c51b1..5c74c74 100644 --- a/ghc-regex-compat.spec +++ b/ghc-regex-compat.spec @@ -13,6 +13,7 @@ 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: @@ -69,6 +70,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/regex-compat-0.95.2.1.cabal b/regex-compat-0.95.2.1.cabal new file mode 100644 index 0000000..2e6ce03 --- /dev/null +++ b/regex-compat-0.95.2.1.cabal @@ -0,0 +1,64 @@ +cabal-version: 1.12 +name: regex-compat +version: 0.95.2.1 +x-revision: 2 + +build-type: Simple +license: BSD3 +license-file: LICENSE +copyright: Copyright (c) 2006, Christopher Kuklewicz +author: Christopher Kuklewicz +maintainer: Andreas Abel +homepage: https://wiki.haskell.org/Regular_expressions +bug-reports: https://github.com/haskell-hvr/regex-compat/issues +synopsis: Replaces/enhances "Text.Regex" +category: Text +description: + One module compat layer over to replace "Text.Regex". + . + See also for more information. + +extra-source-files: + ChangeLog.md + +tested-with: + GHC == 9.4.1 + GHC == 9.2.2 + GHC == 9.0.2 + GHC == 8.10.7 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 + GHC == 8.0.2 + GHC == 7.10.3 + GHC == 7.8.4 + GHC == 7.6.3 + GHC == 7.4.2 + GHC == 7.2.2 + GHC == 7.0.4 + +source-repository head + type: git + location: https://github.com/haskell-hvr/regex-compat.git + +source-repository this + type: git + location: https://github.com/haskell-hvr/regex-compat.git + tag: v0.95.2.1-r2 + +library + exposed-modules: Text.Regex + + build-depends: base >= 4.3 && < 5 + , regex-base == 0.94.* + , regex-posix == 0.96.* + , array >= 0.3 && < 0.6 + + default-language: Haskell2010 + default-extensions: MultiParamTypeClasses, FunctionalDependencies + + if impl(ghc >= 7.2) + default-extensions: Trustworthy + + ghc-options: -Wall