ghc-rpm-macros/suse-docdir.patch

27 lines
810 B
Diff
Raw Normal View History

Index: ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381/macros.ghc
===================================================================
--- ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381.orig/macros.ghc
+++ ghc-rpm-macros-81726e4857a866d19cc59b496846d127b9e8c381/macros.ghc
@@ -18,6 +18,9 @@ proceeding, to avoid dependency ABI brea
%endif\
fi
+# no _pkgdocdir in openSUSE
+%_pkgdocdir %{_docdir}/%{name}
+
# configure
%cabal_configure\
%ghc_check_bootstrap\
@@ -35,9 +38,9 @@ tests
%endif
# root dir for ghc docs (used by ghc.spec)
-%ghc_html_dir %{_docdir}/ghc/html
+%ghc_html_dir %{_datadir}/doc/ghc/html
# deprecates
-%ghcdocbasedir %{_docdir}/ghc/html
+%ghcdocbasedir %{_datadir}/doc/ghc/html
# libraries doc dir (internal)
%ghc_html_libraries_dir %{ghc_html_dir}/libraries