fix build when haddock disabled
This commit is contained in:
parent
3e9b4ea123
commit
25a38fd90c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user