fix build when haddock disabled

This commit is contained in:
Jens Petersen 2018-09-13 18:58:42 +09:00
parent 4b9a70d4f4
commit 70e4a07f5e
1 changed files with 4 additions and 0 deletions

View File

@ -93,7 +93,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
%check
@ -116,8 +118,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