SHA256
1
0
forked from pool/ghc-zlib

Compare commits

...

2 Commits

5 changed files with 71 additions and 61 deletions

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sun Nov 24 20:39:41 UTC 2024 - Peter Simons <psimons@suse.com>
- Update zlib to version 0.7.1.0 revision 2.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Wed Jun 26 20:42:43 UTC 2024 - Peter Simons <psimons@suse.com>
- Update zlib to version 0.7.1.0 revision 1.
Upstream has renamed and modified the change log file(s) in this
release. Unfortunately, the automatic updater cannot reliable
determine relevant entries for this release.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jun 23 13:09:06 UTC 2024 - Peter Simons <psimons@suse.com> Sun Jun 23 13:09:06 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@ -20,20 +20,21 @@
%global pkgver %{pkg_name}-%{version} %global pkgver %{pkg_name}-%{version}
%bcond_with tests %bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.6.3.0 Version: 0.7.1.0
Release: 0 Release: 0
Summary: Compression and decompression in the gzip and zlib formats Summary: Compression and decompression in the gzip and zlib formats
License: BSD-2-Clause License: BSD-2-Clause
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 Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/5.cabal#/%{pkg_name}.cabal Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
BuildRequires: zlib-devel BuildRequires: pkgconfig
BuildRequires: pkgconfig(zlib)
ExcludeArch: %{ix86} ExcludeArch: %{ix86}
%if %{with tests} %if %{with tests}
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
@ -58,7 +59,8 @@ set.
Summary: Haskell %{pkg_name} library development files Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version} Requires: ghc-compiler = %{ghc_version}
Requires: zlib-devel Requires: pkgconfig
Requires: pkgconfig(zlib)
Requires(post): ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version}
@ -104,7 +106,7 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%license LICENSE %license LICENSE
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
%doc README.md changelog examples %doc README.md changelog.md examples
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files %files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE %license LICENSE

BIN
zlib-0.6.3.0.tar.gz (Stored with Git LFS)

Binary file not shown.

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

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

View File

