2013-07-31 15:36:43 +00:00
|
|
|
Index: ghc-rpm-macros-237337a6c6b3299bc6a437446c7f17136fc67ffa/ghc-rpm-macros.ghc
|
|
|
|
===================================================================
|
|
|
|
--- ghc-rpm-macros-237337a6c6b3299bc6a437446c7f17136fc67ffa.orig/ghc-rpm-macros.ghc
|
|
|
|
+++ ghc-rpm-macros-237337a6c6b3299bc6a437446c7f17136fc67ffa/ghc-rpm-macros.ghc
|
|
|
|
@@ -21,13 +21,14 @@ fi
|
2012-01-11 21:21:36 +00:00
|
|
|
# configure
|
|
|
|
%cabal_configure\
|
|
|
|
%ghc_check_bootstrap\
|
2012-06-26 16:05:51 +00:00
|
|
|
-%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}-%{version} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
+%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?cabal_configure_options} $cabal_configure_extra_options
|
2012-01-11 21:21:36 +00:00
|
|
|
|
|
|
|
# install
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} -v
|
2012-01-23 08:36:22 +00:00
|
|
|
|
|
|
|
# root dir for ghc docs
|
|
|
|
-%ghcdocbasedir %{_docdir}/ghc/html
|
2012-02-19 19:34:18 +00:00
|
|
|
+%ghcdocroot %{_datadir}/doc/ghc
|
|
|
|
+%ghcdocbasedir %{ghcdocroot}/html
|
2012-01-23 08:36:22 +00:00
|
|
|
# libraries doc dir
|
|
|
|
%ghclibdocdir %{ghcdocbasedir}/libraries
|
|
|
|
# top library dir
|
2013-07-31 15:36:43 +00:00
|
|
|
@@ -100,7 +101,7 @@ find %{buildroot} -type f -exec sh -c "f
|
2012-06-26 16:05:51 +00:00
|
|
|
# ghc_lib_build_without_haddock [name] [version]
|
|
|
|
%ghc_lib_build_without_haddock()\
|
2012-01-11 21:21:36 +00:00
|
|
|
%global debug_package %{nil}\
|
2013-07-31 15:36:43 +00:00
|
|
|
-%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghclibdocdir}/%1-%2} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci}\
|
|
|
|
+%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?1:--docdir=%{_docdir}/ghc-%1 --htmldir=%{ghclibdocdir}/%1-%2} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci}\
|
2012-01-11 21:21:36 +00:00
|
|
|
%cabal build\
|
2012-06-26 16:05:51 +00:00
|
|
|
%{nil}
|
|
|
|
|