diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index 6607546..87cb302 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -201,4 +201,7 @@ This package contains the profiling library.\ %{nil} # ghc_strip_dynlinked -%ghc_strip_dynlinked find $RPM_BUILD_ROOT -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print | xargs strip +%ghc_strip_dynlinked\ +%if 0%{!?__debug_package:1}\ +find $RPM_BUILD_ROOT -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print | xargs strip\ +%endif diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index e7ca748..ca283ef 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -1,5 +1,5 @@ Name: ghc-rpm-macros -Version: 0.5.9 +Version: 0.6.0 Release: 1%{?dist} Summary: Macros for building packages for GHC @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Jun 23 2010 Jens Petersen - 0.6.0-1 +- make ghc_strip_dynlinked conditional on no debug_package + * Wed Jun 23 2010 Jens Petersen - 0.5.9-1 - replace ghc_strip_shared with ghc_strip_dynlinked