fix build when haddock disabled

This commit is contained in:
Jens Petersen 2018-09-13 18:57:59 +09:00
parent c363c9d870
commit 3a32bfa439
1 changed files with 4 additions and 0 deletions

View File

@ -70,7 +70,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
%post devel
@ -89,8 +91,10 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev
%doc CHANGELOG.markdown README.markdown
%if %{undefined without_haddock}
%files devel-doc -f %{name}-devel-doc.files
%doc CHANGELOG.markdown README.markdown
%endif
%changelog