[SoQt] Prevent empty LDFLAGS from choking sed.
corsepiu
corsepiu at fedoraproject.org
Sun Mar 11 10:34:06 UTC 2012
commit 2e34a2cf9c758240048bf6ca54fd7fd0882e8669
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date: Sun Mar 11 11:33:59 2012 +0100
Prevent empty LDFLAGS from choking sed.
SoQt.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/SoQt.spec b/SoQt.spec
index 75a68b9..03f5c51 100644
--- a/SoQt.spec
+++ b/SoQt.spec
@@ -4,7 +4,7 @@
Summary: High-level 3D visualization library
Name: SoQt
Version: 1.5.0
-Release: 4%{?dist}
+Release: 5%{?dist}
License: GPLv2
Group: System Environment/Libraries
@@ -82,7 +82,7 @@ sed -i -e "s|${RPM_OPT_FLAGS}||g" soqt-default.cfg SoQt.pc
# Strip ${LDFLAGS}
ldflags=$(echo "$LDFLAGS"| sed -e 's|^\s*||;s|\s*$||')
-sed -i -e "s|${ldflags}||g" soqt-default.cfg SoQt.pc
+test -n "${ldflags}" && sed -i -e "s|${ldflags}||g" soqt-default.cfg SoQt.pc
# soqt-config is arch dependent
sed -i -e "s,/share/Coin/conf/,/%{_lib}/Coin2/conf/,g" soqt-config
@@ -118,6 +118,9 @@ mv ${RPM_BUILD_ROOT}%{_datadir}/Coin2/conf ${RPM_BUILD_ROOT}%{_libdir}/Coin2
%{_libdir}/pkgconfig/SoQt.pc
%changelog
+* Sun Mar 11 2012 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.5.0-5
+- Prevent empty LDFLAGS from choking sed.
+
* Sun Mar 11 2012 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.5.0-4
- Modernize spec.
- Filter CFLAGS/LDFLAGS clutter in *.pc, *.cfg.
More information about the scm-commits
mailing list