fix build when haddock disabled

This commit is contained in:
Jens Petersen 2018-09-13 18:47:36 +09:00
parent a63575fce2
commit 69880e757b
1 changed files with 5 additions and 0 deletions

View File

@ -86,7 +86,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
@ -105,8 +107,11 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev
%doc CHANGELOG.md
%if %{undefined without_haddock}
%files devel-doc -f %{name}-devel-doc.files
%doc CHANGELOG.md
%endif
%changelog
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 0.3.2.0-1