|
|
|
@ -106,7 +106,11 @@ install -D --mode=0644 %{pkgnamever}.conf %{buildroot}%{ghclibdir}/package.conf.
|
|
|
|
|
%ghc_lib_build()\
|
|
|
|
|
%ghc_lib_build_without_haddock\
|
|
|
|
|
%if %{undefined without_haddock}\
|
|
|
|
|
%define pkgname %{?1}%{!?1:%{pkg_name}}\
|
|
|
|
|
%define pkgver %{?2}%{!?2:%{version}}\
|
|
|
|
|
if [ -f dist/build/libHS%{pkgname}-%{pkgver}.a ]; then\
|
|
|
|
|
%cabal haddock --html %{!?without_hscolour:%(if [ -x %{_bindir}/HsColour ]; then echo --hyperlink-source; fi)} --hoogle\
|
|
|
|
|
fi\
|
|
|
|
|
%endif\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|