fix ghc_strip_dynlinked when no dynlinked files

This commit is contained in:
Jens Petersen 2010-07-31 15:38:47 +10:00
parent c0cc849b33
commit 724cc3449e
2 changed files with 5 additions and 2 deletions

View File

@ -201,7 +201,7 @@ This package contains the profiling library.\
# ghc_strip_dynlinked
%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\
find $RPM_BUILD_ROOT -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -exec strip "{}" \\;\
%endif
# ghc_bin_build

View File

@ -1,5 +1,5 @@
Name: ghc-rpm-macros
Version: 0.7.1
Version: 0.7.2
Release: 1%{?dist}
Summary: Macros for building packages for GHC
@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Sat Jul 31 2010 Jens Petersen <petersen@redhat.com> - 0.7.2-1
- fix ghc_strip_dynlinked when no dynlinked files
* Mon Jun 28 2010 Jens Petersen <petersen@redhat.com> - 0.7.1-1
- support hscolour'ing of src from haddock
- really remove redundant summary and description option flags