2015-08-27 16:00:57 +00:00
|
|
|
Index: ghc-rpm-macros-1.4.93/macros.ghc
|
2015-02-24 07:57:44 +00:00
|
|
|
===================================================================
|
2015-08-27 16:00:57 +00:00
|
|
|
--- ghc-rpm-macros-1.4.93.orig/macros.ghc
|
|
|
|
+++ ghc-rpm-macros-1.4.93/macros.ghc
|
|
|
|
@@ -26,9 +26,7 @@ fi
|
2015-02-24 07:57:44 +00:00
|
|
|
%cabal_configure\
|
|
|
|
%ghc_check_bootstrap\
|
2015-08-27 16:00:57 +00:00
|
|
|
%global _hardened_ldflags %{nil}\
|
2015-02-24 07:57:44 +00:00
|
|
|
-CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS\
|
|
|
|
-LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS\
|
2015-08-27 16:00:57 +00:00
|
|
|
-%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{ghc_pkgdocdir} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} --ghc-options="$(echo ' '$CFLAGS | sed -e 's/ / -optc/g') $(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')" %{?cabal_configure_options} $cabal_configure_extra_options
|
2015-02-24 07:57:44 +00:00
|
|
|
+%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
|
|
|
|
# install
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} -v
|