diff --git a/libselinux-rhat.patch b/libselinux-rhat.patch index 9e03e0f..e78a345 100644 --- a/libselinux-rhat.patch +++ b/libselinux-rhat.patch @@ -1225,3 +1225,16 @@ diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinuxswig_wrap.c libsel SWIG_Python_SetConstant(d, "MATCHPATHCON_BASEONLY",SWIG_From_int((int)(1))); SWIG_Python_SetConstant(d, "MATCHPATHCON_NOTRANS",SWIG_From_int((int)(2))); } +diff --exclude-from=exclude -N -u -r nsalibselinux/Makefile libselinux-2.0.23/Makefile +--- nsalibselinux/Makefile 2007-06-01 10:44:08.000000000 -0400 ++++ libselinux-2.0.13/Makefile 2007-06-26 05:11:37.000000000 -0400 +@@ -20,6 +20,9 @@ + $(MAKE) -C src + $(MAKE) -C utils + ++swigify: ++ $(MAKE) -C src swigify ++ + pywrap: + $(MAKE) -C src pywrap + diff --git a/libselinux.spec b/libselinux.spec index 8824d31..c03b5f2 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -2,7 +2,7 @@ Summary: SELinux library and simple utilities Name: libselinux Version: 2.0.14 -Release: 1%{?dist} +Release: 2%{?dist} License: Public domain (uncopyrighted) Group: System Environment/Libraries Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz @@ -53,6 +53,7 @@ needed for developing SELinux applications. %build make clean +make CFLAGS="-g %{optflags}" swigify make CFLAGS="-g %{optflags}" all pywrap %install @@ -121,6 +122,10 @@ exit 0 %{_libdir}/python*/site-packages/selinux.py* %changelog +* Tue Apr 24 2007 Dan Walsh - 2.0.14-2 +- Update swig on each build +- Fix segfault on x86 platforms + * Tue Apr 24 2007 Dan Walsh - 2.0.14-1 - Upgrade to upstream * Merged build fix for avc_internal.c from Joshua Brindle.