From 40b11069fcb2eae8579b8d5a65a71962b5c2f4dc Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 25 Dec 2009 15:39:20 +0000 Subject: [PATCH] - 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 --- ghc-zlib.spec | 72 +++++++++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 31 deletions(-) diff --git a/ghc-zlib.spec b/ghc-zlib.spec index 0447c4a..7e01f4f 100644 --- a/ghc-zlib.spec +++ b/ghc-zlib.spec @@ -1,17 +1,28 @@ %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 prof %bcond_without shared -# ghc does not emit debug information -%global debug_package %{nil} +# stripping produces smaller .so +#%%global debug_package %{nil} Name: ghc-%{pkg_name} # part of haskell-platform-2009.2.0.2 Version: 0.5.0.0 -Release: 11%{?dist} -Summary: Haskell compression and decompression library binding +Release: 12%{?dist} +Summary: %{common_summary} Group: System Environment/Libraries 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 # fedora ghc archs: 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} BuildRequires: ghc-doc %endif @@ -29,54 +40,47 @@ BuildRequires: ghc-prof BuildRequires: zlib-devel %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. +%{common_description} +%if %{with shared} +This package provides the shared library. +%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 -Summary: Haskell %{pkg_name} library development files +Summary: %{common_summary} development files Group: Development/Libraries -Requires: ghc = %{ghc_version} -Requires(post): ghc = %{ghc_version} -Requires(postun): ghc = %{ghc_version} -%if %{with shared} -Requires: %{name} = %{version}-%{release} -%endif +%{?ghc_requires} Requires: zlib-devel %description devel -This package contains the development files for %{name} -built for ghc-%{ghc_version}. +%{common_description} + +This package contains the development files. %if %{with doc} %package doc -Summary: Documentation for %{name} +Summary: Documentation for %{common_summary} Group: Development/Libraries -Requires: ghc-doc = %{ghc_version} -Requires(post): ghc-doc = %{ghc_version} -Requires(postun): ghc-doc = %{ghc_version} +%{?ghc_doc_requires} %description doc -This package contains development documentation files for the %{name} library. +%{common_description} + +This package contains development documentation files. %endif %if %{with prof} %package prof -Summary: Profiling libraries for %{name} +Summary: Profiling libraries for %{common_summary} Group: Development/Libraries -Requires: %{name}-devel = %{version}-%{release} -Requires: ghc-prof = %{ghc_version} +%{?ghc_prof_requires} %description prof -This package contains profiling libraries for %{name} -built for ghc-%{ghc_version}. +%{common_description} + +This package contains the profiling library. %endif @@ -152,6 +156,12 @@ fi %changelog +* Sat Dec 26 2009 Jens Petersen - 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 - fix base Group and devel Summary - only include docdir in devel if not shared build