From 048f14ccbaf361e5aec72d0a0f90559d22152c42cb9b47499eec8ce005afa185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 6 Jan 2016 09:15:41 +0000 Subject: [PATCH] Accepting request 352160 from devel:languages:haskell:lts - update to 0.6.1.1 - regenerated spec file with cabal-rpm * Support for concatenated gzip files (multiple back-to-back streams) * Fixed warnings with new GHC * Fixed testsuite * New incremental interface for compression and decompression * Provide access to unconsumed trailing data * Simplified structured error type, and instance of Exception * Fixed memory leak of zlib z_stream C structure * More derivied instances (Eq, Show, Typeable, Generic) OBS-URL: https://build.opensuse.org/request/show/352160 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-zlib?expand=0&rev=16 --- ghc-zlib.changes | 14 +++++++++ ghc-zlib.spec | 71 +++++++++++++++++++++++++++++++-------------- zlib-0.5.4.2.tar.gz | 3 -- zlib-0.6.1.1.tar.gz | 3 ++ 4 files changed, 67 insertions(+), 24 deletions(-) delete mode 100644 zlib-0.5.4.2.tar.gz create mode 100644 zlib-0.6.1.1.tar.gz diff --git a/ghc-zlib.changes b/ghc-zlib.changes index 0105279..73d1fdb 100644 --- a/ghc-zlib.changes +++ b/ghc-zlib.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Wed Dec 30 11:25:25 UTC 2015 - mimi.vx@gmail.com + +- update to 0.6.1.1 +- regenerated spec file with cabal-rpm +* Support for concatenated gzip files (multiple back-to-back streams) +* Fixed warnings with new GHC +* Fixed testsuite +* New incremental interface for compression and decompression +* Provide access to unconsumed trailing data +* Simplified structured error type, and instance of Exception +* Fixed memory leak of zlib z_stream C structure +* More derivied instances (Eq, Show, Typeable, Generic) + ------------------------------------------------------------------- Sat Apr 11 09:09:18 UTC 2015 - mimi.vx@gmail.com diff --git a/ghc-zlib.spec b/ghc-zlib.spec index ca9fd40..095ed1d 100644 --- a/ghc-zlib.spec +++ b/ghc-zlib.spec @@ -15,66 +15,95 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - %global pkg_name zlib -%global common_summary Haskell gzip and zlib formats library - -%global common_description This package provides a pure interface for compressing and decompressing streams of data represented as lazy ByteStrings. It uses the zlib C library so it has high performance. It supports the "zlib", "gzip" and "raw" compression formats. +%bcond_with tests Name: ghc-zlib -Version: 0.5.4.2 -Release: 0 -Summary: %{common_summary} -License: BSD-2-Clause +Version: 0.6.1.1 +Release: 0 +Summary: Compression and decompression in the gzip and zlib formats Group: System/Libraries +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 BuildRoot: %{_tmppath}/%{name}-%{version}-build -# BEGIN cabal2spec -Url: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz + BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-bytestring-devel BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-bytestring-devel BuildRequires: zlib-devel -# END cabal2spec +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-quickcheck-devel +%endif +# End cabal-rpm deps %description -%{common_description} +This package provides a pure interface for compressing and decompressing +streams of data represented as lazy 'ByteString's. It uses the zlib C library +so it has high performance. It supports the "zlib", "gzip" and "raw" +compression formats. + +It provides a convenient high level API suitable for most tasks and for the few +cases where more control is needed it provides access to the full zlib feature +set. + %package devel Summary: Haskell %{pkg_name} library development files -Group: Development/Languages/Other -Requires: ghc-compiler -Requires: zlib-devel -Requires(post): ghc-compiler -Requires(postun): ghc-compiler +Group: Development/Libraries/Other +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name} = %{version}-%{release} +# Begin cabal-rpm deps: +Requires: zlib-devel +# End cabal-rpm deps %description devel -%{common_description} -This package contains the development files. +This package provides the Haskell %{pkg_name} library development files. + %prep %setup -q -n %{pkg_name}-%{version} + %build %ghc_lib_build + %install %ghc_lib_install + +%check +%if %{with tests} +%cabal test +%endif + + %post devel %ghc_pkg_recache + %postun devel %ghc_pkg_recache + %files -f %{name}.files %defattr(-,root,root,-) %doc LICENSE + %files devel -f %{name}-devel.files %defattr(-,root,root,-) +%doc examples + %changelog diff --git a/zlib-0.5.4.2.tar.gz b/zlib-0.5.4.2.tar.gz deleted file mode 100644 index 57857a3..0000000 --- a/zlib-0.5.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75d617d8a77d85ba5a0d69e42c2cd5371b56140b5fb028be3e75bff1cfd41096 -size 127818 diff --git a/zlib-0.6.1.1.tar.gz b/zlib-0.6.1.1.tar.gz new file mode 100644 index 0000000..b651c59 --- /dev/null +++ b/zlib-0.6.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5f5b4285473657a7997d74f7642f3e7bda40f92c3c5d49471a899e27a4ba735 +size 142902