From 7fe821634010eb373d3bfa1c23d38b3d6ee7cb54 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 22 Jun 2020 11:04:21 +0800 Subject: [PATCH] revised .cabal file --- bsb-http-chunked-0.0.0.4.cabal | 80 ++++++++++++++++++++++++++++++++++ ghc-bsb-http-chunked.spec | 2 + 2 files changed, 82 insertions(+) create mode 100644 bsb-http-chunked-0.0.0.4.cabal diff --git a/bsb-http-chunked-0.0.0.4.cabal b/bsb-http-chunked-0.0.0.4.cabal new file mode 100644 index 0000000..cf7ba71 --- /dev/null +++ b/bsb-http-chunked-0.0.0.4.cabal @@ -0,0 +1,80 @@ +Name: bsb-http-chunked +Version: 0.0.0.4 +x-revision: 2 +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.11 + 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 index f12ab82..2e0ba89 100644 --- a/ghc-bsb-http-chunked.spec +++ b/ghc-bsb-http-chunked.spec @@ -15,6 +15,7 @@ License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -69,6 +70,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup