From 1bdcd1db0e8b7c7f955ece2a91f70e94d60aa2a0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Sep 2018 18:52:18 +0900 Subject: [PATCH] fix build when haddock disabled --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index a0788ff..82e07bd 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -90,7 +90,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 @@ -113,9 +115,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 * Sat Jul 28 2018 Jens Petersen - 0.5.13.1-4