From 5ff993dce3c7b9c05dcb01a346396c2650939c66 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 23 Apr 2013 19:52:22 +0900 Subject: [PATCH] only require ghc-doc-index if we package it --- ghc.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ghc.spec b/ghc.spec index ec3af0c..e5ab498 100644 --- a/ghc.spec +++ b/ghc.spec @@ -84,7 +84,9 @@ BuildRequires: python BuildRequires: llvm >= 3.0 %endif Requires: ghc-compiler = %{version}-%{release} +%if %{undefined without_haddock} Requires: ghc-doc-index = %{version}-%{release} +%endif Requires: ghc-libraries = %{version}-%{release} Requires: ghc-ghc-devel = %{version}-%{release}