fix build when haddock disabled
This commit is contained in:
parent
cb868ca7f2
commit
795be5d26c
@ -74,7 +74,9 @@ documentation.
|
|||||||
%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
|
||||||
@ -97,8 +99,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
|
||||||
|
Loading…
Reference in New Issue
Block a user