[ghc-zlib] update to cabal2spec-0.25.2; use _isa; include examples

Jens Petersen petersen at fedoraproject.org
Mon Jan 2 14:00:26 UTC 2012


commit 68bb7a14057d8768fc6b32e1ad05060928afbed5
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Jan 2 23:00:21 2012 +0900

    update to cabal2spec-0.25.2; use _isa; include examples

 ghc-zlib.spec |   36 +++++++++++++++++++++++++++---------
 1 files changed, 27 insertions(+), 9 deletions(-)
---
diff --git a/ghc-zlib.spec b/ghc-zlib.spec
index d72d22e..8374d68 100644
--- a/ghc-zlib.spec
+++ b/ghc-zlib.spec
@@ -1,3 +1,7 @@
+# cabal2spec-0.25.2
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name zlib
 
 %global common_summary Haskell compression and decompression library
@@ -11,24 +15,23 @@ 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.
 
-%global ghc_pkg_c_deps zlib-devel
-
 Name:           ghc-%{pkg_name}
-# part of haskell-platform-2011.2.0.1
+# part of haskell-platform-2011.4.0.0
 Version:        0.5.3.1
-Release:        5%{?dist}.3
+Release:        6%{?dist}
 Summary:        %{common_summary}
 
 Group:          System Environment/Libraries
 License:        BSD
-URL:            http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
+# BEGIN cabal2spec
+URL:            http://hackage.haskell.org/package/%{pkg_name}
 Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
 ExclusiveArch:  %{ghc_arches}
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
-BuildRequires:  hscolour
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
 BuildRequires:  ghc-bytestring-prof
-%{?ghc_pkg_c_deps:BuildRequires:  %{ghc_pkg_c_deps}}
+BuildRequires:  zlib-devel%{?_isa}
 
 %description
 %{common_description}
@@ -46,10 +49,25 @@ BuildRequires:  ghc-bytestring-prof
 %ghc_lib_install
 
 
-%ghc_lib_package
+%ghc_devel_package
+Requires:       zlib-devel%{?_isa}
+
+%ghc_devel_description
+
+
+%ghc_devel_post_postun
+
+
+%ghc_files
+%doc examples
 
 
 %changelog
+* Mon Jan  2 2012 Jens Petersen <petersen at redhat.com> - 0.5.3.1-6
+- update to cabal2spec-0.25.2
+- use _isa
+- include examples
+
 * Mon Oct 24 2011 Marcela Mašláňová <mmaslano at redhat.com> - 0.5.3.1-5.3
 - rebuild with new gmp without compat lib
 


More information about the scm-commits mailing list