[ghc-rpm-macros] ghc-rpm-macros now requires hscolour so packages no longer need to BR it

Jens Petersen petersen at fedoraproject.org
Mon Sep 10 02:48:11 UTC 2012


commit b95424a06b5099d4ec97f68b201f3f0b230b076a
Author: Jens Petersen <petersen at redhat.com>
Date:   Sat Sep 8 21:18:30 2012 +0900

    ghc-rpm-macros now requires hscolour so packages no longer need to BR it
    
    - this can be disabled for bootstrapping by setting without_hscolour

 ghc-rpm-macros.spec |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec
index 3662f58..f4aee22 100644
--- a/ghc-rpm-macros.spec
+++ b/ghc-rpm-macros.spec
@@ -2,8 +2,11 @@
 
 %global macros_file %{_sysconfdir}/rpm/macros.ghc
 
+# uncomment to bootstrap without hscolour
+#%%global without_hscolour 1
+
 Name:           ghc-rpm-macros
-Version:        0.96
+Version:        0.97
 Release:        1%{?dist}
 Summary:        Macros for building packages for GHC
 
@@ -21,6 +24,11 @@ Source2:        AUTHORS
 Source3:        ghc-deps.sh
 Source4:        cabal-tweak-dep-ver
 Requires:       redhat-rpm-config
+%if %{undefined without_hscolour}
+ExclusiveArch:  %{ghc_arches}
+BuildRequires:  ghc-rpm-macros, hscolour
+Requires:       hscolour
+%endif
 
 %description
 A set of macros for building GHC packages following the Haskell Guidelines
@@ -55,6 +63,12 @@ cat >> %{buildroot}/%{macros_file} <<EOF
 EOF
 %endif
 
+%if %{defined without_hscolour}
+cat >> %{buildroot}/%{macros_file} <<EOF
+
+# bootstrap
+%%without_hscolour 1
+EOF
 
 %files
 %doc COPYING AUTHORS
@@ -64,6 +78,10 @@ EOF
 
 
 %changelog
+* Sat Sep  8 2012 Jens Petersen <petersen at redhat.com> - 0.97-1
+- ghc-rpm-macros now requires hscolour so packages no longer need to BR it
+- this can be disabled for bootstrapping by setting without_hscolour
+
 * Fri Aug 24 2012 Jens Petersen <petersen at redhat.com> - 0.96-1
 - make haddock build hoogle files
 - Fedora ghc-7.4.2 Cabal will not build ghci lib files by default


More information about the scm-commits mailing list