From 25a38fd90cfbce13fdac4d26b4701864b9e4411b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Sep 2018 18:42:49 +0900 Subject: [PATCH] fix build when haddock disabled --- ghc-feed.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc-feed.spec b/ghc-feed.spec index 3acf7f8..e855e5a 100644 --- a/ghc-feed.spec +++ b/ghc-feed.spec @@ -85,7 +85,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %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 @@ -109,8 +111,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