From 8ffdd18a9a0c44c579acec2616227bb6dbc063e4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Sep 2018 18:43:27 +0900 Subject: [PATCH] fix build when haddock disabled --- ghc-foundation.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc-foundation.spec b/ghc-foundation.spec index 013b430..9a578a1 100644 --- a/ghc-foundation.spec +++ b/ghc-foundation.spec @@ -82,7 +82,9 @@ EOF %install %ghc_lib_install 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 @@ -104,7 +106,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %files devel -f %{name}-devel-nodoc.files +%if %{undefined without_haddock} %files devel-doc -f %{name}-devel-doc.files +%endif %changelog