From 00735cb32b55ed93fb6a14b1178c2b116a3f3cd4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 2 May 2011 18:02:09 +0900 Subject: [PATCH] don't buildrequire hscolour when without_hscolour defined --- hscolour.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hscolour.spec b/hscolour.spec index 019166f..d80fe41 100644 --- a/hscolour.spec +++ b/hscolour.spec @@ -1,5 +1,3 @@ -# Updated to cabal2spec-0.22.2 and ghc-rpm-macros-0.8.1 - %global pkg_name hscolour %global common_summary Haskell %{pkg_name} library @@ -24,7 +22,9 @@ Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/% ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 BuildRequires: ghc, ghc-doc, ghc-prof BuildRequires: ghc-rpm-macros >= 0.7.3 +%if %{undefined without_hscolour} BuildRequires: hscolour +%endif %{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} %description