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
|
|
|
#
|
2016-07-18 14:28:34 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
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}
|
2016-10-31 15:35:44 +01:00
|
|
|
Version: 0.6.1.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
|
2016-10-03 10:27:56 +02:00
|
|
|
Group: Development/Languages/Other
|
2016-01-06 10:15:41 +01:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
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
|
2016-07-18 14:28:34 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2016-01-06 10:15:41 +01:00
|
|
|
Group: Development/Libraries/Other
|
2013-08-01 10:06:53 +02:00
|
|
|
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
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
%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
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%defattr(-,root,root,-)
|
2016-10-31 15:35:44 +01:00
|
|
|
%doc changelog examples
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
%changelog
|