revise .cabal

This commit is contained in:
Jens Petersen 2022-06-18 00:21:41 +08:00
parent 4e174619e1
commit bc501e9846
2 changed files with 66 additions and 0 deletions

View File

@ -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

View File

@ -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 <//hackage.haskell.org/package/regex-posix regex-posix> to replace "Text.Regex".
.
See also <https://wiki.haskell.org/Regular_expressions> 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