summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 07:21:06 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 07:21:06 +0000
commit353dca088cd26149c54c49857ff683f17341f2c5 (patch)
treea89909ddae837d50701847e4992b69408d1b0d35
parent3b87a088279dd65b0f2f61edf905ca2b368780b4 (diff)
automatic import of ghc-regex-baseopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-regex-base.spec97
-rwxr-xr-xregex-base.cabal100
-rw-r--r--sources1
4 files changed, 199 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..246a094 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/regex-base-0.94.0.2.tar.gz
diff --git a/ghc-regex-base.spec b/ghc-regex-base.spec
new file mode 100644
index 0000000..0e3d5db
--- /dev/null
+++ b/ghc-regex-base.spec
@@ -0,0 +1,97 @@
+%global pkg_name regex-base
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.94.0.2
+Release: 1
+Summary: Common "Text.Regex.*" API for Regex matching
+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/2.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-rpm-macros
+BuildRequires: ghc-text-devel
+BuildRequires: ghc-text-prof
+ExcludeArch: %{ix86}
+
+%description
+This package does not provide the ability to do regular expression matching.
+Instead, it provides the type classes that constitute the abstract API that is
+implemented by 'regex-*' backends such as:
+
+* <https://hackage.haskell.org/package/regex-posix regex-posix>
+
+* <https://hackage.haskell.org/package/regex-parsec regex-parsec>
+
+* <https://hackage.haskell.org/package/regex-dfa regex-dfa>
+
+* <https://hackage.haskell.org/package/regex-tdfa regex-tdfa>
+
+* <https://hackage.haskell.org/package/regex-pcre regex-pcre>
+
+See also <https://wiki.haskell.org/Regular_expressions> for more information.
+
+%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
+
+%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> 0.94.0.2-1
+- Initial packaging (Version 0.94.0.2)
diff --git a/regex-base.cabal b/regex-base.cabal
new file mode 100755
index 0000000..5499a60
--- /dev/null
+++ b/regex-base.cabal
@@ -0,0 +1,100 @@
+cabal-version: 1.12
+name: regex-base
+version: 0.94.0.2
+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-base/issues
+synopsis: Common "Text.Regex.*" API for Regex matching
+category: Text
+description:
+ This package does not provide the ability to do regular expression matching.
+ Instead, it provides the type classes that constitute the abstract API
+ that is implemented by @regex-*@ backends such as:
+ .
+ * <https://hackage.haskell.org/package/regex-posix regex-posix>
+ .
+ * <https://hackage.haskell.org/package/regex-parsec regex-parsec>
+ .
+ * <https://hackage.haskell.org/package/regex-dfa regex-dfa>
+ .
+ * <https://hackage.haskell.org/package/regex-tdfa regex-tdfa>
+ .
+ * <https://hackage.haskell.org/package/regex-pcre regex-pcre>
+ .
+ See also <https://wiki.haskell.org/Regular_expressions> for more information.
+
+extra-source-files:
+ ChangeLog.md
+ README.md
+
+tested-with:
+ 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
+ GHC == 7.2.2
+ GHC == 7.0.4
+
+source-repository head
+ type: git
+ location: https://github.com/haskell-hvr/regex-base.git
+
+source-repository this
+ type: git
+ location: https://github.com/haskell-hvr/regex-base.git
+ tag: v0.94.0.2-r2
+
+library
+ hs-source-dirs: src
+
+ exposed-modules:
+ Text.Regex.Base
+ Text.Regex.Base.RegexLike
+ Text.Regex.Base.Context
+ Text.Regex.Base.Impl
+
+ other-modules:
+ Paths_regex_base
+
+ default-language: Haskell2010
+ other-extensions:
+ MultiParamTypeClasses
+ FunctionalDependencies
+ TypeSynonymInstances
+ FlexibleInstances
+ FlexibleContexts
+
+ if impl(ghc >= 7.4)
+ default-extensions: Safe
+ build-depends: containers >= 0.4.2.1
+ , bytestring >= 0.9.2.1
+
+ build-depends: base >= 4.3 && < 5
+ , containers >= 0.4 && < 0.7
+ , bytestring >= 0.9 && < 0.13
+ , array >= 0.3 && < 0.6
+ , text >= 1.2.3 && < 1.3 || >=2.0 && <2.1
+
+ if !impl(ghc >= 8)
+ build-depends: fail == 4.9.*
+
+ ghc-options: -Wall
+ if impl(ghc >= 8)
+ ghc-options: -Wcompat
diff --git a/sources b/sources
new file mode 100644
index 0000000..f7a8065
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+992d44dc9748288ce900cc197d6c0883 regex-base-0.94.0.2.tar.gz