fix build when haddock disabled

This commit is contained in:
Jens Petersen 2018-09-13 18:42:49 +09:00
parent 3e9b4ea123
commit 25a38fd90c

View File

@ -85,7 +85,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%install %install
%ghc_lib_install %ghc_lib_install
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files 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 grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
%endif
%check %check
@ -109,8 +111,10 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%if %{undefined without_haddock}
%files devel-doc -f %{name}-devel-doc.files %files devel-doc -f %{name}-devel-doc.files
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%endif
%changelog %changelog