diff --git a/ghc-criterion.spec b/ghc-criterion.spec index e24905d..656c7a9 100644 --- a/ghc-criterion.spec +++ b/ghc-criterion.spec @@ -109,7 +109,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %ghc_lib_install %ghc_fix_rpath %{pkgver} 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