forked from pool/ghc-rpm-macros
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
|
Index: ghc-rpm-macros/ghc-rpm-macros.ghc
|
||
|
===================================================================
|
||
|
--- ghc-rpm-macros.orig/ghc-rpm-macros.ghc
|
||
|
+++ ghc-rpm-macros/ghc-rpm-macros.ghc
|
||
|
@@ -241,15 +241,26 @@ This package contains the development fi
|
||
|
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\
|
||
|
+mkdir -p $RPM_BUILD_ROOT/usr/lib/debug\
|
||
|
+echo "/usr/src/debug" > debugsources.list\
|
||
|
+mkdir -p $RPM_BUILD_ROOT/usr/src/debug
|
||
|
+
|
||
|
+
|
||
|
# 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\
|
||
|
%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?1:--docdir=%{_docdir}/ghc-%1 --htmldir=%{ghclibdocdir}/%1} %{!?ghc_with_lib_for_ghci:--disable-library-for-ghci}\
|
||
|
%cabal build\
|
||
|
%{nil}
|