summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 09:39:41 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 09:39:41 +0000
commit1fff3b6a6ef8a8323fd22039248d607b1e244a97 (patch)
tree183c3c59f72b4accf3db9f384b61d01b89807e4d
parent70d3293c568d268d799c798ec16106a60a1ac4b1 (diff)
automatic import of ghc-aesonopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xaeson.cabal240
-rw-r--r--ghc-aeson.spec170
-rw-r--r--sources1
4 files changed, 412 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cdf91a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aeson-2.1.2.1.tar.gz
diff --git a/aeson.cabal b/aeson.cabal
new file mode 100755
index 0000000..9963cba
--- /dev/null
+++ b/aeson.cabal
@@ -0,0 +1,240 @@
+name: aeson
+version: 2.1.2.1
+x-revision: 3
+license: BSD3
+license-file: LICENSE
+category: Text, Web, JSON
+copyright:
+ (c) 2011-2016 Bryan O'Sullivan
+ (c) 2011 MailRank, Inc.
+
+author: Bryan O'Sullivan <bos@serpentine.com>
+maintainer: Adam Bergmark <adam@bergmark.nl>
+stability: experimental
+tested-with:
+ GHC ==8.0.2
+ || ==8.2.2
+ || ==8.4.4
+ || ==8.6.5
+ || ==8.8.4
+ || ==8.10.7
+ || ==9.0.2
+ || ==9.2.7
+ || ==9.4.4
+ || ==9.6.1
+
+synopsis: Fast JSON parsing and encoding
+cabal-version: >=1.10
+homepage: https://github.com/haskell/aeson
+bug-reports: https://github.com/haskell/aeson/issues
+build-type: Simple
+description:
+ A JSON parsing and encoding library optimized for ease of use
+ and high performance.
+ .
+ To get started, see the documentation for the @Data.Aeson@ module
+ below.
+ .
+ (A note on naming: in Greek mythology, Aeson was the father of Jason.)
+
+extra-source-files:
+ *.yaml
+ benchmarks/json-data/*.json
+ cbits/*.c
+ changelog.md
+ README.markdown
+ src-ffi/Data/Aeson/Parser/*.hs
+ src-pure/Data/Aeson/Parser/*.hs
+ tests/golden/*.expected
+ tests/JSONTestSuite/results/*.tok
+ tests/JSONTestSuite/results/*.txt
+ tests/JSONTestSuite/test_parsing/*.json
+ tests/JSONTestSuite/test_transform/*.json
+
+flag cffi
+ description:
+ Controls whether to include c-ffi bits or pure haskell. Default to False for security.
+
+ default: False
+ manual: True
+
+flag ordered-keymap
+ description: Use ordered @Data.Map.Strict@ for KeyMap implementation.
+ default: True
+ manual: True
+
+library
+ default-language: Haskell2010
+ hs-source-dirs: src attoparsec-iso8601/src
+ exposed-modules:
+ Data.Aeson
+ Data.Aeson.Decoding
+ Data.Aeson.Decoding.ByteString
+ Data.Aeson.Decoding.ByteString.Lazy
+ Data.Aeson.Decoding.Tokens
+ Data.Aeson.Encoding
+ Data.Aeson.Encoding.Internal
+ Data.Aeson.Internal
+ Data.Aeson.Internal.Time
+ Data.Aeson.Key
+ Data.Aeson.KeyMap
+ Data.Aeson.Parser
+ Data.Aeson.Parser.Internal
+ Data.Aeson.QQ.Simple
+ Data.Aeson.Text
+ Data.Aeson.TH
+ Data.Aeson.Types
+
+ other-modules:
+ Data.Aeson.Decoding.Internal
+ Data.Aeson.Encoding.Builder
+ Data.Aeson.Internal.ByteString
+ Data.Aeson.Internal.Functions
+ Data.Aeson.Internal.Integer
+ Data.Aeson.Internal.Text
+ Data.Aeson.Internal.TH
+ Data.Aeson.Internal.Word8
+ Data.Aeson.Parser.Time
+ Data.Aeson.Parser.Unescape
+ Data.Aeson.Types.Class
+ Data.Aeson.Types.FromJSON
+ Data.Aeson.Types.Generic
+ Data.Aeson.Types.Internal
+ Data.Aeson.Types.ToJSON
+ Data.Attoparsec.Time
+ Data.Attoparsec.Time.Internal
+
+ -- GHC bundled libs
+ build-depends:
+ base >=4.9.0.0 && <5
+ , bytestring >=0.10.8.1 && <0.12
+ , containers >=0.5.7.1 && <0.7
+ , deepseq >=1.4.2.0 && <1.5
+ , exceptions >=0.10.4 && <0.11
+ , ghc-prim >=0.5.0.0 && <0.11
+ , template-haskell >=2.11.0.0 && <2.21
+ , text >=1.2.3.0 && <1.3 || >=2.0 && <2.1
+ , time >=1.6.0.1 && <1.13
+
+ -- Compat
+ build-depends:
+ base-compat-batteries >=0.10.0 && <0.14
+ , generically >=0.1 && <0.2
+ , time-compat >=1.9.6 && <1.10
+
+ if !impl(ghc >=8.6)
+ build-depends: contravariant >=1.4.1 && <1.6
+
+ -- Other dependencies
+ build-depends:
+ attoparsec >=0.14.2 && <0.15
+ , data-fix >=0.3.2 && <0.4
+ , dlist >=0.8.0.4 && <1.1
+ , hashable >=1.3.5.0 && <1.5
+ , indexed-traversable >=0.1.2 && <0.2
+ , OneTuple >=0.3.1 && <0.5
+ , primitive >=0.7.3.0 && <0.9
+ , QuickCheck >=2.14.2 && <2.15
+ , scientific >=0.3.7.0 && <0.4
+ , semialign >=1.2 && <1.4
+ , strict >=0.4 && <0.6
+ , tagged >=0.8.6 && <0.9
+ , text-short >=0.1.5 && <0.2
+ , th-abstraction >=0.3.0.0 && <0.6
+ , these >=1.1.1.1 && <1.3
+ , unordered-containers >=0.2.10.0 && <0.3
+ , uuid-types >=1.0.5 && <1.1
+ , vector >=0.12.0.1 && <0.14
+ , witherable >=0.4.2 && <0.5
+
+ ghc-options: -Wall
+
+ if (impl(ghcjs) || !flag(cffi))
+ hs-source-dirs: src-pure
+ other-modules: Data.Aeson.Parser.UnescapePure
+
+ else
+ c-sources: cbits/unescape_string.c
+ cpp-options: -DCFFI
+ hs-source-dirs: src-ffi
+ other-modules: Data.Aeson.Parser.UnescapeFFI
+ build-depends: text <2.0
+
+ if flag(ordered-keymap)
+ cpp-options: -DUSE_ORDEREDMAP=1
+
+test-suite aeson-tests
+ default-language: Haskell2010
+ type: exitcode-stdio-1.0
+ hs-source-dirs: tests
+ main-is: Tests.hs
+ ghc-options: -Wall -threaded -rtsopts
+ other-modules:
+ DataFamilies.Encoders
+ DataFamilies.Instances
+ DataFamilies.Properties
+ DataFamilies.Types
+ Encoders
+ ErrorMessages
+ Functions
+ Instances
+ JSONTestSuite
+ Options
+ Properties
+ PropertyGeneric
+ PropertyKeys
+ PropertyQC
+ PropertyRoundTrip
+ PropertyRTFunctors
+ PropertyTH
+ PropUtils
+ Regression.Issue967
+ SerializationFormatSpec
+ Types
+ UnitTests
+ UnitTests.NullaryConstructors
+
+ build-depends:
+ aeson
+ , attoparsec
+ , base
+ , base-compat
+ , base-orphans >=0.5.3 && <0.10
+ , base16-bytestring
+ , bytestring
+ , containers
+ , data-fix
+ , Diff >=0.4 && <0.5
+ , directory
+ , dlist
+ , filepath
+ , generic-deriving >=1.10 && <1.15
+ , generically
+ , ghc-prim >=0.2
+ , hashable
+ , indexed-traversable
+ , integer-logarithms >=1 && <1.1
+ , OneTuple
+ , primitive
+ , QuickCheck >=2.14.2 && <2.15
+ , quickcheck-instances >=0.3.29 && <0.4
+ , scientific
+ , strict
+ , tagged
+ , tasty
+ , tasty-golden
+ , tasty-hunit
+ , tasty-quickcheck
+ , template-haskell
+ , text
+ , text-short
+ , these
+ , time
+ , time-compat
+ , unordered-containers
+ , uuid-types
+ , vector
+
+source-repository head
+ type: git
+ location: git://github.com/haskell/aeson.git
diff --git a/ghc-aeson.spec b/ghc-aeson.spec
new file mode 100644
index 0000000..c9f70da
--- /dev/null
+++ b/ghc-aeson.spec
@@ -0,0 +1,170 @@
+%global pkg_name aeson
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 2.1.2.1
+Release: 1
+Summary: Fast JSON parsing and encoding
+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/3.cabal#/%{pkg_name}.cabal
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-OneTuple-devel
+BuildRequires: ghc-OneTuple-prof
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+BuildRequires: ghc-attoparsec-devel
+BuildRequires: ghc-attoparsec-prof
+BuildRequires: ghc-base-compat-batteries-devel
+BuildRequires: ghc-base-compat-batteries-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-data-fix-devel
+BuildRequires: ghc-data-fix-prof
+BuildRequires: ghc-deepseq-devel
+BuildRequires: ghc-deepseq-prof
+BuildRequires: ghc-dlist-devel
+BuildRequires: ghc-dlist-prof
+BuildRequires: ghc-exceptions-devel
+BuildRequires: ghc-exceptions-prof
+BuildRequires: ghc-generically-devel
+BuildRequires: ghc-generically-prof
+BuildRequires: ghc-hashable-devel
+BuildRequires: ghc-hashable-prof
+BuildRequires: ghc-indexed-traversable-devel
+BuildRequires: ghc-indexed-traversable-prof
+BuildRequires: ghc-primitive-devel
+BuildRequires: ghc-primitive-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: ghc-scientific-devel
+BuildRequires: ghc-scientific-prof
+BuildRequires: ghc-semialign-devel
+BuildRequires: ghc-semialign-prof
+BuildRequires: ghc-strict-devel
+BuildRequires: ghc-strict-prof
+BuildRequires: ghc-tagged-devel
+BuildRequires: ghc-tagged-prof
+BuildRequires: ghc-template-haskell-devel
+BuildRequires: ghc-template-haskell-prof
+BuildRequires: ghc-text-devel
+BuildRequires: ghc-text-prof
+BuildRequires: ghc-text-short-devel
+BuildRequires: ghc-text-short-prof
+BuildRequires: ghc-th-abstraction-devel
+BuildRequires: ghc-th-abstraction-prof
+BuildRequires: ghc-these-devel
+BuildRequires: ghc-these-prof
+BuildRequires: ghc-time-compat-devel
+BuildRequires: ghc-time-compat-prof
+BuildRequires: ghc-time-devel
+BuildRequires: ghc-time-prof
+BuildRequires: ghc-unordered-containers-devel
+BuildRequires: ghc-unordered-containers-prof
+BuildRequires: ghc-uuid-types-devel
+BuildRequires: ghc-uuid-types-prof
+BuildRequires: ghc-vector-devel
+BuildRequires: ghc-vector-prof
+BuildRequires: ghc-witherable-devel
+BuildRequires: ghc-witherable-prof
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-Diff-devel
+BuildRequires: ghc-Diff-prof
+BuildRequires: ghc-base-compat-devel
+BuildRequires: ghc-base-compat-prof
+BuildRequires: ghc-base-orphans-devel
+BuildRequires: ghc-base-orphans-prof
+BuildRequires: ghc-base16-bytestring-devel
+BuildRequires: ghc-base16-bytestring-prof
+BuildRequires: ghc-directory-devel
+BuildRequires: ghc-directory-prof
+BuildRequires: ghc-filepath-devel
+BuildRequires: ghc-filepath-prof
+BuildRequires: ghc-generic-deriving-devel
+BuildRequires: ghc-generic-deriving-prof
+BuildRequires: ghc-integer-logarithms-devel
+BuildRequires: ghc-integer-logarithms-prof
+BuildRequires: ghc-quickcheck-instances-devel
+BuildRequires: ghc-quickcheck-instances-prof
+BuildRequires: ghc-tasty-devel
+BuildRequires: ghc-tasty-golden-devel
+BuildRequires: ghc-tasty-golden-prof
+BuildRequires: ghc-tasty-hunit-devel
+BuildRequires: ghc-tasty-hunit-prof
+BuildRequires: ghc-tasty-prof
+BuildRequires: ghc-tasty-quickcheck-devel
+BuildRequires: ghc-tasty-quickcheck-prof
+%endif
+
+%description
+A JSON parsing and encoding library optimized for ease of use and high
+performance.
+
+To get started, see the documentation for the 'Data.Aeson' module below.
+
+(A note on naming: in Greek mythology, Aeson was the father of Jason.).
+
+%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
+
+%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> 2.1.2.1-1
+- Initial packaging (Version 2.1.2.1)
diff --git a/sources b/sources
new file mode 100644
index 0000000..38e9a49
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8c8210b519e3dd451b251ab60b6bf8f3 aeson-2.1.2.1.tar.gz