diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index 9ee61ce..6607546 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -200,5 +200,5 @@ This package contains the profiling library.\ %defattr(-,root,root,-)\ %{nil} -# ghc_strip_shared -%ghc_strip_shared find $RPM_BUILD_ROOT%{ghcpkgbasedir} -name "*.so" | xargs strip +# ghc_strip_dynlinked +%ghc_strip_dynlinked find $RPM_BUILD_ROOT -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print | xargs strip diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 14ac62c..e7ca748 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -1,5 +1,5 @@ Name: ghc-rpm-macros -Version: 0.5.8 +Version: 0.5.9 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.5.9-1 +- replace ghc_strip_shared with ghc_strip_dynlinked + * Sun Jun 20 2010 Jens Petersen - 0.5.8-1 - add ghc_strip_shared to strip shared libraries