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
|
|
|
#
|
2013-08-01 10:06:53 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
|
2012-01-12 16:33:07 +01:00
|
|
|
%global pkg_name zlib
|
|
|
|
|
2012-06-06 20:04:17 +02:00
|
|
|
%global common_summary Haskell gzip and zlib formats library
|
2012-01-12 16:33:07 +01:00
|
|
|
|
2012-06-06 20:04:17 +02:00
|
|
|
%global common_description 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.
|
2012-01-12 16:33:07 +01:00
|
|
|
|
2012-12-27 12:30:55 +01:00
|
|
|
Name: ghc-zlib
|
2013-08-01 10:06:53 +02:00
|
|
|
Version: 0.5.4.1
|
|
|
|
Release: 0
|
2012-01-12 16:33:07 +01:00
|
|
|
Summary: %{common_summary}
|
2012-12-27 12:30:55 +01:00
|
|
|
License: BSD-2-Clause
|
2013-08-01 10:06:53 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2012-06-06 20:04:17 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-01-12 16:33:07 +01:00
|
|
|
# BEGIN cabal2spec
|
2013-08-01 10:06:53 +02:00
|
|
|
Url: http://hackage.haskell.org/package/%{pkg_name}
|
2012-01-12 16:33:07 +01:00
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{ghc_arches}
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
2013-08-01 10:06:53 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2009-08-02 20:37:56 +02:00
|
|
|
BuildRequires: zlib-devel
|
2012-01-12 16:33:07 +01:00
|
|
|
# END cabal2spec
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2012-06-06 20:04:17 +02:00
|
|
|
%description
|
2012-01-12 16:33:07 +01:00
|
|
|
%{common_description}
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2013-08-01 10:06:53 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Group: Development/Languages/Other
|
|
|
|
Requires: ghc-compiler
|
|
|
|
Requires: zlib-devel
|
|
|
|
Requires(post): ghc-compiler
|
|
|
|
Requires(postun): ghc-compiler
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%{common_description}
|
|
|
|
This package contains the 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
|
|
|
|
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,-)
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
%changelog
|