osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-regex-tdfa revision:3, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-regex-tdfa?expand=0&rev=87
This commit is contained in:
Peter Simons 2025-03-05 22:00:54 +00:00 committed by Git OBS Bridge
commit f1faf673f2
7 changed files with 613 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

261
ghc-regex-tdfa.changes Normal file
View File

@ -0,0 +1,261 @@
-------------------------------------------------------------------
Sun Mar 2 15:30:20 UTC 2025 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.3.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/regex-tdfa-1.3.2.3/src/CHANGELOG.md
-------------------------------------------------------------------
Tue Apr 16 17:33:57 UTC 2024 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.2 revision 3.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Sep 28 09:27:09 UTC 2023 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.2 revision 2.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sun Aug 27 16:30:32 UTC 2023 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.2 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Wed Aug 2 18:55:02 UTC 2023 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.2.
### 1.3.2.2
_2023-08-02, Andreas Abel_
- Fix return type in `memcpy` FFI signature ([#52](https://github.com/haskell-hvr/regex-tdfa/pull/52))
- Refactor `regexec` to avoid partial functions `tail` and `(!0)`
- Tested with GHC 7.4 - 9.8.1-alpha1
-------------------------------------------------------------------
Fri Jul 7 19:48:45 UTC 2023 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Fri May 19 17:16:44 UTC 2023 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.1.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/regex-tdfa-1.3.2.1/src/CHANGELOG.md
-------------------------------------------------------------------
Thu Mar 30 17:08:04 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Mon Jul 18 19:00:45 UTC 2022 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.2.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/regex-tdfa-1.3.2/src/CHANGELOG.md
-------------------------------------------------------------------
Thu Jul 14 15:15:35 UTC 2022 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.1.3.
### 1.3.1.3
_2022-07-14, Andreas Abel_
- Fix an `undefined` in `Show PatternSet` [#37](https://github.com/haskell-hvr/regex-tdfa/issues/37))
- Document POSIX character classes (e.g. `[[:digit:]]`)
### 1.3.1.2 Revision 1
_2022-05-25, Andreas Abel_
- Allow `base >= 4.17` (GHC 9.4)
-------------------------------------------------------------------
Wed May 25 22:26:48 UTC 2022 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.1.2 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sat Feb 19 09:51:49 UTC 2022 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.1.2.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/regex-tdfa-1.3.1.2/src/CHANGELOG.md
-------------------------------------------------------------------
Mon Jan 31 16:31:26 UTC 2022 - Peter Simons <psimons@suse.com>
- Update regex-tdfa to version 1.3.1.1 revision 3.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Fri Aug 13 09:51:56 UTC 2021 - psimons@suse.com
- Update regex-tdfa to version 1.3.1.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Fri Jun 4 09:05:05 UTC 2021 - psimons@suse.com
- Update regex-tdfa to version 1.3.1.1.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/regex-tdfa-1.3.1.1/src/CHANGELOG.md
-------------------------------------------------------------------
Sun Feb 21 12:49:42 UTC 2021 - psimons@suse.com
- Update regex-tdfa to version 1.3.1.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>
- disable %{ix86} build
-------------------------------------------------------------------
Mon Aug 31 09:34:35 UTC 2020 - psimons@suse.com
- Update regex-tdfa to version 1.3.1.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Aug 18 10:45:52 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 16 11:14:32 UTC 2020 - Peter Simons <psimons@suse.com>
- Re-generate file with latest version of spec-cleaner.
-------------------------------------------------------------------
Thu May 7 08:08:25 UTC 2020 - Peter Simons <psimons@suse.com>
- Update Cabal file to get more accurate dependency information.
-------------------------------------------------------------------
Wed Jan 1 11:09:16 UTC 2020 - psimons@suse.com
- Drop obsolete code that used to create a Setup.hs file. The new
rpm macros do this automatically now.
-------------------------------------------------------------------
Wed Nov 27 03:01:02 UTC 2019 - psimons@suse.com
- Update regex-tdfa to version 1.3.1.0.
* Merge <http://hackage.haskell.org/package/regex-tdfa-text> into
`regex-tdfa`; see <https://github.com/haskell-hvr/regex-tdfa/issues/4>.
* Don't inject `ghc-options: -O2` by default anymore (see #7 for
rationale) and introduce `force-O2` cabal flag to control the
injection of `ghc-options: -O2`. Note that you can conveniently
control optimization levels on a per-package granularity via
`cabal.project` files; see [cabal's
user-guide](https://cabal.readthedocs.io/en/latest/nix-local-build.html#configuring-builds-with-cabal-project)
for more details.
-------------------------------------------------------------------
Fri Nov 8 16:14:34 UTC 2019 - Peter Simons <psimons@suse.com>
- Drop obsolete group attributes.
-------------------------------------------------------------------
Sun Sep 29 07:57:22 UTC 2019 - psimons@suse.com
- Update regex-tdfa to version 1.3.0.
# 1.3.0
Same as 1.2.3.3.
See <https://github.com/ChrisKuklewicz/regex-tdfa/issues/29>.
# 1.2.3.3 (deprecated)
* Compatibility with GHC 8.8 and regex-base-0.9.4 (h/t @asr).
* Turned `regex-tdfa-unittest` into a `regex-tdfa` testsuite.
-------------------------------------------------------------------
Fri May 10 13:28:35 UTC 2019 - psimons@suse.com
- Update regex-tdfa to version 1.2.3.2.
# 1.2.3.2
* Significantly improved documentation (h/t William Yao).
-------------------------------------------------------------------
Sat Oct 20 11:31:56 UTC 2018 - Peter Simons <psimons@suse.com>
- Use https URL to refer to bugs.opensuse.org.
-------------------------------------------------------------------
Wed Jul 18 14:26:38 UTC 2018 - psimons@suse.com
- Cosmetic: replace tabs with blanks, strip trailing white space,
and update copyright headers with spec-cleaner.
-------------------------------------------------------------------
Fri Jul 13 14:31:47 UTC 2018 - psimons@suse.com
- Update regex-tdfa to version 1.2.3.1.
# 1.2.3.1
* Compatibility with `containers-0.6`.
-------------------------------------------------------------------
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
- Update regex-tdfa to version 1.2.3.
* Added `Semigroup` instances for some types.
-------------------------------------------------------------------
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
-------------------------------------------------------------------
Sun Jul 10 17:17:02 UTC 2016 - psimons@suse.com
- Update to version 1.2.2 revision 0 with cabal2obs.
-------------------------------------------------------------------
Thu May 12 19:14:14 UTC 2016 - mimi.vx@gmail.com
- update to 1.2.2
* Now we don't reexport the problematic Show instance for functions.
-------------------------------------------------------------------
Sun Sep 6 12:10:54 UTC 2015 - mimi.vx@gmail.com
- updated to 1.2.1
- spec regenerated with cabal-rpm
* "Almost ghc-7.8" with the array 0.4 changes for Data.Array.Unsafe
* Get Build-Depends from "Mon Jun 15 14:24:28 UTC 2015 by AdamBergmark to revision 1"
-------------------------------------------------------------------
Thu May 17 17:33:26 UTC 2012 - peter.trommler@ohm-hochschule.de
- spec file template generated by cabal2spec-0.25.5
-------------------------------------------------------------------
Wed Jan 18 20:38:15 UTC 2012 - herbert@graeber-clan.de
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1

125
ghc-regex-tdfa.spec Normal file
View File

@ -0,0 +1,125 @@
#
# spec file for package ghc-regex-tdfa
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global pkg_name regex-tdfa
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.3.2.3
Release: 0
Summary: Pure Haskell Tagged DFA Backend for "Text.Regex" (regex-base)
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-array-prof
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-devel
BuildRequires: ghc-containers-prof
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-parsec-prof
BuildRequires: ghc-regex-base-devel
BuildRequires: ghc-regex-base-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-prof
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-directory-devel
BuildRequires: ghc-directory-prof
BuildRequires: ghc-doctest-parallel-devel
BuildRequires: ghc-doctest-parallel-prof
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-utf8-string-prof
%endif
%description
This package provides a pure Haskell "Tagged" DFA regex engine for
<//hackage.haskell.org/package/regex-base regex-base>. This implementation was
inspired by the algorithm (and Master's thesis) behind the regular expression
library known as <https://github.com/laurikari/tre/ TRE or libtre>.
Please consult the "Text.Regex.TDFA" module for API documentation including a
tutorial with usage examples; see also
<https://wiki.haskell.org/Regular_expressions> for general information about
regular expression support in Haskell.
%package devel
Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%package -n ghc-%{pkg_name}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
This package provides the Haskell %{pkg_name} library documentation.
%package -n ghc-%{pkg_name}-prof
Summary: Haskell %{pkg_name} profiling library
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
%description -n ghc-%{pkg_name}-prof
This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
%build
%ghc_lib_build
%install
%ghc_lib_install
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc CHANGELOG.md README.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:933ed5c54246bb50e335d86b884ffb70bc252b5f776fb291f162a80a27bd75b7
size 83016

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8571bcf85825e503c768d2ffb868fc5ddccced06ad385228f1ed85ee6d32dc6f
size 83017

197
regex-tdfa.cabal Normal file
View File

@ -0,0 +1,197 @@
cabal-version: 1.12
name: regex-tdfa
version: 1.3.2.2
x-revision: 3
build-Type: Simple
license: BSD3
license-file: LICENSE
copyright: Copyright (c) 2007-2009, Christopher Kuklewicz
author: Christopher Kuklewicz
maintainer: Andreas Abel
homepage: https://wiki.haskell.org/Regular_expressions
bug-reports: https://github.com/haskell-hvr/regex-tdfa/issues
category: Text
synopsis: Pure Haskell Tagged DFA Backend for "Text.Regex" (regex-base)
description:
This package provides a pure Haskell \"Tagged\" DFA regex engine for <//hackage.haskell.org/package/regex-base regex-base>. This implementation was inspired by the algorithm (and Master's thesis) behind the regular expression library known as <https://github.com/laurikari/tre/ TRE or libtre>.
.
Please consult the "Text.Regex.TDFA" module for API documentation including a tutorial with usage examples;
see also <https://wiki.haskell.org/Regular_expressions> for general information about regular expression support in Haskell.
extra-source-files:
CHANGELOG.md
README.md
test/cases/*.txt
tested-with:
GHC == 9.10.0
GHC == 9.8.2
GHC == 9.6.4
GHC == 9.4.8
GHC == 9.2.8
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
source-repository head
type: git
location: https://github.com/haskell-hvr/regex-tdfa.git
source-repository this
type: git
location: https://github.com/haskell-hvr/regex-tdfa.git
tag: v1.3.2.2-r2
flag force-O2
default: False
manual: True
description:
Force building @regex-tdfa@ with \"@ghc-options: -O2@\".
.
__NOTE__: This flag is mostly provided for legacy use-cases. Nowadays you can conveniently control optimization levels on a per-package granularity via @cabal.project@ files; see <https://cabal.readthedocs.io/en/latest/nix-local-build.html#configuring-builds-with-cabal-project cabal's user-guide> for more details.
flag doctest
default: True
manual: False
description:
Include test-suite doctest.
library
hs-source-dirs: lib
exposed-modules: Data.IntMap.CharMap2
Data.IntMap.EnumMap2
Data.IntSet.EnumSet2
Text.Regex.TDFA
Text.Regex.TDFA.ByteString
Text.Regex.TDFA.ByteString.Lazy
Text.Regex.TDFA.Common
Text.Regex.TDFA.CorePattern
Text.Regex.TDFA.IntArrTrieSet
Text.Regex.TDFA.NewDFA.Engine
Text.Regex.TDFA.NewDFA.Engine_FA
Text.Regex.TDFA.NewDFA.Engine_NC
Text.Regex.TDFA.NewDFA.Engine_NC_FA
Text.Regex.TDFA.NewDFA.Tester
Text.Regex.TDFA.NewDFA.Uncons
Text.Regex.TDFA.NewDFA.MakeTest
Text.Regex.TDFA.Pattern
Text.Regex.TDFA.ReadRegex
Text.Regex.TDFA.Sequence
Text.Regex.TDFA.String
Text.Regex.TDFA.TDFA
Text.Regex.TDFA.TNFA
Text.Regex.TDFA.Text
Text.Regex.TDFA.Text.Lazy
other-modules: Paths_regex_tdfa
-- Support Semigroup instances uniformly
--
-- See also
-- https://prime.haskell.org/wiki/Libraries/Proposals/SemigroupMonoid#RecommendedVariant
--
-- NB: This is the same logic `parsec.cabal` uses, so this doesn't
-- add any new dependency that isn't already incurred by
-- `regex-tdfa`'s transitive deps
if !impl(ghc >= 8.0)
build-depends: fail == 4.9.*
, semigroups == 0.18.* || == 0.19.*
build-depends: array >= 0.4 && < 0.6
, base >= 4.5 && < 5
, bytestring >= 0.9.2 && < 0.13
, containers >= 0.4.2 && < 0.8
, mtl >= 2.1.3 && < 2.4
, parsec == 3.1.*
, regex-base == 0.94.*
, text >= 1.2.3 && < 2.2
default-language: Haskell2010
default-extensions: BangPatterns
ExistentialQuantification
FlexibleContexts
FlexibleInstances
ForeignFunctionInterface
FunctionalDependencies
MagicHash
MultiParamTypeClasses
NondecreasingIndentation
RecursiveDo
ScopedTypeVariables
TypeOperators
TypeSynonymInstances
UnboxedTuples
UnliftedFFITypes
other-extensions: CPP
ghc-options: -Wall -funbox-strict-fields -fspec-constr-count=10 -fno-warn-orphans
if impl(ghc >= 8.0)
ghc-options: -Wcompat
if flag(force-O2)
ghc-options: -O2
test-suite regex-tdfa-unittest
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
-- intra-package dependency
build-depends: regex-tdfa
-- dependencies whose version constraints are inherited via intra-package 'regex-tdfa' dependency
if !impl(ghc >= 8.0)
build-depends: fail
, semigroups
build-depends: array
, base
, bytestring
, containers
, filepath
, mtl
, regex-base
, text
-- component-specific dependencies not inherited via 'regex-tdfa'
, directory >= 1.1.0 && < 1.4
, filepath >= 1.3.0 && < 1.6
, utf8-string >= 1.0.1 && < 1.1
default-language: Haskell2010
default-extensions: FlexibleInstances
FlexibleContexts
Rank2Types
other-extensions: GeneralizedNewtypeDeriving
ghc-options: -Wall -funbox-strict-fields
if impl(ghc >= 8.0)
ghc-options: -Wcompat
if flag(force-O2)
ghc-options: -O2
test-suite doctest
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: DocTestMain.hs
build-depends:
base
, regex-tdfa
, doctest-parallel >= 0.2.2
-- doctest-parallel-0.2.2 is the first to filter out autogen-modules
default-language: Haskell2010
if !flag(doctest)
buildable: False