Accepting request 1184206 from devel:languages:haskell
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1184206 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-zlib?expand=0&rev=30
This commit is contained in:
commit
7da0f17dec
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 23 13:09:06 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.3.0 revision 5.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 24 08:59:49 UTC 2023 - Peter Simons <psimons@suse.com>
|
Tue Oct 24 08:59:49 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-zlib
|
# spec file for package ghc-zlib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,7 +26,7 @@ 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/4.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
|
||||||
|
280
zlib.cabal
280
zlib.cabal
@ -1,140 +1,140 @@
|
|||||||
cabal-version: >= 1.10
|
cabal-version: >= 1.10
|
||||||
name: zlib
|
name: zlib
|
||||||
version: 0.6.3.0
|
version: 0.6.3.0
|
||||||
x-revision: 4
|
x-revision: 5
|
||||||
|
|
||||||
copyright: (c) 2006-2016 Duncan Coutts
|
copyright: (c) 2006-2016 Duncan Coutts
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Duncan Coutts <duncan@community.haskell.org>
|
author: Duncan Coutts <duncan@community.haskell.org>
|
||||||
maintainer: Duncan Coutts <duncan@community.haskell.org>, Andrew Lelechenko <andrew.lelechenko@gmail.com>, Emily Pillmore <emilypi@cohomolo.gy>, Herbert Valerio Riedel <hvr@gnu.org>
|
maintainer: Duncan Coutts <duncan@community.haskell.org>, Andrew Lelechenko <andrew.lelechenko@gmail.com>, Emily Pillmore <emilypi@cohomolo.gy>, Herbert Valerio Riedel <hvr@gnu.org>
|
||||||
bug-reports: https://github.com/haskell/zlib/issues
|
bug-reports: https://github.com/haskell/zlib/issues
|
||||||
category: Codec
|
category: Codec
|
||||||
synopsis: Compression and decompression in the gzip and zlib formats
|
synopsis: Compression and decompression in the gzip and zlib formats
|
||||||
description: This package provides a pure interface for compressing and
|
description: This package provides a pure interface for compressing and
|
||||||
decompressing streams of data represented as lazy
|
decompressing streams of data represented as lazy
|
||||||
'ByteString's. It uses the
|
'ByteString's. It uses the
|
||||||
<https://en.wikipedia.org/wiki/Zlib zlib C library>
|
<https://en.wikipedia.org/wiki/Zlib zlib C library>
|
||||||
so it has high performance. It supports the \"zlib\",
|
so it has high performance. It supports the \"zlib\",
|
||||||
\"gzip\" and \"raw\" compression formats.
|
\"gzip\" and \"raw\" compression formats.
|
||||||
.
|
.
|
||||||
It provides a convenient high level API suitable for most
|
It provides a convenient high level API suitable for most
|
||||||
tasks and for the few cases where more control is needed it
|
tasks and for the few cases where more control is needed it
|
||||||
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 == 7.0.4
|
||||||
, GHC == 7.2.2
|
, GHC == 7.2.2
|
||||||
, GHC == 7.4.2
|
, GHC == 7.4.2
|
||||||
, GHC == 7.6.3
|
, GHC == 7.6.3
|
||||||
, GHC == 7.8.4
|
, GHC == 7.8.4
|
||||||
, GHC == 7.10.3
|
, GHC == 7.10.3
|
||||||
, GHC == 8.0.2
|
, 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
|
||||||
, GHC == 8.8.4
|
, GHC == 8.8.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.7
|
||||||
, GHC == 9.6.3
|
, GHC == 9.6.3
|
||||||
, GHC == 9.8.1
|
, GHC == 9.8.1
|
||||||
|
|
||||||
extra-source-files: changelog
|
extra-source-files: changelog
|
||||||
README.md
|
README.md
|
||||||
-- zlib C sources (for Windows)
|
-- zlib C sources (for Windows)
|
||||||
cbits/crc32.h cbits/inffast.h cbits/inflate.h
|
cbits/crc32.h cbits/inffast.h cbits/inflate.h
|
||||||
cbits/trees.h cbits/deflate.h cbits/inffixed.h
|
cbits/trees.h cbits/deflate.h cbits/inffixed.h
|
||||||
cbits/inftrees.h cbits/zutil.h cbits/gzguts.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
|
||||||
test/data/not-gzip test/data/two-files.gz
|
test/data/not-gzip test/data/two-files.gz
|
||||||
-- demo programs:
|
-- demo programs:
|
||||||
examples/gzip.hs examples/gunzip.hs
|
examples/gzip.hs examples/gunzip.hs
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
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: 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: False
|
default: False
|
||||||
manual: True
|
manual: True
|
||||||
description: Use @pkg-config(1)@ 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 the bundled zlib C sources. Requires pkg-config to be False.
|
description: Use the bundled zlib C sources. Requires pkg-config to be False.
|
||||||
For windows, this is the default.
|
For windows, this is the default.
|
||||||
|
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules: Codec.Compression.GZip,
|
exposed-modules: Codec.Compression.GZip,
|
||||||
Codec.Compression.Zlib,
|
Codec.Compression.Zlib,
|
||||||
Codec.Compression.Zlib.Raw,
|
Codec.Compression.Zlib.Raw,
|
||||||
Codec.Compression.Zlib.Internal
|
Codec.Compression.Zlib.Internal
|
||||||
other-modules: Codec.Compression.Zlib.Stream,
|
other-modules: Codec.Compression.Zlib.Stream,
|
||||||
Codec.Compression.Zlib.ByteStringCompat
|
Codec.Compression.Zlib.ByteStringCompat
|
||||||
|
|
||||||
if impl(ghc < 7)
|
if impl(ghc < 7)
|
||||||
default-language: Haskell98
|
default-language: Haskell98
|
||||||
default-extensions: PatternGuards
|
default-extensions: PatternGuards
|
||||||
else
|
else
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
|
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
|
||||||
DeriveDataTypeable
|
DeriveDataTypeable
|
||||||
if impl(ghc >= 7.2)
|
if impl(ghc >= 7.2)
|
||||||
other-extensions: DeriveGeneric
|
other-extensions: DeriveGeneric
|
||||||
if impl(ghc >= 7.6)
|
if impl(ghc >= 7.6)
|
||||||
other-extensions: CApiFFI
|
other-extensions: CApiFFI
|
||||||
|
|
||||||
build-depends: base >= 4 && < 4.20,
|
build-depends: base >= 4 && < 4.21,
|
||||||
bytestring >= 0.9 && < 0.13
|
bytestring >= 0.9 && < 0.13
|
||||||
if impl(ghc >= 7.0 && < 8.0.3)
|
if impl(ghc >= 7.0 && < 8.0.3)
|
||||||
build-depends: ghc-prim
|
build-depends: ghc-prim
|
||||||
|
|
||||||
includes: zlib.h
|
includes: zlib.h
|
||||||
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)
|
if flag(pkg-config) && !impl(ghcjs) && !os(ghcjs)
|
||||||
-- NB: pkg-config is available on windows as well when using msys2
|
-- NB: pkg-config is available on windows as well when using msys2
|
||||||
pkgconfig-depends: zlib
|
pkgconfig-depends: zlib
|
||||||
else
|
else
|
||||||
-- don't use pkg-config
|
-- don't use pkg-config
|
||||||
if !os(windows) && !flag(bundled-c-zlib) && !impl(ghcjs) && !os(ghcjs)
|
if !os(windows) && !flag(bundled-c-zlib) && !impl(ghcjs) && !os(ghcjs)
|
||||||
-- Normally we use the the standard system zlib.
|
-- Normally we use the the standard system zlib.
|
||||||
extra-libraries: z
|
extra-libraries: z
|
||||||
else
|
else
|
||||||
-- However for the benefit of users of Windows (which does not have zlib
|
-- 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
|
-- 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
|
c-sources: cbits/adler32.c cbits/compress.c cbits/crc32.c
|
||||||
cbits/deflate.c cbits/infback.c
|
cbits/deflate.c cbits/infback.c
|
||||||
cbits/inffast.c cbits/inflate.c cbits/inftrees.c
|
cbits/inffast.c cbits/inflate.c cbits/inftrees.c
|
||||||
cbits/trees.c cbits/uncompr.c cbits/zutil.c
|
cbits/trees.c cbits/uncompr.c cbits/zutil.c
|
||||||
include-dirs: cbits
|
include-dirs: cbits
|
||||||
install-includes: zlib.h zconf.h
|
install-includes: zlib.h zconf.h
|
||||||
|
|
||||||
test-suite tests
|
test-suite tests
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: Test.hs
|
main-is: Test.hs
|
||||||
other-modules: Utils,
|
other-modules: Utils,
|
||||||
Test.Codec.Compression.Zlib.Internal,
|
Test.Codec.Compression.Zlib.Internal,
|
||||||
Test.Codec.Compression.Zlib.Stream
|
Test.Codec.Compression.Zlib.Stream
|
||||||
hs-source-dirs: test
|
hs-source-dirs: test
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
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.11
|
tasty-quickcheck >= 0.8 && < 0.12
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
Loading…
Reference in New Issue
Block a user