Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

5 changed files with 61 additions and 71 deletions

View File

@ -1,17 +1,3 @@
-------------------------------------------------------------------
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,21 +20,20 @@
%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.7.1.0 Version: 0.6.3.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/2.cabal#/%{pkg_name}.cabal Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/5.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: pkgconfig BuildRequires: zlib-devel
BuildRequires: pkgconfig(zlib)
ExcludeArch: %{ix86} ExcludeArch: %{ix86}
%if %{with tests} %if %{with tests}
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
@ -59,8 +58,7 @@ 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: pkgconfig Requires: zlib-devel
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}
@ -106,7 +104,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.md examples %doc README.md changelog 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) Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
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.7.1.0 version: 0.6.3.0
x-revision: 2 x-revision: 5
copyright: (c) 2006-2016 Duncan Coutts copyright: (c) 2006-2016 Duncan Coutts
license: BSD3 license: BSD3
@ -23,7 +23,13 @@ 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 == 8.0.2 tested-with: GHC == 7.0.4
, 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
@ -31,15 +37,16 @@ tested-with: GHC == 8.0.2
, 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.8 , GHC == 9.4.7
, GHC == 9.6.5 , GHC == 9.6.3
, GHC == 9.8.2 , GHC == 9.8.1
, GHC == 9.10.1
extra-source-files: changelog.md extra-source-files: changelog
README.md README.md
-- extra headers -- zlib C sources (for Windows)
cbits-extra/hs-zlib.h cbits/crc32.h cbits/inffast.h cbits/inflate.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
@ -52,23 +59,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: True default: False
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: True default: False
manual: False manual: True
description: Use @pkg-config@ executable to locate foreign @zlib@ library. description: Use @pkg-config(1)@ to locate foreign @zlib@ library.
flag bundled-c-zlib flag bundled-c-zlib
default: False default: False
manual: True manual: True
description: Use @zlib-clib@ package with C sources instead of a system library. description: Use the bundled zlib C sources. Requires pkg-config to be False.
C sources are used for GHCJS and WASM unconditionally For windows, this is the default.
and on Windows unless @pkg-config@ flag is on.
library library
exposed-modules: Codec.Compression.GZip, exposed-modules: Codec.Compression.GZip,
@ -78,46 +85,45 @@ library
other-modules: Codec.Compression.Zlib.Stream, other-modules: Codec.Compression.Zlib.Stream,
Codec.Compression.Zlib.ByteStringCompat Codec.Compression.Zlib.ByteStringCompat
default-language: Haskell2010 if impl(ghc < 7)
default-language: Haskell98
default-extensions: PatternGuards
else
default-language: Haskell2010
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns, other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
DeriveDataTypeable DeriveDataTypeable
other-extensions: DeriveGeneric if impl(ghc >= 7.2)
other-extensions: CApiFFI other-extensions: DeriveGeneric
if impl(ghc >= 7.6)
other-extensions: CApiFFI
build-depends: base >= 4.9 && < 4.22, build-depends: base >= 4 && < 4.21,
bytestring >= 0.9 && < 0.13 bytestring >= 0.9 && < 0.13
if impl(ghc >= 7.0 && < 8.0.3)
build-depends: ghc-prim
build-tools: hsc2hs >= 0.67 && < 0.69 includes: zlib.h
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)
-- Cross-platform builds (such as JS and WASM) must have access -- NB: pkg-config is available on windows as well when using msys2
-- to C sources, so using zlib-clib unconditionally. pkgconfig-depends: zlib
--
-- 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
if flag(pkg-config) -- don't use pkg-config
-- NB: pkg-config is available on windows as well when using msys2 if !os(windows) && !flag(bundled-c-zlib) && !impl(ghcjs) && !os(ghcjs)
pkgconfig-depends: zlib -- Normally we use the the standard system zlib.
else
extra-libraries: z extra-libraries: z
else
-- However for the benefit of users of Windows (which does not have zlib
-- 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
@ -130,5 +136,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 && < 1 tasty-quickcheck >= 0.8 && < 0.12
ghc-options: -Wall ghc-options: -Wall