4
0

osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-regex-posix revision:17, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-regex-posix?expand=0&rev=29
This commit is contained in:
2021-03-08 08:01:22 +00:00
committed by Git OBS Bridge
parent 3a00baade3
commit 971cacbfce
3 changed files with 110 additions and 81 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Feb 20 17:36:35 UTC 2021 - psimons@suse.com
- Update regex-posix to version 0.96.0.0 revision 2.
Upstream has revised the Cabal build instructions on Hackage.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com> Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package ghc-regex-posix # spec file for package ghc-regex-posix
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@ Summary: POSIX Backend for "Text.Regex" (regex-base)
License: BSD-3-Clause License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{pkg_name} URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel BuildRequires: ghc-array-devel
BuildRequires: ghc-bytestring-devel BuildRequires: ghc-bytestring-devel

View File

@@ -1,79 +1,102 @@
cabal-version: 1.12 cabal-version: 1.12
name: regex-posix name: regex-posix
version: 0.96.0.0 version: 0.96.0.0
x-revision: 1 x-revision: 2
build-type: Simple build-type: Simple
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
copyright: Copyright (c) 2007-2010, Christopher Kuklewicz copyright: Copyright (c) 2007-2010, Christopher Kuklewicz
author: Christopher Kuklewicz author: Christopher Kuklewicz
maintainer: hvr@gnu.org maintainer: hvr@gnu.org
bug-reports: https://github.com/hvr/regex-posix bug-reports: https://github.com/hvr/regex-posix
synopsis: POSIX Backend for "Text.Regex" (regex-base) synopsis: POSIX Backend for "Text.Regex" (regex-base)
category: Text category: Text
description: description:
The POSIX regex backend for <//hackage.haskell.org/package/regex-base regex-base>. The POSIX regex backend for <//hackage.haskell.org/package/regex-base regex-base>.
. .
The main appeal of this backend is that it's very lightweight due to its reliance on the ubiquitous <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/regex.h.html POSIX.2 regex> facility that is provided by the standard C library on most POSIX platforms. The main appeal of this backend is that it's very lightweight due to its reliance on the ubiquitous <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/regex.h.html POSIX.2 regex> facility that is provided by the standard C library on most POSIX platforms.
. .
See also <https://wiki.haskell.org/Regular_expressions> for more information. See also <https://wiki.haskell.org/Regular_expressions> for more information.
extra-source-files: extra-source-files:
ChangeLog.md ChangeLog.md
cbits/myfree.h cbits/myfree.h
source-repository head tested-with:
type: git -- Haskell CI:
location: https://github.com/hvr/regex-posix.git GHC == 7.0.4
GHC == 7.2.2
flag _regex-posix-clib GHC == 7.4.2
manual: False GHC == 7.6.3
default: False GHC == 7.8.4
description: Use <//hackage.haskell.org/package/regex-posix-clib regex-posix-clib> package GHC == 7.10.3
GHC == 8.0.2
library GHC == 8.2.2
hs-source-dirs: src GHC == 8.4.4
exposed-modules: GHC == 8.6.5
Text.Regex.Posix GHC == 8.8.4
Text.Regex.Posix.Wrap GHC == 8.10.3
Text.Regex.Posix.String -- manually (AA, 2021-02-17):
Text.Regex.Posix.Sequence -- GHC == 8.10.4
Text.Regex.Posix.ByteString -- GHC == 9.0.1
Text.Regex.Posix.ByteString.Lazy
source-repository head
other-modules: type: git
Paths_regex_posix location: https://github.com/hvr/regex-posix.git
c-sources: cbits/myfree.c source-repository this
include-dirs: cbits type: git
location: https://github.com/hvr/regex-base.git
if flag(_regex-posix-clib) tag: v0.96.0.0-r2
build-depends: regex-posix-clib == 2.7.*
else flag _regex-posix-clib
-- use POSIX.2 regex implementation from @libc@ manual: False
-- However, Windows/msys2 doesn't provide a POSIX.2 regex impl in its @libc@ default: False
if os(windows) description: Use <//hackage.haskell.org/package/regex-posix-clib regex-posix-clib> package
build-depends: base<0
library
default-language: Haskell2010 hs-source-dirs: src
default-extensions: exposed-modules:
MultiParamTypeClasses Text.Regex.Posix
FunctionalDependencies Text.Regex.Posix.Wrap
ForeignFunctionInterface Text.Regex.Posix.String
GeneralizedNewtypeDeriving Text.Regex.Posix.Sequence
FlexibleContexts Text.Regex.Posix.ByteString
TypeSynonymInstances Text.Regex.Posix.ByteString.Lazy
FlexibleInstances
other-modules:
build-depends: regex-base == 0.94.* Paths_regex_posix
, base >= 4.3 && < 4.15
, containers >= 0.4 && < 0.7 c-sources: cbits/myfree.c
, bytestring >= 0.9 && < 0.11 include-dirs: cbits
, array >= 0.3 && < 0.6
if flag(_regex-posix-clib)
if !impl(ghc >= 8) build-depends: regex-posix-clib == 2.7.*
build-depends: fail == 4.9.* else
-- use POSIX.2 regex implementation from @libc@
ghc-options: -O2 -- However, Windows/msys2 doesn't provide a POSIX.2 regex impl in its @libc@
-Wall -fno-warn-unused-imports if os(windows)
build-depends: base<0
default-language: Haskell2010
default-extensions:
MultiParamTypeClasses
FunctionalDependencies
ForeignFunctionInterface
GeneralizedNewtypeDeriving
FlexibleContexts
TypeSynonymInstances
FlexibleInstances
build-depends: regex-base == 0.94.*
, base >= 4.3 && < 4.16
, containers >= 0.4 && < 0.7
, bytestring >= 0.9 && < 0.12
, array >= 0.3 && < 0.6
if !impl(ghc >= 8)
build-depends: fail == 4.9.*
ghc-options: -O2
-Wall -fno-warn-unused-imports