forked from pool/ghc-zlib
Compare commits
85 Commits
Author | SHA256 | Date | |
---|---|---|---|
7da0f17dec | |||
fe57c6c2bf | |||
231c648c3b | |||
efea2681e3 | |||
9e776148a4 | |||
bbfdd8b089 | |||
b226fd9915 | |||
da6b9db7a5 | |||
c9ce6a906e | |||
32c528d7de | |||
3433410da3 | |||
e93b25e044 | |||
0025a14a38 | |||
ade9adae13 | |||
96bbefa846 | |||
7c21caa459 | |||
e4693a9b45 | |||
af26aad0db | |||
6655b0c9bf | |||
7c874bec49 | |||
b81e47bf0b | |||
5b4d5e8bfc | |||
f6abc95521 | |||
5fc38bbfed | |||
8fa15db30d | |||
8a908a9ffb | |||
7201198fc4 | |||
101bc9365e | |||
880c114662 | |||
0bf2129f72 | |||
b57805bd3a | |||
20fb5d3efa | |||
074f8f3ebd | |||
f387137b5e | |||
612fb10576 | |||
35ad8007cb | |||
affb213c1a | |||
66b280422d | |||
58964444c9 | |||
9887f74f87 | |||
5b54b8f8d1 | |||
8b0427e785 | |||
abfbb2b75b | |||
0057dd4003 | |||
68b3b55d1e | |||
91eae74e5b | |||
6180b8a55e | |||
ece6c01931 | |||
8cdcb89846 | |||
b07c7287d3 | |||
c1f143cd38 | |||
774c96e239 | |||
05876c95e2 | |||
d457062291 | |||
6cd3c61f40 | |||
2b2685ebea | |||
aafba721a2 | |||
3458054a64 | |||
51b6a585ab | |||
dc354aeffb | |||
cd05d5caa3 | |||
0308aae302 | |||
5a5e2031b2 | |||
1d35be6d10 | |||
38f8e33fb9 | |||
24a19a3381 | |||
ff5ff9af04 | |||
9b8cc15b77 | |||
ad5033b78f | |||
048f14ccba | |||
|
00dbc33594 | ||
|
e9419f2957 | ||
229f7fc541 | |||
|
0ac3e21b15 | ||
|
4889aa2710 | ||
|
f318b4a7b5 | ||
|
22f4bf9408 | ||
|
ca0e2ecbcc | ||
|
f0e13f556a | ||
|
4402f4e828 | ||
|
14ccd359ea | ||
|
4ab47d74b0 | ||
|
b683afa2b1 | ||
|
b745dd8fbf | ||
|
df800b599f |
218
ghc-zlib.changes
Normal file
218
ghc-zlib.changes
Normal file
@@ -0,0 +1,218 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.3.0 revision 4.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 10 19:26:25 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.3.0 revision 3.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 7 18:00:43 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.3.0 revision 2.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 30 17:09:14 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 1 00:15:21 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.3.0 revision 1.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 4 00:39:44 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.3.0.
|
||||||
|
Upstream has edited the change log file since the last release in
|
||||||
|
a non-trivial way, i.e. they did more than just add a new entry
|
||||||
|
at the top. You can review the file at:
|
||||||
|
http://hackage.haskell.org/package/zlib-0.6.3.0/src/changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 7 08:16:24 UTC 2021 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.2.3 revision 1.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 23 10:03:49 UTC 2021 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.2.3.
|
||||||
|
0.6.2.3 Emily Pillmore <emilypi@cohomolo.gy> February 2021
|
||||||
|
|
||||||
|
* Add support for bytestring-0.11.0.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- disable %{ix86} build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 18 10:46:49 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Replace %setup -q with the more modern %autosetup macro.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 4 09:04:41 UTC 2020 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.2.2.
|
||||||
|
0.6.2.2 Julian Ospald <hasufell@posteo.de> August 2020
|
||||||
|
|
||||||
|
* Bump bundled zlib to 1.2.11, fixes #26
|
||||||
|
* New build flag to force use of the bundled zlib C sources, #31
|
||||||
|
* Simpler build support for ghcjs, #25
|
||||||
|
* Add support for GHC 8.10 / base-4.14, #29
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 16 11:14:55 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Re-generate file with latest version of spec-cleaner.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 7 08:08:29 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update Cabal file to get more accurate dependency information.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 8 16:15:18 UTC 2019 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Drop obsolete group attributes.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 27 02:01:52 UTC 2019 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.2.1.
|
||||||
|
See also http://pvp.haskell.org/faq
|
||||||
|
|
||||||
|
0.6.2.1 Herbert Valerio Riedel <hvr@gnu.org> August 2019
|
||||||
|
|
||||||
|
* Add support for GHC 8.8 / base-4.13
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 20 11:32:17 UTC 2018 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Use https URL to refer to bugs.opensuse.org.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 18 14:26:49 UTC 2018 - psimons@suse.com
|
||||||
|
|
||||||
|
- Cosmetic: replace tabs with blanks, strip trailing white space,
|
||||||
|
and update copyright headers with spec-cleaner.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update zlib to version 0.6.2.
|
||||||
|
* New cabal flag 'pkg-config' for discovering 'zlib` via pkg-config(1) (#16)
|
||||||
|
* Use CApiFFI where available for cross-compile friendliness (#14)
|
||||||
|
* Change the window bits range from 8..15 to 9..15 (#11)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com
|
||||||
|
|
||||||
|
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 30 16:26:14 UTC 2016 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.6.1.2 with cabal2obs.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 10 17:32:48 UTC 2016 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.6.1.1 revision 3 with cabal2obs.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
|
||||||
|
- update to 0.5.4.2
|
||||||
|
* no upstreqm changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 12 06:54:28 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- update copyright notice (year) in spec file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 23 00:31:27 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- enable PowerPC builds
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 6 10:45:21 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- update to 0.5.4.1
|
||||||
|
* no changelog
|
||||||
|
- part of Haskell Platform 2013.2 update
|
||||||
|
- more transparent packaging (fewer macros)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 27 12:28:22 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- fix license tag (intentionally empty 3rd clause)
|
||||||
|
- expand macro in name tag (help factory-auto)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 17 14:58:26 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- make service localonly for Factory submission
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 2 11:21:27 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- update to 0.5.4.0 from upstream (no changelog)
|
||||||
|
- required by Haskell Platform 2012.4.0.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 4 06:51:40 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- update to 0.5.3.3 from upstream (no changelog)
|
||||||
|
- required by Haskell Platform 2012.2.0.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 23 13:42:43 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- Added BuildRoot for sle11-sp1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 15 09:33:05 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- Added requires zlib-devel
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 15 09:08:25 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- Add arches for OBS.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 15 09:06:35 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- Initial packaging.
|
199
ghc-zlib.spec
199
ghc-zlib.spec
@@ -1,163 +1,114 @@
|
|||||||
%define pkg_name zlib
|
#
|
||||||
%define ghc_version %(ghc --numeric-version)
|
# spec file for package ghc-zlib
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
%define pkg_docdir %{_datadir}/doc/ghc/libraries/%{pkg_name}-%{version}
|
#
|
||||||
|
|
||||||
# ghc does not emit debug information
|
|
||||||
%define debug_package %{nil}
|
|
||||||
|
|
||||||
|
%global pkg_name zlib
|
||||||
|
%global pkgver %{pkg_name}-%{version}
|
||||||
|
%bcond_with tests
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.5.2.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
|
||||||
Group: Development/Libraries
|
License: BSD-2-Clause
|
||||||
License: BSD3
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.bz2
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/5.cabal#/%{pkg_name}.cabal
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc, ghc-doc, ghc-prof
|
BuildRequires: ghc-base-devel
|
||||||
|
BuildRequires: ghc-base-prof
|
||||||
|
BuildRequires: ghc-bytestring-devel
|
||||||
|
BuildRequires: ghc-bytestring-prof
|
||||||
|
BuildRequires: ghc-rpm-macros
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: licenses
|
ExcludeArch: %{ix86}
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: ghc-QuickCheck-devel
|
||||||
|
BuildRequires: ghc-QuickCheck-prof
|
||||||
|
BuildRequires: ghc-tasty-devel
|
||||||
|
BuildRequires: ghc-tasty-prof
|
||||||
|
BuildRequires: ghc-tasty-quickcheck-devel
|
||||||
|
BuildRequires: ghc-tasty-quickcheck-prof
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a pure interface for compressing and decompressing streams
|
This package provides a pure interface for compressing and decompressing
|
||||||
of data represented as lazy ByteStrings. It uses the zlib C library so it has
|
streams of data represented as lazy 'ByteString's. It uses the
|
||||||
high performance. It supports the "zlib", "gzip" and "raw" compression formats.
|
<https://en.wikipedia.org/wiki/Zlib 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
|
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
|
cases where more control is needed it provides access to the full zlib feature
|
||||||
set.
|
set.
|
||||||
|
|
||||||
This package provides the Haskell %{pkg_name} library for ghc.
|
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Haskell %{pkg_name} library
|
Summary: Haskell %{pkg_name} library development files
|
||||||
Group: Development/Libraries
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: ghc = %{ghc_version}
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
Requires(post): ghc = %{ghc_version}
|
|
||||||
Requires(preun): ghc = %{ghc_version}
|
|
||||||
Requires: ghc-bytestring-devel
|
|
||||||
Requires: zlib-devel
|
Requires: zlib-devel
|
||||||
Requires: licenses
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
|
Requires(postun): ghc-compiler = %{ghc_version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package provides a pure interface for compressing and decompressing streams
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
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.
|
|
||||||
|
|
||||||
It provides a convenient high level API suitable for most tasks and for the few
|
%package -n ghc-%{pkg_name}-doc
|
||||||
cases where more control is needed it provides access to the full zlib feature
|
Summary: Haskell %{pkg_name} library documentation
|
||||||
set.
|
Requires: ghc-filesystem
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
This package contains the development files for %{name}
|
%description -n ghc-%{pkg_name}-doc
|
||||||
built for ghc-%{ghc_version}.
|
This package provides the Haskell %{pkg_name} library documentation.
|
||||||
|
|
||||||
|
%package -n ghc-%{pkg_name}-prof
|
||||||
|
Summary: Haskell %{pkg_name} profiling library
|
||||||
|
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
||||||
|
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
||||||
|
|
||||||
%package doc
|
%description -n ghc-%{pkg_name}-prof
|
||||||
Summary: Documentation for %{name}
|
This package provides the Haskell %{pkg_name} profiling library.
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: ghc-doc = %{ghc_version}
|
|
||||||
Requires(post): ghc-doc = %{ghc_version}
|
|
||||||
Requires(postun): ghc-doc = %{ghc_version}
|
|
||||||
Requires: ghc-bytestring-doc
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
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.
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
This package contains development documentation files for the %{name} library.
|
|
||||||
|
|
||||||
|
|
||||||
%package prof
|
|
||||||
Summary: Profiling libraries for %{name}
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name}-devel = %{version}-%{release}
|
|
||||||
Requires: ghc-prof = %{ghc_version}
|
|
||||||
Requires: ghc-bytestring-prof
|
|
||||||
Requires: zlib-devel
|
|
||||||
|
|
||||||
%description prof
|
|
||||||
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.
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
This package contains profiling libraries for %{name}.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%autosetup -n %{pkg_name}-%{version}
|
||||||
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cabal_configure --ghc %{!?without_prof:-p}
|
%ghc_lib_build
|
||||||
%cabal build
|
|
||||||
%cabal haddock
|
|
||||||
%ghc_gen_scripts
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cabal_install
|
%ghc_lib_install
|
||||||
%ghc_install_scripts
|
|
||||||
%ghc_gen_filelists %{name}
|
|
||||||
for FILE in LICENSE ; do
|
|
||||||
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
|
||||||
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
|
||||||
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%cabal_test
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%ghc_register_pkg
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
%postun devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
%post doc
|
%files -f %{name}.files
|
||||||
%ghc_reindex_haddock
|
%license LICENSE
|
||||||
|
|
||||||
|
|
||||||
%preun devel
|
|
||||||
if [ "$1" -eq 0 ] ; then
|
|
||||||
%ghc_unregister_pkg
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%postun doc
|
|
||||||
if [ "$1" -eq 0 ] ; then
|
|
||||||
%ghc_reindex_haddock
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%defattr(-,root,root,-)
|
%doc README.md changelog examples
|
||||||
%{_docdir}/%{name}-%{version}
|
|
||||||
|
|
||||||
|
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%files doc
|
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{pkg_docdir}
|
|
||||||
|
|
||||||
|
|
||||||
%files prof -f %{name}-prof.files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Aug 2 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.5.2.0
|
|
||||||
- Require zlib-devel
|
|
||||||
|
|
||||||
* Sat Aug 1 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.5.2.0
|
|
||||||
- Require ghc-bytestring instead of ghc-binary
|
|
||||||
|
|
||||||
* Fri Jul 31 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.5.2.0
|
|
||||||
- Initial Package
|
|
||||||
|
@@ -1,6 +0,0 @@
|
|||||||
addFilter("devel-dependency gmp-devel")
|
|
||||||
addFilter("devel-file-in-non-devel-package")
|
|
||||||
addFilter("static-library-without-debuginfo")
|
|
||||||
addFilter("useless-explicit-requires ghc")
|
|
||||||
addFilter("useless-explicit-requires ghc-doc")
|
|
||||||
addFilter("devel-dependency ghc-zlib-devel")
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:157a3389182521f45e6166141c45b1044ac3303e9f358d272eee5b14d58c3956
|
|
||||||
size 100474
|
|
BIN
zlib-0.6.3.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
zlib-0.6.3.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
140
zlib.cabal
Normal file
140
zlib.cabal
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
cabal-version: >= 1.10
|
||||||
|
name: zlib
|
||||||
|
version: 0.6.3.0
|
||||||
|
x-revision: 5
|
||||||
|
|
||||||
|
copyright: (c) 2006-2016 Duncan Coutts
|
||||||
|
license: BSD3
|
||||||
|
license-file: LICENSE
|
||||||
|
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>
|
||||||
|
bug-reports: https://github.com/haskell/zlib/issues
|
||||||
|
category: Codec
|
||||||
|
synopsis: Compression and decompression in the gzip and zlib formats
|
||||||
|
description: This package provides a pure interface for compressing and
|
||||||
|
decompressing streams of data represented as lazy
|
||||||
|
'ByteString's. It uses the
|
||||||
|
<https://en.wikipedia.org/wiki/Zlib 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.
|
||||||
|
build-type: Simple
|
||||||
|
|
||||||
|
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.4.4
|
||||||
|
, GHC == 8.6.5
|
||||||
|
, GHC == 8.8.4
|
||||||
|
, GHC == 8.10.7
|
||||||
|
, GHC == 9.0.2
|
||||||
|
, GHC == 9.2.8
|
||||||
|
, GHC == 9.4.7
|
||||||
|
, GHC == 9.6.3
|
||||||
|
, GHC == 9.8.1
|
||||||
|
|
||||||
|
extra-source-files: changelog
|
||||||
|
README.md
|
||||||
|
-- zlib C sources (for Windows)
|
||||||
|
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/bad-crc.gz test/data/custom-dict.zlib
|
||||||
|
test/data/custom-dict.zlib-dict test/data/hello.gz
|
||||||
|
test/data/not-gzip test/data/two-files.gz
|
||||||
|
-- demo programs:
|
||||||
|
examples/gzip.hs examples/gunzip.hs
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/haskell/zlib.git
|
||||||
|
|
||||||
|
flag non-blocking-ffi
|
||||||
|
default: False
|
||||||
|
manual: True
|
||||||
|
description: The (de)compression calls can sometimes take a long time, which
|
||||||
|
prevents other Haskell threads running. Enabling this flag
|
||||||
|
avoids this unfairness, but with greater overall cost.
|
||||||
|
|
||||||
|
flag pkg-config
|
||||||
|
default: False
|
||||||
|
manual: True
|
||||||
|
description: Use @pkg-config(1)@ to locate foreign @zlib@ library.
|
||||||
|
|
||||||
|
flag bundled-c-zlib
|
||||||
|
default: False
|
||||||
|
manual: True
|
||||||
|
description: Use the bundled zlib C sources. Requires pkg-config to be False.
|
||||||
|
For windows, this is the default.
|
||||||
|
|
||||||
|
|
||||||
|
library
|
||||||
|
exposed-modules: Codec.Compression.GZip,
|
||||||
|
Codec.Compression.Zlib,
|
||||||
|
Codec.Compression.Zlib.Raw,
|
||||||
|
Codec.Compression.Zlib.Internal
|
||||||
|
other-modules: Codec.Compression.Zlib.Stream,
|
||||||
|
Codec.Compression.Zlib.ByteStringCompat
|
||||||
|
|
||||||
|
if impl(ghc < 7)
|
||||||
|
default-language: Haskell98
|
||||||
|
default-extensions: PatternGuards
|
||||||
|
else
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
||||||
|
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
|
||||||
|
DeriveDataTypeable
|
||||||
|
if impl(ghc >= 7.2)
|
||||||
|
other-extensions: DeriveGeneric
|
||||||
|
if impl(ghc >= 7.6)
|
||||||
|
other-extensions: CApiFFI
|
||||||
|
|
||||||
|
build-depends: base >= 4 && < 4.21,
|
||||||
|
bytestring >= 0.9 && < 0.13
|
||||||
|
if impl(ghc >= 7.0 && < 8.0.3)
|
||||||
|
build-depends: ghc-prim
|
||||||
|
|
||||||
|
includes: zlib.h
|
||||||
|
ghc-options: -Wall -fwarn-tabs
|
||||||
|
if flag(non-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
|
||||||
|
pkgconfig-depends: zlib
|
||||||
|
else
|
||||||
|
-- don't use pkg-config
|
||||||
|
if !os(windows) && !flag(bundled-c-zlib) && !impl(ghcjs) && !os(ghcjs)
|
||||||
|
-- Normally we use the the standard system zlib.
|
||||||
|
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
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
main-is: Test.hs
|
||||||
|
other-modules: Utils,
|
||||||
|
Test.Codec.Compression.Zlib.Internal,
|
||||||
|
Test.Codec.Compression.Zlib.Stream
|
||||||
|
hs-source-dirs: test
|
||||||
|
default-language: Haskell2010
|
||||||
|
build-depends: base, bytestring, zlib,
|
||||||
|
QuickCheck == 2.*,
|
||||||
|
tasty >= 0.8 && < 1.6,
|
||||||
|
tasty-quickcheck >= 0.8 && < 0.12
|
||||||
|
ghc-options: -Wall
|
Reference in New Issue
Block a user