- update to cabal2spec-0.20 and ghc-rpm-macros-0.4.0:

- use common_summary and common_description
- reenable debuginfo for stripping
- use ghc_requires, ghc_doc_requires, and ghc_prof_requires
This commit is contained in:
Jens Petersen 2009-12-25 15:39:20 +00:00
parent cb58d10403
commit 40b11069fc

View File

@ -1,17 +1,28 @@
%global pkg_name zlib %global pkg_name zlib
%global common_summary Haskell compression and decompression library
%global common_description This package provides a pure Haskell 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.\
\
It provides a convenient high level API suitable for most tasks. For\
the few cases where more control is needed, it provides access to the\
full zlib feature set.
%bcond_without doc %bcond_without doc
%bcond_without prof %bcond_without prof
%bcond_without shared %bcond_without shared
# ghc does not emit debug information # stripping produces smaller .so
%global debug_package %{nil} #%%global debug_package %{nil}
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
# part of haskell-platform-2009.2.0.2 # part of haskell-platform-2009.2.0.2
Version: 0.5.0.0 Version: 0.5.0.0
Release: 11%{?dist} Release: 12%{?dist}
Summary: Haskell compression and decompression library binding Summary: %{common_summary}
Group: System Environment/Libraries Group: System Environment/Libraries
License: BSD License: BSD
@ -19,7 +30,7 @@ URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
# fedora ghc archs: # fedora ghc archs:
ExclusiveArch: %{ix86} x86_64 ppc alpha ExclusiveArch: %{ix86} x86_64 ppc alpha
BuildRequires: ghc, ghc-rpm-macros >= 0.3.1 BuildRequires: ghc, ghc-rpm-macros >= 0.4.0
%if %{with doc} %if %{with doc}
BuildRequires: ghc-doc BuildRequires: ghc-doc
%endif %endif
@ -29,54 +40,47 @@ BuildRequires: ghc-prof
BuildRequires: zlib-devel BuildRequires: zlib-devel
%description %description
This package provides a pure Haskell interface for compressing and %{common_description}
decompressing streams of data represented as lazy ByteStrings. It uses %if %{with shared}
the zlib C library so it has high performance. It supports the "zlib", This package provides the shared library.
"gzip" and "raw" compression formats. %endif
It provides a convenient high level API suitable for most tasks. For
the few cases where more control is needed, it provides access to the
full zlib feature set.
%package devel %package devel
Summary: Haskell %{pkg_name} library development files Summary: %{common_summary} development files
Group: Development/Libraries Group: Development/Libraries
Requires: ghc = %{ghc_version} %{?ghc_requires}
Requires(post): ghc = %{ghc_version}
Requires(postun): ghc = %{ghc_version}
%if %{with shared}
Requires: %{name} = %{version}-%{release}
%endif
Requires: zlib-devel Requires: zlib-devel
%description devel %description devel
This package contains the development files for %{name} %{common_description}
built for ghc-%{ghc_version}.
This package contains the development files.
%if %{with doc} %if %{with doc}
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{common_summary}
Group: Development/Libraries Group: Development/Libraries
Requires: ghc-doc = %{ghc_version} %{?ghc_doc_requires}
Requires(post): ghc-doc = %{ghc_version}
Requires(postun): ghc-doc = %{ghc_version}
%description doc %description doc
This package contains development documentation files for the %{name} library. %{common_description}
This package contains development documentation files.
%endif %endif
%if %{with prof} %if %{with prof}
%package prof %package prof
Summary: Profiling libraries for %{name} Summary: Profiling libraries for %{common_summary}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release} %{?ghc_prof_requires}
Requires: ghc-prof = %{ghc_version}
%description prof %description prof
This package contains profiling libraries for %{name} %{common_description}
built for ghc-%{ghc_version}.
This package contains the profiling library.
%endif %endif
@ -152,6 +156,12 @@ fi
%changelog %changelog
* Sat Dec 26 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-12
- update to cabal2spec-0.20 and ghc-rpm-macros-0.4.0:
- use common_summary and common_description
- reenable debuginfo for stripping
- use ghc_requires, ghc_doc_requires, and ghc_prof_requires
* Tue Dec 22 2009 Jens Petersen <petersen@redhat.com> * Tue Dec 22 2009 Jens Petersen <petersen@redhat.com>
- fix base Group and devel Summary - fix base Group and devel Summary
- only include docdir in devel if not shared build - only include docdir in devel if not shared build