[NLopt/el5] fix build for el5

Björn Esser besser82 at fedoraproject.org
Fri Dec 20 16:29:15 UTC 2013


commit 74ef89fe84696531d542f9e5e1b2f3c498cf4da0
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Fri Dec 20 17:28:52 2013 +0100

    fix build for el5

 NLopt.spec |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/NLopt.spec b/NLopt.spec
index cec1b55..8238065 100644
--- a/NLopt.spec
+++ b/NLopt.spec
@@ -220,10 +220,10 @@ done
 
 # On el5 we need to exclude anything SWIG-related.
 #%%{?el5:sed -i -e 's!swig!!g' Makefile.am}
-%{?el5:	_file="swig/Makefile.am" &&						\\
-	mv -f ${_file} ${_file}.orig &&						\\
-	touch ${_file} &&							\\
-	touch -r ${_file}.orig ${_file}}
+%{?el5:	_file="swig/Makefile.am" &&						\
+	mv -f ${_file} ${_file}.orig &&						\
+	touch -r ${_file}.orig ${_file}} &&					\
+	rm -f ${_file}.orig
 
 # Bootstrapping once before we create a copy in %%{py3dir}.
 touch swig/nlopt.scm.in


More information about the scm-commits mailing list