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
|
|
|
#
|
2020-09-04 17:12:03 +02:00
|
|
|
# Copyright (c) 2020 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
|
2016-01-06 10:15:41 +01:00
|
|
|
%bcond_with tests
|
2016-07-18 14:28:34 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2020-09-04 17:12:03 +02:00
|
|
|
Version: 0.6.2.2
|
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
|
2012-01-12 16:33:07 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2016-01-06 10:15:41 +01:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
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-18 13:53:23 +01:00
|
|
|
# GHC dont support i586
|
|
|
|
%ifarch %{ix86}
|
|
|
|
ExclusiveArch: i586 i686
|
|
|
|
ExclusiveArch: i686
|
|
|
|
%{expand:%%global optflags %(echo "%{optflags}"|sed -e s/i586/i686/) -march=i686 -mtune=generic}
|
|
|
|
%endif
|
2016-01-06 10:15:41 +01:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
|
|
|
%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.
|
|
|
|
|
2009-08-02 20:37:56 +02:00
|
|
|
%prep
|
2020-09-04 17:12:03 +02:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
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
|
2016-10-31 15:35:44 +01:00
|
|
|
%doc changelog examples
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
%changelog
|