rpms/setools/devel setools.spec,1.81,1.82

Dennis Gilmore ausil at fedoraproject.org
Thu Sep 18 03:11:30 UTC 2008


Author: ausil

Update of /cvs/pkgs/rpms/setools/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7486

Modified Files:
	setools.spec 
Log Message:
allow building on sparc and s390



Index: setools.spec
===================================================================
RCS file: /cvs/pkgs/rpms/setools/devel/setools.spec,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- setools.spec	26 Aug 2008 14:23:07 -0000	1.81
+++ setools.spec	18 Sep 2008 03:11:00 -0000	1.82
@@ -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 @@
 %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 @@
 %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 @@
 %postun libs-tcl -p /sbin/ldconfig
 
 %changelog
+* Wed Sep 17 2008 Dennis Gilmore <dennis at ausil.us> 3.3.5-2
+- fix building in sparc and s390 arches
+
 * Tue Aug 26 2008 Chris PeBenito <cpebenito at tresys.com> 3.3.5-1
 - Update to upstream version 3.3.5.
 




More information about the fedora-extras-commits mailing list