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
This commit is contained in:
Ondřej Súkup 2016-01-06 09:15:41 +00:00 committed by Git OBS Bridge
parent e9419f2957
commit 048f14ccba
4 changed files with 67 additions and 24 deletions

View File

@ -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

View File

@ -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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75d617d8a77d85ba5a0d69e42c2cd5371b56140b5fb028be3e75bff1cfd41096
size 127818

3
zlib-0.6.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5f5b4285473657a7997d74f7642f3e7bda40f92c3c5d49471a899e27a4ba735
size 142902