2012-06-06 20:04:17 +02:00
|
|
|
#
|
2013-08-01 10:06:53 +02:00
|
|
|
# spec file for package ghc-zlib
|
2012-06-06 20:04:17 +02:00
|
|
|
#
|
2023-03-30 10:26:53 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-01-12 16:33:07 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-18 11:53:30 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-12 16:33:07 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-07-18 14:28:34 +02:00
|
|
|
%global pkg_name zlib
|
2023-03-30 10:26:53 +02:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2016-01-06 10:15:41 +01:00
|
|
|
%bcond_with tests
|
2016-07-18 14:28:34 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2022-06-29 14:18:32 +02:00
|
|
|
Version: 0.6.3.0
|
2016-07-18 14:28:34 +02:00
|
|
|
Release: 0
|
2016-01-06 10:15:41 +01:00
|
|
|
Summary: Compression and decompression in the gzip and zlib formats
|
|
|
|
License: BSD-2-Clause
|
2017-08-15 16:09:30 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2016-01-06 10:15:41 +01:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2023-08-11 10:05:29 +02:00
|
|
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal
|
2012-01-12 16:33:07 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base-prof
|
2016-01-06 10:15:41 +01:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-bytestring-prof
|
2016-07-18 14:28:34 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2009-08-02 20:37:56 +02:00
|
|
|
BuildRequires: zlib-devel
|
2020-12-19 18:49:40 +01:00
|
|
|
ExcludeArch: %{ix86}
|
2016-01-06 10:15:41 +01:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-QuickCheck-prof
|
2016-01-06 10:15:41 +01:00
|
|
|
BuildRequires: ghc-tasty-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-tasty-prof
|
2016-01-06 10:15:41 +01:00
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-tasty-quickcheck-prof
|
2016-01-06 10:15:41 +01:00
|
|
|
%endif
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2012-06-06 20:04:17 +02:00
|
|
|
%description
|
2016-01-06 10:15:41 +01:00
|
|
|
This package provides a pure interface for compressing and decompressing
|
2016-10-31 15:35:44 +01: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.
|
2016-01-06 10:15:41 +01: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.
|
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2016-07-18 14:28:34 +02:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
2016-01-06 10:15:41 +01:00
|
|
|
Requires: zlib-devel
|
2016-07-18 14:28:34 +02:00
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2013-08-01 10:06:53 +02:00
|
|
|
|
|
|
|
%description devel
|
2016-01-06 10:15:41 +01:00
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
2023-03-30 10:26:53 +02:00
|
|
|
%package -n ghc-%{pkg_name}-doc
|
|
|
|
Summary: Haskell %{pkg_name} library documentation
|
|
|
|
Requires: ghc-filesystem
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-doc
|
|
|
|
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)
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-prof
|
|
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
|
2009-08-02 20:37:56 +02:00
|
|
|
%prep
|
2020-09-04 17:12:03 +02:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
2023-03-30 10:26:53 +02:00
|
|
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
%build
|
2012-01-12 16:33:07 +01:00
|
|
|
%ghc_lib_build
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
%install
|
2012-01-12 16:33:07 +01:00
|
|
|
%ghc_lib_install
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2016-01-06 10:15:41 +01:00
|
|
|
%check
|
2016-10-03 10:27:56 +02:00
|
|
|
%cabal_test
|
2016-01-06 10:15:41 +01:00
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
%files -f %{name}.files
|
2018-04-26 09:57:42 +02:00
|
|
|
%license LICENSE
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
%files devel -f %{name}-devel.files
|
2022-06-29 14:18:32 +02:00
|
|
|
%doc README.md changelog examples
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2023-03-30 10:26:53 +02:00
|
|
|
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
|
|
|
|
2009-08-02 20:37:56 +02:00
|
|
|
%changelog
|