[setools] switch in -fPIC in Makefile.am in prep stage Makefiles were being re-written in %build

Dennis Gilmore ausil at fedoraproject.org
Mon Feb 28 03:38:40 UTC 2011


commit f1f2c585e99ff87e4dd900302855158031206142
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Sun Feb 27 21:38:04 2011 -0600

    switch in -fPIC in Makefile.am in prep stage Makefiles were being re-written in %build

 setools.spec |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/setools.spec b/setools.spec
index b5f7b74..92f9afd 100644
--- a/setools.spec
+++ b/setools.spec
@@ -5,7 +5,7 @@
 
 Name: setools
 Version: %{setools_maj_ver}.%{setools_min_ver}
-Release: 12%{?dist}
+Release: 13%{?dist}
 License: GPLv2
 URL: http://oss.tresys.com/projects/setools
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -194,6 +194,11 @@ This package includes the following graphical tools:
 %patch3 -p 1 -b .neverallow
 %patch4 -p 1 -b .cmdline
 
+%ifarch sparc sparcv9 sparc64 s390 s390x
+    for file in `find . -name Makefile.am`; do
+        sed -i -e 's:-fpic:-fPIC:' $file;
+    done
+%endif
 # Fixup expected version of SWIG:
 sed -i -e "s|AC_PROG_SWIG(1.3.28)|AC_PROG_SWIG(2.0.0)|g" configure.ac
 # and rebuild the configure script:
@@ -205,11 +210,6 @@ autoconf
     --enable-swig-python --enable-swig-java --enable-swig-tcl --with-java-prefix=/usr/lib/jvm/java
 # work around issue with gcc 4.3 + gnu99 + swig-generated code:
 sed -i -e 's:$(CC):gcc -std=gnu89:' libseaudit/swig/python/Makefile
-%ifarch sparc sparcv9 sparc64 s390 s390x                                                                                                
-    for file in `find . -name Makefile`; do                                                                                             
-        sed -i -e 's:-fpic:-fPIC:' $file;                                                                                               
-    done                                                                                                                                
-%endif           
 make %{?_smp_mflags}
 
 %install
@@ -359,6 +359,9 @@ rm -rf ${RPM_BUILD_ROOT}
 %postun libs-tcl -p /sbin/ldconfig
 
 %changelog
+* Sun Feb 27 2011 Dennis Gilmore <dennis at ausil.us> - 3.3.7-13
+- switch in -fPIC in Makefile.am in prep stage
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.3.7-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list