summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 08:57:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 08:57:55 +0000
commit4311de37daf3cca44b035de70ac513bdd08e3c2e (patch)
treeb9b7e12d31087955df5e2ba0bf753685196be2c8
parent96431027e78fb76688ff7aa53060b9de33897950 (diff)
automatic import of ghc-http-api-dataopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-http-api-data.spec121
-rwxr-xr-xhttp-api-data.cabal112
-rw-r--r--sources1
4 files changed, 235 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..837d867 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/http-api-data-0.5.tar.gz
diff --git a/ghc-http-api-data.spec b/ghc-http-api-data.spec
new file mode 100644
index 0000000..bdfa9a7
--- /dev/null
+++ b/ghc-http-api-data.spec
@@ -0,0 +1,121 @@
+%global pkg_name http-api-data
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.5
+Release: 1
+Summary: Converting to/from HTTP API data like URL pieces, headers and query parameters
+License: BSD-2-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-attoparsec-devel
+BuildRequires: ghc-attoparsec-iso8601-devel
+BuildRequires: ghc-attoparsec-iso8601-prof
+BuildRequires: ghc-attoparsec-prof
+BuildRequires: ghc-base-compat-devel
+BuildRequires: ghc-base-compat-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-cookie-devel
+BuildRequires: ghc-cookie-prof
+BuildRequires: ghc-hashable-devel
+BuildRequires: ghc-hashable-prof
+BuildRequires: ghc-http-types-devel
+BuildRequires: ghc-http-types-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: ghc-tagged-devel
+BuildRequires: ghc-tagged-prof
+BuildRequires: ghc-text-devel
+BuildRequires: ghc-text-prof
+BuildRequires: ghc-time-compat-devel
+BuildRequires: ghc-time-compat-prof
+BuildRequires: ghc-transformers-devel
+BuildRequires: ghc-transformers-prof
+BuildRequires: ghc-unordered-containers-devel
+BuildRequires: ghc-unordered-containers-prof
+BuildRequires: ghc-uuid-types-devel
+BuildRequires: ghc-uuid-types-prof
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-HUnit-devel
+BuildRequires: ghc-HUnit-prof
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+BuildRequires: ghc-hspec-devel
+BuildRequires: ghc-hspec-prof
+BuildRequires: ghc-quickcheck-instances-devel
+BuildRequires: ghc-quickcheck-instances-prof
+%endif
+
+%description
+This package defines typeclasses used for converting Haskell data types to and
+from HTTP API data.
+
+Please see README.md.
+
+%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
+cabal-tweak-dep-ver base-compat "< 0.13" "< 1"
+
+%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
+* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 0.5-1
+- Initial packaging (Version 0.5)
diff --git a/http-api-data.cabal b/http-api-data.cabal
new file mode 100755
index 0000000..50ab1a6
--- /dev/null
+++ b/http-api-data.cabal
@@ -0,0 +1,112 @@
+cabal-version: >= 1.10
+name: http-api-data
+version: 0.5
+x-revision: 1
+
+synopsis: Converting to/from HTTP API data like URL pieces, headers and query parameters.
+category: Web
+description:
+ This package defines typeclasses used for converting Haskell data types to and from HTTP API data.
+ .
+ Please see README.md
+
+license: BSD3
+license-file: LICENSE
+author: Nickolay Kudasov <nickolay.kudasov@gmail.com>
+maintainer: Nickolay Kudasov <nickolay.kudasov@gmail.com>
+homepage: http://github.com/fizruk/http-api-data
+stability: unstable
+build-type: Simple
+
+extra-source-files:
+ include/overlapping-compat.h
+ test/*.hs
+ CHANGELOG.md
+ README.md
+
+tested-with:
+ GHC==8.0.2,
+ GHC==8.2.2,
+ GHC==8.4.4,
+ GHC==8.6.5,
+ GHC==8.8.4,
+ GHC==8.10.7,
+ GHC==9.0.2,
+ GHC==9.2.3,
+ GHC==9.4.1
+
+flag use-text-show
+ description: Use text-show library for efficient ToHttpApiData implementations.
+ default: False
+ manual: True
+
+library
+ hs-source-dirs: src/
+ include-dirs: include/
+
+ -- GHC bundled
+ build-depends: base >= 4.9 && < 4.18
+ , bytestring >= 0.10.8.1 && < 0.12
+ , containers >= 0.5.7.1 && < 0.7
+ , text >= 1.2.3.0 && < 1.3 || >=2.0 && <2.1
+ , transformers >= 0.5.2.0 && < 0.7
+
+ -- other-dependencies
+ build-depends:
+ attoparsec >= 0.13.2.2 && < 0.15
+ , attoparsec-iso8601 >= 1.1.0.0 && < 1.2
+ , base-compat >= 0.10.5 && < 0.13
+ , cookie >= 0.4.3 && < 0.5
+ , hashable >= 1.2.7.0 && < 1.5
+ , http-types >= 0.12.3 && < 0.13
+ , tagged >= 0.8.5 && < 0.9
+ , time-compat >= 1.9.5 && < 1.10
+ , unordered-containers >= 0.2.10.0 && < 0.3
+ , uuid-types >= 1.0.3 && < 1.1
+
+ if flag(use-text-show)
+ cpp-options: -DUSE_TEXT_SHOW
+ build-depends: text-show >= 3.8.2 && <3.10
+
+ exposed-modules:
+ Web.HttpApiData
+ Web.FormUrlEncoded
+ Web.Internal.FormUrlEncoded
+ Web.Internal.HttpApiData
+ ghc-options: -Wall
+ default-language: Haskell2010
+
+test-suite spec
+ type: exitcode-stdio-1.0
+ main-is: Spec.hs
+ other-modules:
+ Web.Internal.FormUrlEncodedSpec
+ Web.Internal.HttpApiDataSpec
+ Web.Internal.TestInstances
+ hs-source-dirs: test
+ ghc-options: -Wall
+ default-language: Haskell2010
+ build-tool-depends: hspec-discover:hspec-discover >= 2.7.1 && <2.11
+ -- inherited depndencies
+ build-depends:
+ base
+ , base-compat
+ , bytestring
+ , cookie
+ , http-api-data
+ , text
+ , time-compat
+ , unordered-containers
+ , uuid-types
+
+ if !impl(ghc >= 7.10)
+ build-depends: nats
+
+ build-depends: HUnit >= 1.6.0.0 && <1.7
+ , hspec >= 2.7.1 && <2.11
+ , QuickCheck >= 2.13.1 && <2.15
+ , quickcheck-instances >= 0.3.25.2 && <0.4
+
+source-repository head
+ type: git
+ location: https://github.com/fizruk/http-api-data
diff --git a/sources b/sources
new file mode 100644
index 0000000..e05926a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+999a064096109259b9c482197333d6f3 http-api-data-0.5.tar.gz