From 4288e26af90a950acb7c339c89fd7ad073338e70 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 31 Jul 2019 08:04:12 +0000 Subject: [PATCH] %ghc_gen_filelists: condition haddock --- macros.ghc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macros.ghc b/macros.ghc index ba8de23..bd50dc2 100644 --- a/macros.ghc +++ b/macros.ghc @@ -91,7 +91,9 @@ rm -f %{basepkg}-devel.files %{basepkg}-prof.files\ touch %{basepkg}-devel.files %{basepkg}-prof.files\ fi\ ls %{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf >> %{basepkg}-devel.files\ +%if %{with haddock}\ echo %{ghc_html_libraries_dir}/%{pkgnamever} >> %{basepkg}-doc.files\ +%endif\ for i in %{basepkg}.files %{basepkg}-devel.files %{basepkg}-doc.files %{basepkg}-prof.files; do\ if [ -f "$i" ]; then\ sed -i -e "s!%{buildroot}!!g" $i\