From bb1655ea7daaf3b1114a719dc19d6b69e28aefa7 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 21 Feb 2017 21:35:19 +0900 Subject: [PATCH] update to 0.4.0.2 --- .gitignore | 1 + ghc-blaze-builder.spec | 47 +++++++++++++++++++++++++++++++----------- sources | 2 +- 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 36f5f4f..8f53bf7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /blaze-builder-0.3.1.1.tar.gz /blaze-builder-0.3.3.2.tar.gz /blaze-builder-0.3.3.4.tar.gz +/blaze-builder-0.4.0.2.tar.gz diff --git a/ghc-blaze-builder.spec b/ghc-blaze-builder.spec index bce1197..56c116c 100644 --- a/ghc-blaze-builder.spec +++ b/ghc-blaze-builder.spec @@ -1,32 +1,48 @@ -# generated by cabal-rpm-0.9.12 +# generated by cabal-rpm-0.11.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name blaze-builder +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests Name: ghc-%{pkg_name} -Version: 0.3.3.4 -Release: 5%{?dist} +Version: 0.4.0.2 +Release: 1%{?dist} Summary: Efficient buffered output License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} -Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-deepseq-devel BuildRequires: ghc-text-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +BuildRequires: ghc-utf8-string-devel +%endif # End cabal-rpm deps %description -This library provides an abstraction of buffered output of byte streams and -several convenience functions to exploit it. For example, it allows to -efficiently serialize Haskell values to lazy bytestrings with a large average -chunk size. The large average chunk size allows to make good use of cache -prefetching in later processing steps (e.g. compression) and reduces the system -call overhead when writing the resulting lazy bytestring to a file or sending -it over the network. +This library provides an implementation of the older blaze-builder interface in +terms of the new builder that shipped with bytestring-0.10.4.0 + +This implementation is mostly intended as a bridge to the new builder, so that +code that uses the old interface can interoperate with code that uses the new +implementation. Note that no attempt has been made to preserve the old internal +modules, so code that has these dependencies cannot use this interface. + +New code should, for the most part, use the new interface. However, this module +does implement a chunked HTTP encoding, which is not otherwise implemented +(yet?) with the new builder. %package devel @@ -42,7 +58,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%setup -q -n %{pkgver} %build @@ -53,6 +69,10 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_lib_install +%check +%cabal_test + + %post devel %ghc_pkg_recache @@ -70,6 +90,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Tue Feb 21 2017 Jens Petersen - 0.4.0.2-1 +- update to 0.4.0.2 + * Fri Feb 10 2017 Fedora Release Engineering - 0.3.3.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index ee4d928..0e36179 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e907804abf9078826cb62f7fc2a2f39f blaze-builder-0.3.3.4.tar.gz +SHA512 (blaze-builder-0.4.0.2.tar.gz) = ca0390d1e31d1fb65f5739a15b4604e67d01aa1ba2f98ac6e741b277e64e79e8d65eca581aba405b65136261654f3e116c21ae4b4018d74a784e481c2ee9d3a0