From eaf24211e8503db15a3e680375acf2b5502f4437 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 20 Jun 2010 12:44:49 +0000 Subject: [PATCH] add ghc_strip_shared to strip shared libraries --- ghc-rpm-macros.ghc | 3 +++ ghc-rpm-macros.spec | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index b043fc9..9ee61ce 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -199,3 +199,6 @@ This package contains the profiling library.\ %files -n %{ghc_pkg_name}-prof -f %{ghc_pkg_name}-prof.files\ %defattr(-,root,root,-)\ %{nil} + +# ghc_strip_shared +%ghc_strip_shared find $RPM_BUILD_ROOT%{ghcpkgbasedir} -name "*.so" | xargs strip diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 36b7c3c..14ac62c 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -1,5 +1,5 @@ Name: ghc-rpm-macros -Version: 0.5.7 +Version: 0.5.8 Release: 1%{?dist} Summary: Macros for building packages for GHC @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Jun 20 2010 Jens Petersen - 0.5.8-1 +- add ghc_strip_shared to strip shared libraries + * Sun Jun 20 2010 Jens Petersen - 0.5.7-1 - add comments over macros - drop unused cabal_makefile