[udt/el5: 2/2] Fix sed substitutions in case of slashes in rpm macros

Mattias Ellert ellert at fedoraproject.org
Sat Mar 7 09:47:04 UTC 2015


commit 547dcf80ae2c97b6b8eded6be902e38852591d26
Author: Mattias Ellert <mattias.ellert at fysast.uu.se>
Date:   Sat Mar 7 10:46:39 2015 +0100

    Fix sed substitutions in case of slashes in rpm macros

 udt.spec | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/udt.spec b/udt.spec
index 7ac18fa..fb001bd 100644
--- a/udt.spec
+++ b/udt.spec
@@ -1,6 +1,6 @@
 Name:		udt
 Version:	4.11
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	UDP based Data Transfer Protocol
 Group:		System Environment/Libraries
 
@@ -30,10 +30,10 @@ UDT development files.
 %prep
 %setup -q -n udt4
 
-sed 's/-O3/%{optflags}/' -i src/Makefile app/Makefile
-sed 's/-shared/& %{?__global_ldflags} -lpthread -Wl,-soname,libudt.so.0/' \
+sed 's!-O3!%{optflags}!' -i src/Makefile app/Makefile
+sed 's!-shared!& %{?__global_ldflags} -lpthread -Wl,-soname,libudt.so.0!' \
     -i src/Makefile
-sed 's/LDFLAGS =/& %{?__global_ldflags}/' -i app/Makefile
+sed 's!LDFLAGS =!& %{?__global_ldflags}!' -i app/Makefile
 sed 's/\r//' -i doc/doc/udtdoc.css
 
 %build
@@ -77,6 +77,9 @@ rm -rf %{buildroot}
 %doc doc
 
 %changelog
+* Sat Mar 07 2015 Mattias Ellert <mattias.ellert at fysast.uu.se> - 4.11-4
+- Fix sed substitutions in case of slashes in rpm macros
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.11-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list