From 5359b3599ed0112932c28e468dedc18590013dce Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Sep 2018 18:39:28 +0900 Subject: [PATCH] fix build when haddock disabled --- ghc-criterion.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ghc-criterion.spec b/ghc-criterion.spec index e24905d..656c7a9 100644 --- a/ghc-criterion.spec +++ b/ghc-criterion.spec @@ -109,7 +109,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %ghc_lib_install %ghc_fix_rpath %{pkgver} grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files +%if %{undefined without_haddock} grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files +%endif %check