From 75df70aaabfcce5300fcb8414b0f3d7f68740589 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 29 Oct 2023 02:28:08 +0000 Subject: automatic import of ghc-bsb-http-chunked --- .gitignore | 1 + bsb-http-chunked.cabal | 80 +++++++++++++++++++++++++++++++++++ ghc-bsb-http-chunked.spec | 104 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 186 insertions(+) create mode 100755 bsb-http-chunked.cabal create mode 100644 ghc-bsb-http-chunked.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..61b400d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/bsb-http-chunked-0.0.0.4.tar.gz diff --git a/bsb-http-chunked.cabal b/bsb-http-chunked.cabal new file mode 100755 index 0000000..61f0eba --- /dev/null +++ b/bsb-http-chunked.cabal @@ -0,0 +1,80 @@ +Name: bsb-http-chunked +Version: 0.0.0.4 +x-revision: 3 +Synopsis: Chunked HTTP transfer encoding for bytestring builders + +Description: This library contains functions for encoding [bytestring + builders](http://hackage.haskell.org/package/bytestring/docs/Data-ByteString-Builder.html#t:Builder) + for [chunked HTTP\/1.1 transfer](https://en.wikipedia.org/wiki/Chunked_transfer_encoding). + . + This functionality was extracted from + the [blaze-builder](http://hackage.haskell.org/package/blaze-builder) + package. + +Author: Jasper Van der Jeugt, Simon Meier, Leon P Smith, Simon Jakobi +Copyright: (c) 2010-2014 Simon Meier + (c) 2010 Jasper Van der Jeugt + (c) 2013-2015 Leon P Smith + (c) 2018 Simon Jakobi +Maintainer: Simon Jakobi + +License: BSD3 +License-file: LICENSE + +Homepage: http://github.com/sjakobi/bsb-http-chunked +Bug-Reports: http://github.com/sjakobi/bsb-http-chunked/issues +Stability: Provisional + +Category: Data, Network +Build-type: Simple +Cabal-version: >= 1.8 + +Extra-source-files: CHANGELOG.md + +Source-repository head + Type: git + Location: https://github.com/sjakobi/bsb-http-chunked.git + +Library + exposed-modules: Data.ByteString.Builder.HTTP.Chunked + build-depends: base >= 4.8 && < 5, + bytestring >= 0.10.2 && < 0.12 + ghc-options: -Wall -O2 + if impl(ghc >= 8.0) + ghc-options: -Wcompat + +test-suite tests + hs-source-dirs: tests + main-is: Tests.hs + build-depends: attoparsec + , base + , bsb-http-chunked + , blaze-builder >= 0.2.1.4 + , bytestring + , hedgehog + , tasty + , tasty-hedgehog + , tasty-hunit + ghc-options: -Wall -rtsopts + type: exitcode-stdio-1.0 + +test-suite doctests + hs-source-dirs: tests + main-is: Doctests.hs + build-depends: base + , doctest >= 0.8 + ghc-options: -Wall + type: exitcode-stdio-1.0 + +benchmark bench + hs-source-dirs: bench + main-is: Bench.hs + build-depends: base + , blaze-builder + , bsb-http-chunked + , bytestring + , deepseq + , gauge + , semigroups + ghc-options: -O2 -Wall -rtsopts + type: exitcode-stdio-1.0 diff --git a/ghc-bsb-http-chunked.spec b/ghc-bsb-http-chunked.spec new file mode 100644 index 0000000..5ac3acd --- /dev/null +++ b/ghc-bsb-http-chunked.spec @@ -0,0 +1,104 @@ +%global pkg_name bsb-http-chunked +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.0.0.4 +Release: 1 +Summary: Chunked HTTP transfer encoding for bytestring builders +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-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-rpm-macros +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-attoparsec-prof +BuildRequires: ghc-blaze-builder-devel +BuildRequires: ghc-blaze-builder-prof +BuildRequires: ghc-doctest-devel +BuildRequires: ghc-doctest-prof +BuildRequires: ghc-hedgehog-devel +BuildRequires: ghc-hedgehog-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hedgehog-devel +BuildRequires: ghc-tasty-hedgehog-prof +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-hunit-prof +BuildRequires: ghc-tasty-prof +%endif + +%description +This library contains functions for encoding [bytestring +builders](http://hackage.haskell.org/package/bytestring/docs/Data-ByteString-Builder.html#t:Builder) +for [chunked HTTP/1.1 +transfer](https://en.wikipedia.org/wiki/Chunked_transfer_encoding). + +This functionality was extracted from the +[blaze-builder](http://hackage.haskell.org/package/blaze-builder) package. + +%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 + +%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 0.0.0.4-1 +- Initial packaging (Version 0.0.0.4) diff --git a/sources b/sources new file mode 100644 index 0000000..a4353e4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +3d0b501251431d1f09d18a6700e58d9d bsb-http-chunked-0.0.0.4.tar.gz -- cgit v1.2.3