2022-06-07 10:03:25 +00:00
|
|
|
# generated by cabal-rpm-2.0.12
|
2020-06-04 11:29:18 +00:00
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
2013-12-04 07:17:32 +00:00
|
|
|
|
|
|
|
%global pkg_name zlib
|
2017-02-22 01:06:54 +00:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2013-12-04 07:17:32 +00:00
|
|
|
|
2021-08-03 09:01:44 +00:00
|
|
|
%bcond_without tests
|
2019-02-17 14:48:03 +00:00
|
|
|
|
2013-12-04 07:17:32 +00:00
|
|
|
Name: ghc-%{pkg_name}
|
2021-08-03 09:03:05 +00:00
|
|
|
Version: 0.6.2.3
|
2021-08-08 05:28:07 +00:00
|
|
|
Release: %autorelease
|
2013-12-04 07:17:32 +00:00
|
|
|
Summary: Compression and decompression in the gzip and zlib formats
|
|
|
|
|
|
|
|
License: BSD
|
2016-06-06 09:31:31 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
2019-02-17 14:48:03 +00:00
|
|
|
# Begin cabal-rpm sources:
|
2017-02-22 01:06:54 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
2022-06-07 10:03:25 +00:00
|
|
|
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
2019-02-17 14:48:03 +00:00
|
|
|
# End cabal-rpm sources
|
2022-03-12 05:15:25 +00:00
|
|
|
# https://github.com/haskell/zlib/issues/46
|
|
|
|
Patch0: zlib-0.6.2.3-test-rawformat-s390x-z15.patch
|
2013-12-04 07:17:32 +00:00
|
|
|
|
2019-02-17 14:48:03 +00:00
|
|
|
# Begin cabal-rpm deps:
|
2022-06-07 10:03:25 +00:00
|
|
|
BuildRequires: dos2unix
|
2013-12-04 07:17:32 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
2019-08-05 10:33:17 +00:00
|
|
|
BuildRequires: ghc-base-prof
|
|
|
|
BuildRequires: ghc-bytestring-prof
|
2018-02-15 04:20:44 +00:00
|
|
|
BuildRequires: zlib-devel
|
2016-06-26 11:28:33 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
|
|
|
%endif
|
2013-12-04 07:17:32 +00:00
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a pure interface for compressing and decompressing
|
2017-02-22 01:06:54 +00:00
|
|
|
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.
|
2013-12-04 07:17:32 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2019-08-05 10:33:17 +00:00
|
|
|
Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
2018-01-24 13:12:27 +00:00
|
|
|
%if %{defined ghc_version}
|
2013-12-04 07:17:32 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
2018-01-24 13:12:27 +00:00
|
|
|
%endif
|
2013-12-04 07:17:32 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
Requires: zlib-devel%{?_isa}
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
2019-07-25 04:27:18 +00:00
|
|
|
%if %{with haddock}
|
|
|
|
%package doc
|
|
|
|
Summary: Haskell %{pkg_name} library documentation
|
2020-02-08 14:53:07 +00:00
|
|
|
BuildArch: noarch
|
2021-07-07 16:30:14 +00:00
|
|
|
Requires: ghc-filesystem
|
2019-07-25 04:27:18 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package provides the Haskell %{pkg_name} library documentation.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
%package prof
|
|
|
|
Summary: Haskell %{pkg_name} profiling library
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
2020-02-08 14:53:07 +00:00
|
|
|
Supplements: (%{name}-devel and ghc-prof)
|
2019-07-25 04:27:18 +00:00
|
|
|
|
|
|
|
%description prof
|
|
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2013-12-04 07:17:32 +00:00
|
|
|
%prep
|
2019-02-17 14:48:03 +00:00
|
|
|
# Begin cabal-rpm setup:
|
2017-02-22 01:06:54 +00:00
|
|
|
%setup -q -n %{pkgver}
|
2022-06-07 10:03:25 +00:00
|
|
|
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
|
|
|
|
# End cabal-rpm setup
|
2022-03-12 05:15:25 +00:00
|
|
|
%ifarch s390x
|
|
|
|
%patch0 -p1 -b.orig
|
|
|
|
%endif
|
2015-02-17 02:05:25 +00:00
|
|
|
#remove the copy library
|
|
|
|
rm -r cbits
|
|
|
|
|
2013-12-04 07:17:32 +00:00
|
|
|
|
|
|
|
%build
|
2019-02-17 14:48:03 +00:00
|
|
|
# Begin cabal-rpm build:
|
2013-12-04 07:17:32 +00:00
|
|
|
%ghc_lib_build
|
2019-02-17 14:48:03 +00:00
|
|
|
# End cabal-rpm build
|
2013-12-04 07:17:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2019-02-17 14:48:03 +00:00
|
|
|
# Begin cabal-rpm install
|
2013-12-04 07:17:32 +00:00
|
|
|
%ghc_lib_install
|
2019-02-17 14:48:03 +00:00
|
|
|
# End cabal-rpm install
|
2013-12-04 07:17:32 +00:00
|
|
|
|
|
|
|
|
2016-06-26 11:28:33 +00:00
|
|
|
%check
|
2021-07-07 16:30:14 +00:00
|
|
|
%if %{with tests}
|
2016-09-27 10:15:58 +00:00
|
|
|
%cabal_test
|
2021-07-07 16:30:14 +00:00
|
|
|
%endif
|
2016-06-26 11:28:33 +00:00
|
|
|
|
|
|
|
|
2013-12-04 07:17:32 +00:00
|
|
|
%files -f %{name}.files
|
2019-02-17 14:48:03 +00:00
|
|
|
# Begin cabal-rpm files:
|
2016-06-06 09:31:31 +00:00
|
|
|
%license LICENSE
|
2019-02-17 14:48:03 +00:00
|
|
|
# End cabal-rpm files
|
2013-12-04 07:17:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2016-06-26 11:28:33 +00:00
|
|
|
%doc changelog examples
|
2013-12-04 07:17:32 +00:00
|
|
|
|
|
|
|
|
2019-07-25 04:27:18 +00:00
|
|
|
%if %{with haddock}
|
|
|
|
%files doc -f %{name}-doc.files
|
2020-02-08 14:53:07 +00:00
|
|
|
%license LICENSE
|
2019-07-25 04:27:18 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with ghc_prof}
|
|
|
|
%files prof -f %{name}-prof.files
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2013-12-04 07:17:32 +00:00
|
|
|
%changelog
|
2021-08-08 05:28:07 +00:00
|
|
|
%autochangelog
|