From 6b880785fb3b0986dd749dd12e8e68857252d3d7 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Sep 2018 18:54:58 +0900 Subject: [PATCH] fix build when haddock disabled --- ghc-memory.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc-memory.spec b/ghc-memory.spec index a17af8e..09edbad 100644 --- a/ghc-memory.spec +++ b/ghc-memory.spec @@ -77,7 +77,9 @@ documentation. %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 @@ -100,8 +102,10 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %doc CHANGELOG.md README.md +%if %{undefined without_haddock} %files devel-doc -f %{name}-devel-doc.files %doc CHANGELOG.md README.md +%endif %changelog