summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 08:19:38 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 08:19:38 +0000
commitf653800ef90788f0530249180bdb837c48d07227 (patch)
tree0d494f072bc6a3709bf090ce666b8054cebfc2bb
parent967fa432e5b4f9c6fb461912f3eaebc9d80d0180 (diff)
automatic import of ghc-regex-tdfaopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-regex-tdfa.spec111
-rwxr-xr-xregex-tdfa.cabal200
-rw-r--r--sources1
4 files changed, 313 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5d1a9e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/regex-tdfa-1.3.2.2.tar.gz
diff --git a/ghc-regex-tdfa.spec b/ghc-regex-tdfa.spec
new file mode 100644
index 0000000..aa45390
--- /dev/null
+++ b/ghc-regex-tdfa.spec
@@ -0,0 +1,111 @@
+%global pkg_name regex-tdfa
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 1.3.2.2
+Release: 1
+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
+Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
+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}-help
+Summary: Haskell %{pkg_name} library documentation
+BuildArch: noarch
+
+%description -n ghc-%{pkg_name}-help
+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}
+cp -p %{SOURCE1} %{pkg_name}.cabal
+
+%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}-help -f ghc-%{pkg_name}-help.files
+%license LICENSE
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
+%changelog
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 1.3.2.2-1
+- Initial packaging (Version 1.3.2.2)
diff --git a/regex-tdfa.cabal b/regex-tdfa.cabal
new file mode 100755
index 0000000..452e23d
--- /dev/null
+++ b/regex-tdfa.cabal
@@ -0,0 +1,200 @@
+cabal-version: 1.12
+name: regex-tdfa
+version: 1.3.2.2
+x-revision: 1
+
+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.8.0
+ GHC == 9.6.2
+ GHC == 9.4.5
+ 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
+ GHC == 7.10.3
+ GHC == 7.8.4
+ GHC == 7.6.3
+ GHC == 7.4.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-r1
+
+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.7
+ , 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.5
+ , 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
diff --git a/sources b/sources
new file mode 100644
index 0000000..b93a876
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+28876836a8a4cfc2e9745c956f85b149 regex-tdfa-1.3.2.2.tar.gz