2013-07-31 15:36:43 +00:00
|
|
|
Index: ghc-rpm-macros-237337a6c6b3299bc6a437446c7f17136fc67ffa/ghc-rpm-macros.ghc
|
2012-11-21 16:46:08 +00:00
|
|
|
===================================================================
|
2013-07-31 15:36:43 +00:00
|
|
|
--- ghc-rpm-macros-237337a6c6b3299bc6a437446c7f17136fc67ffa.orig/ghc-rpm-macros.ghc
|
|
|
|
+++ ghc-rpm-macros-237337a6c6b3299bc6a437446c7f17136fc67ffa/ghc-rpm-macros.ghc
|
|
|
|
@@ -92,15 +92,25 @@ Requires: ghc-%{?pkg_name}%{!?pkg_
|
2012-11-21 16:46:08 +00:00
|
|
|
find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -exec strip "{}" \\;\
|
|
|
|
%endif
|
|
|
|
|
|
|
|
+# ghc_suse_disable_debug_packages
|
|
|
|
+%ghc_suse_disable_debug_packages\
|
|
|
|
+%global debug_package %{nil}\
|
|
|
|
+%global __debug_install_post %{nil}\
|
|
|
|
+%global suse_insert_debug_package %{nil}\
|
|
|
|
+echo "/usr/lib/debug" > debugfiles.list\
|
2013-10-11 19:15:01 +00:00
|
|
|
+mkdir -p %{buildroot}/usr/lib/debug\
|
2012-11-21 16:46:08 +00:00
|
|
|
+echo "/usr/src/debug" > debugsources.list\
|
2013-10-11 19:15:01 +00:00
|
|
|
+mkdir -p %{buildroot}/usr/src/debug
|
2012-11-21 16:46:08 +00:00
|
|
|
+
|
|
|
|
# ghc_bin_build
|
|
|
|
%ghc_bin_build\
|
|
|
|
-%global debug_package %{nil}\
|
|
|
|
+%ghc_suse_disable_debug_packages\
|
|
|
|
%cabal_configure\
|
|
|
|
%cabal build
|
|
|
|
|
|
|
|
# ghc_lib_build_without_haddock [name] [version]
|
|
|
|
%ghc_lib_build_without_haddock()\
|
|
|
|
-%global debug_package %{nil}\
|
|
|
|
+%ghc_suse_disable_debug_packages\
|
2013-07-31 15:36:43 +00:00
|
|
|
%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-11-21 16:46:08 +00:00
|
|
|
%cabal build\
|
|
|
|
%{nil}
|