From 60a222ac3f1340b110f2e651a6cf732e04cb7050 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 18 Sep 2008 03:11:00 +0000 Subject: [PATCH] allow building on sparc and s390 --- setools.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/setools.spec b/setools.spec index 22c0b53..5751dc0 100644 --- a/setools.spec +++ b/setools.spec @@ -5,7 +5,7 @@ Name: setools Version: %{setools_maj_ver}.%{setools_min_ver} -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 URL: http://oss.tresys.com/projects/setools BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -190,6 +190,11 @@ This package includes the following graphical tools: %configure --libdir=%{_libdir} --disable-bwidget-check --disable-selinux-check --enable-swig-python --enable-swig-java --enable-swig-tcl # 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 @@ -241,7 +246,7 @@ rm -rf ${RPM_BUILD_ROOT} %files libs-python %defattr(-,root,root,-) %{pkg_py_lib}/ -%ifarch x86_64 ppc64 +%ifarch x86_64 ppc64 sparc64 %{pkg_py_arch}/ %endif @@ -337,6 +342,9 @@ rm -rf ${RPM_BUILD_ROOT} %postun libs-tcl -p /sbin/ldconfig %changelog +* Wed Sep 17 2008 Dennis Gilmore 3.3.5-2 +- fix building in sparc and s390 arches + * Tue Aug 26 2008 Chris PeBenito 3.3.5-1 - Update to upstream version 3.3.5.