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 bf286d0..c6cac15 100644 --- a/ghc-blaze-builder.spec +++ b/ghc-blaze-builder.spec @@ -2,33 +2,45 @@ %global pkg_name blaze-builder -# no useful debuginfo for Haskell packages without C sources -%global debug_package %{nil} +%bcond_with tests Name: ghc-%{pkg_name} -Version: 0.3.3.4 -Release: 3%{?dist} +Version: 0.4.0.2 +Release: 1%{?dist} Summary: Efficient buffered output License: BSD -URL: https://hackage.haskell.org/package/%{pkg_name} +Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.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 @@ -54,6 +66,14 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install +rm %{buildroot}%{ghc_pkgdocdir}/LICENSE + + +%check +%if %{with tests} +%cabal test +%endif + %post devel %ghc_pkg_recache @@ -64,7 +84,7 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files @@ -72,6 +92,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Thu Jun 23 2016 Jens Petersen - 0.4.0.2-1 +- update to 0.4.0.2 + * Wed Feb 03 2016 Fedora Release Engineering - 0.3.3.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index ee4d928..6bf97f5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e907804abf9078826cb62f7fc2a2f39f blaze-builder-0.3.3.4.tar.gz +c2a58840d974e73b6acae0aeb3836fb1 blaze-builder-0.4.0.2.tar.gz