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.