fix build when haddock disabled

This commit is contained in:
Jens Petersen 2018-09-13 18:52:18 +09:00
parent 73d35cd7d9
commit 1bdcd1db0e

View File

@ -90,7 +90,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
@ -113,9 +115,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
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 0.5.13.1-4