summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-26 23:19:59 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-26 23:19:59 +0000
commite98603f746257fae3edd736b8acd114b2fc9e8e7 (patch)
tree6404b31d94b381d36318490cc1fb68212be9b207
parent00b73ea47728c23f309ca1944f26b74245fe0493 (diff)
automatic import of ghc-attoparsecopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xattoparsec.cabal215
-rw-r--r--ghc-attoparsec.spec106
-rw-r--r--sources1
4 files changed, 323 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a4d0e00 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/attoparsec-0.14.4.tar.gz
diff --git a/attoparsec.cabal b/attoparsec.cabal
new file mode 100755
index 0000000..d4ba456
--- /dev/null
+++ b/attoparsec.cabal
@@ -0,0 +1,215 @@
+cabal-version: 2.0
+ -- 2.0 needed for internal libraries
+name: attoparsec
+version: 0.14.4
+x-revision: 4
+license: BSD3
+license-file: LICENSE
+category: Text, Parsing
+author: Bryan O'Sullivan <bos@serpentine.com>
+maintainer: Ben Gamari <ben@smart-cactus.org>
+stability: experimental
+synopsis: Fast combinator parsing for bytestrings and text
+homepage: https://github.com/haskell/attoparsec
+bug-reports: https://github.com/haskell/attoparsec/issues
+build-type: Simple
+description:
+ A fast parser combinator library, aimed particularly at dealing
+ efficiently with network protocols and complicated text/binary
+ file formats.
+
+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
+
+extra-source-files:
+ README.markdown
+ benchmarks/*.txt
+ benchmarks/json-data/*.json
+ benchmarks/Makefile
+ benchmarks/med.txt.bz2
+ changelog.md
+ examples/*.c
+ examples/*.hs
+ examples/Makefile
+
+Flag developer
+ Description: Whether to build the library in development mode
+ Default: False
+ Manual: True
+
+-- We need to test and benchmark these modules,
+-- but do not want to expose them to end users
+library attoparsec-internal
+ hs-source-dirs: internal
+ build-depends: array,
+ base >= 4.5 && < 5,
+ bytestring <0.13,
+ text >= 1.1.1.3
+ if !impl(ghc >= 8.0)
+ build-depends: semigroups >=0.16.1 && <0.21
+ exposed-modules: Data.Attoparsec.ByteString.Buffer
+ Data.Attoparsec.ByteString.FastSet
+ Data.Attoparsec.Internal.Compat
+ Data.Attoparsec.Internal.Fhthagn
+ Data.Attoparsec.Text.Buffer
+ Data.Attoparsec.Text.FastSet
+ ghc-options: -O2 -Wall
+ default-language: Haskell2010
+
+library
+ build-depends: array,
+ base >= 4.5 && < 5,
+ bytestring <0.13,
+ containers,
+ deepseq,
+ scientific >= 0.3.1 && < 0.4,
+ transformers >= 0.2 && (< 0.4 || >= 0.4.1.0) && < 0.7,
+ text >= 1.1.1.3,
+ ghc-prim < 0.11,
+ attoparsec-internal
+ if impl(ghc < 7.4)
+ build-depends:
+ bytestring < 0.10.4.0
+
+ if !impl(ghc >= 8.0)
+ -- Data.Semigroup && Control.Monad.Fail are available in base-4.9+
+ build-depends: fail == 4.9.*,
+ semigroups >=0.16.1 && <0.21
+
+ exposed-modules: Data.Attoparsec
+ Data.Attoparsec.ByteString
+ Data.Attoparsec.ByteString.Char8
+ Data.Attoparsec.ByteString.Lazy
+ Data.Attoparsec.Char8
+ Data.Attoparsec.Combinator
+ Data.Attoparsec.Internal
+ Data.Attoparsec.Internal.Types
+ Data.Attoparsec.Lazy
+ Data.Attoparsec.Number
+ Data.Attoparsec.Text
+ Data.Attoparsec.Text.Lazy
+ Data.Attoparsec.Types
+ Data.Attoparsec.Zepto
+ other-modules: Data.Attoparsec.ByteString.Internal
+ Data.Attoparsec.Text.Internal
+ ghc-options: -O2 -Wall
+
+ default-language: Haskell2010
+
+ if flag(developer)
+ ghc-prof-options: -auto-all
+ ghc-options: -Werror
+
+test-suite attoparsec-tests
+ type: exitcode-stdio-1.0
+ hs-source-dirs: tests
+ main-is: QC.hs
+ other-modules: QC.Buffer
+ QC.ByteString
+ QC.Combinator
+ QC.Common
+ QC.IPv6.Internal
+ QC.IPv6.Types
+ QC.Rechunked
+ QC.Simple
+ QC.Text
+ QC.Text.FastSet
+ QC.Text.Regressions
+
+ ghc-options:
+ -Wall -threaded -rtsopts
+
+ if flag(developer)
+ ghc-options: -Werror
+
+ build-depends:
+ array,
+ attoparsec,
+ attoparsec-internal,
+ base,
+ bytestring,
+ deepseq >= 1.1,
+ QuickCheck >= 2.13.2 && < 2.15,
+ quickcheck-unicode,
+ scientific,
+ tasty >= 0.11,
+ tasty-quickcheck >= 0.8,
+ text,
+ transformers,
+ vector
+
+ default-language: Haskell2010
+
+ if !impl(ghc >= 8.0)
+ -- Data.Semigroup && Control.Monad.Fail are available in base-4.9+
+ build-depends: fail == 4.9.*,
+ semigroups >=0.16.1 && <0.19
+
+benchmark attoparsec-benchmarks
+ type: exitcode-stdio-1.0
+ hs-source-dirs: benchmarks benchmarks/warp-3.0.1.1
+ ghc-options: -O2 -Wall -rtsopts
+ main-is: Benchmarks.hs
+ other-modules:
+ Aeson
+ Common
+ Genome
+ HeadersByteString
+ HeadersByteString.Atto
+ HeadersText
+ Links
+ Network.Wai.Handler.Warp.ReadInt
+ Network.Wai.Handler.Warp.RequestHeader
+ Numbers
+ Sets
+ TextFastSet
+ Warp
+ ghc-options: -O2 -Wall
+
+ if flag(developer)
+ ghc-options: -Werror
+
+ build-depends:
+ array,
+ attoparsec,
+ attoparsec-internal,
+ base == 4.*,
+ bytestring >= 0.10.4.0,
+ case-insensitive,
+ containers,
+ deepseq >= 1.1,
+ directory,
+ filepath,
+ ghc-prim,
+ http-types,
+ parsec >= 3.1.2,
+ scientific,
+ tasty-bench >= 0.3,
+ text >= 1.1.1.0,
+ transformers,
+ unordered-containers,
+ vector
+
+ default-language: Haskell2010
+
+ if !impl(ghc >= 8.0)
+ -- Data.Semigroup && Control.Monad.Fail are available in base-4.9+
+ build-depends: fail == 4.9.*,
+ semigroups >=0.16.1 && <0.19
+
+source-repository head
+ type: git
+ location: https://github.com/haskell/attoparsec.git
diff --git a/ghc-attoparsec.spec b/ghc-attoparsec.spec
new file mode 100644
index 0000000..d5be57c
--- /dev/null
+++ b/ghc-attoparsec.spec
@@ -0,0 +1,106 @@
+%global pkg_name attoparsec
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.14.4
+Release: 1
+Summary: Fast combinator parsing for bytestrings and text
+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/4.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-deepseq-devel
+BuildRequires: ghc-deepseq-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: ghc-scientific-devel
+BuildRequires: ghc-scientific-prof
+BuildRequires: ghc-text-devel
+BuildRequires: ghc-text-prof
+BuildRequires: ghc-transformers-devel
+BuildRequires: ghc-transformers-prof
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+BuildRequires: ghc-quickcheck-unicode-devel
+BuildRequires: ghc-quickcheck-unicode-prof
+BuildRequires: ghc-tasty-devel
+BuildRequires: ghc-tasty-prof
+BuildRequires: ghc-tasty-quickcheck-devel
+BuildRequires: ghc-tasty-quickcheck-prof
+BuildRequires: ghc-vector-devel
+BuildRequires: ghc-vector-prof
+%endif
+
+%description
+A fast parser combinator library, aimed particularly at dealing efficiently
+with network protocols and complicated text/binary file formats.
+
+%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 README.markdown changelog.md examples
+
+%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.14.4-1
+- Initial packaging (Version 0.14.4)
diff --git a/sources b/sources
new file mode 100644
index 0000000..e8c6e88
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6be5881f54a8ead8daf2bfbd22fa0a51 attoparsec-0.14.4.tar.gz