From 07f858eab5d00b3fcdbbf2fc766a57016f9205c7 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 23 Jun 2010 10:05:24 +0000 Subject: [PATCH] replace ghc_strip_shared with ghc_strip_dynlinked --- ghc-rpm-macros.ghc | 4 ++-- ghc-rpm-macros.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) 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