From 8e26dd4819fc65d8f117fdeee0347e03daab1bba Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Sep 2018 18:40:22 +0900 Subject: [PATCH] fix build when haddock disabled --- ghc-cryptonite.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc-cryptonite.spec b/ghc-cryptonite.spec index 8b5ba86..9433bad 100644 --- a/ghc-cryptonite.spec +++ b/ghc-cryptonite.spec @@ -99,7 +99,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 @@ -122,8 +124,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