@ -1,7 +1,7 @@
cabal-version: >= 1.10 cabal-version: >= 1.10
name: zlib name: zlib
version: 0.6.3.0 version: 0.7.1.0
x-revision: 5 x-revision: 2
copyright: (c) 2006-2016 Duncan Coutts copyright: (c) 2006-2016 Duncan Coutts
license: BSD3 license: BSD3
@ -23,13 +23,7 @@ description: This package provides a pure interface for compressing and
provides access to the full zlib feature set. provides access to the full zlib feature set.
build-type: Simple build-type: Simple
tested-with: GHC == 7.0.4 tested-with: GHC == 8.0.2
, GHC == 7.2.2
, GHC == 7.4.2
, GHC == 7.6.3
, GHC == 7.8.4
, GHC == 7.10.3
, GHC == 8.0.2
, GHC == 8.2.2 , GHC == 8.2.2
, GHC == 8.4.4 , GHC == 8.4.4
, GHC == 8.6.5 , GHC == 8.6.5
@ -37,16 +31,15 @@ tested-with: GHC == 7.0.4
, GHC == 8.10.7 , GHC == 8.10.7
, GHC == 9.0.2 , GHC == 9.0.2
, GHC == 9.2.8 , GHC == 9.2.8
, GHC == 9.4.7 , GHC == 9.4.8
, GHC == 9.6.3 , GHC == 9.6.5
, GHC == 9.8.1 , GHC == 9.8.2
, GHC == 9.10.1
extra-source-files: changelog extra-source-files: changelog.md
README.md README.md
-- zlib C sources (for Windows) -- extra headers
cbits/crc32.h cbits/inffast.h cbits/inflate.h cbits-extra/hs-zlib.h
cbits/trees.h cbits/deflate.h cbits/inffixed.h
cbits/inftrees.h cbits/zutil.h cbits/gzguts.h
-- test data files -- test data files
test/data/bad-crc.gz test/data/custom-dict.zlib test/data/bad-crc.gz test/data/custom-dict.zlib
test/data/custom-dict.zlib-dict test/data/hello.gz test/data/custom-dict.zlib-dict test/data/hello.gz
@ -59,23 +52,23 @@ source-repository head
location: https://github.com/haskell/zlib.git location: https://github.com/haskell/zlib.git
flag non-blocking-ffi flag non-blocking-ffi
default: False default: True
manual: True manual: True
description: The (de)compression calls can sometimes take a long time, which description: The (de)compression calls can sometimes take a long time, which
prevents other Haskell threads running. Enabling this flag prevents other Haskell threads running. Enabling this flag
avoids this unfairness, but with greater overall cost. avoids this unfairness, but with greater overall cost.
flag pkg-config flag pkg-config
default: False default: True
manual: True manual: False
description: Use @pkg-config(1)@ to locate foreign @zlib@ library. description: Use @pkg-config@ executable to locate foreign @zlib@ library.
flag bundled-c-zlib flag bundled-c-zlib
default: False default: False
manual: True manual: True
description: Use the bundled zlib C sources. Requires pkg-config to be False. description: Use @zlib-clib@ package with C sources instead of a system library.
For windows, this is the default. C sources are used for GHCJS and WASM unconditionally
and on Windows unless @pkg-config@ flag is on.
library library
exposed-modules: Codec.Compression.GZip, exposed-modules: Codec.Compression.GZip,
@ -85,45 +78,46 @@ library
other-modules: Codec.Compression.Zlib.Stream, other-modules: Codec.Compression.Zlib.Stream,
Codec.Compression.Zlib.ByteStringCompat Codec.Compression.Zlib.ByteStringCompat
if impl(ghc < 7) default-language: Haskell2010
default-language: Haskell98
default-extensions: PatternGuards
else
default-language: Haskell2010
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns, other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
DeriveDataTypeable DeriveDataTypeable
if impl(ghc >= 7.2) other-extensions: DeriveGeneric
other-extensions: DeriveGeneric other-extensions: CApiFFI
if impl(ghc >= 7.6)
other-extensions: CApiFFI
build-depends: base >= 4 && < 4.21, build-depends: base >= 4.9 && < 4.22,
bytestring >= 0.9 && < 0.13 bytestring >= 0.9 && < 0.13
if impl(ghc >= 7.0 && < 8.0.3)
build-depends: ghc-prim
includes: zlib.h build-tools: hsc2hs >= 0.67 && < 0.69
if os(windows) && impl(ghc < 8.4)
build-tools: hsc2hs < 0.68.5
-- GHC 7 ships hsc2hs-0.67
-- use `includes:` to include them when compiling
includes: zlib.h hs-zlib.h
include-dirs: cbits-extra
c-sources: cbits-extra/hs-zlib.c
ghc-options: -Wall -fwarn-tabs ghc-options: -Wall -fwarn-tabs
if flag(non-blocking-ffi) if flag(non-blocking-ffi)
cpp-options: -DNON_BLOCKING_FFI cpp-options: -DNON_BLOCKING_FFI
if flag(pkg-config) && !impl(ghcjs) && !os(ghcjs)
-- NB: pkg-config is available on windows as well when using msys2 -- Cross-platform builds (such as JS and WASM) must have access
pkgconfig-depends: zlib -- to C sources, so using zlib-clib unconditionally.
--
-- On Windows, zlib is shipped as part of GHC's mingw/lib directory,
-- which GHC always includes in its linker search path. However,
-- there is no guarantee that zlib1.dll (the corresponding shared library)
-- will be available on the user's PATH at runtime, making it risky to depend upon
-- (see https://github.com/haskell/zlib/issues/65 for what can go wrong).
-- Thus, we resort to zlib-clib unless pkg-config is available.
if flag(bundled-c-zlib) || impl(ghcjs) || os(ghcjs) || arch(wasm32) || (!flag(pkg-config) && os(windows))
build-depends: zlib-clib < 2
else else
-- don't use pkg-config if flag(pkg-config)
if !os(windows) && !flag(bundled-c-zlib) && !impl(ghcjs) && !os(ghcjs) -- NB: pkg-config is available on windows as well when using msys2
-- Normally we use the the standard system zlib. pkgconfig-depends: zlib
extra-libraries: z
else else
-- However for the benefit of users of Windows (which does not have zlib extra-libraries: z
-- by default) we bundle a complete copy of the C sources of zlib-1.2.11
c-sources: cbits/adler32.c cbits/compress.c cbits/crc32.c
cbits/deflate.c cbits/infback.c
cbits/inffast.c cbits/inflate.c cbits/inftrees.c
cbits/trees.c cbits/uncompr.c cbits/zutil.c
include-dirs: cbits
install-includes: zlib.h zconf.h
test-suite tests test-suite tests
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
@ -136,5 +130,5 @@ test-suite tests
build-depends: base, bytestring, zlib, build-depends: base, bytestring, zlib,
QuickCheck == 2.*, QuickCheck == 2.*,
tasty >= 0.8 && < 1.6, tasty >= 0.8 && < 1.6,
tasty-quickcheck >= 0.8 && < 0.12 tasty-quickcheck >= 0.8 && < 1
ghc-options: -Wall ghc-options: -Wall