rpms/libsemanage/devel libsemanage-rhat.patch, 1.8, 1.9 libsemanage.spec, 1.64, 1.65

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Sat Jan 14 04:52:51 UTC 2006


Author: dwalsh

Update of /cvs/dist/rpms/libsemanage/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv29569

Modified Files:
	libsemanage-rhat.patch libsemanage.spec 
Log Message:


libsemanage-rhat.patch:
 Makefile     |    6 ++++++
 src/Makefile |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

Index: libsemanage-rhat.patch
===================================================================
RCS file: /cvs/dist/rpms/libsemanage/devel/libsemanage-rhat.patch,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- libsemanage-rhat.patch	13 Jan 2006 22:31:44 -0000	1.8
+++ libsemanage-rhat.patch	14 Jan 2006 04:52:46 -0000	1.9
@@ -1,45 +1,42 @@
-diff --exclude-from=exclude -N -u -r nsalibsemanage/src/fcontext_record.c libsemanage-1.5.9/src/fcontext_record.c
---- nsalibsemanage/src/fcontext_record.c	2006-01-06 10:33:10.000000000 -0500
-+++ libsemanage-1.5.9/src/fcontext_record.c	2006-01-06 13:40:38.000000000 -0500
-@@ -81,8 +81,18 @@
- 	const semanage_fcontext_t* fcontext, 
- 	const semanage_fcontext_key_t* key) {
- 
--	return strcmp(fcontext->expr, key->expr) && 
--		(fcontext->type == key->type);
-+	int rv = strcmp(fcontext->expr, key->expr);
-+	if (rv != 0)
-+		return rv;
-+	else {
-+		if (fcontext->type < key->type)	
-+			return -1;
-+	
-+		else if (key->type < fcontext->type)
-+			return 1;
-+	
-+		else return 0;
-+	}
- }
- hidden_def(semanage_fcontext_compare)
- 
-@@ -90,8 +100,18 @@
- 	const semanage_fcontext_t* fcontext,
- 	const semanage_fcontext_t* fcontext2) {
- 
--	return strcmp(fcontext->expr, fcontext2->expr) &&
--		(fcontext->type == fcontext2->type);
-+	int rv = strcmp(fcontext->expr, fcontext2->expr);
-+	if (rv != 0)
-+		return rv;
-+	else {
-+		if (fcontext->type < fcontext2->type)
-+			return -1;
+diff --exclude-from=exclude -N -u -r nsalibsemanage/Makefile libsemanage-1.5.14/Makefile
+--- nsalibsemanage/Makefile	2006-01-05 10:33:10.000000000 -0500
++++ libsemanage-1.5.14/Makefile	2006-01-13 23:46:32.000000000 -0500
+@@ -1,11 +1,17 @@
+ all: 
+ 	$(MAKE) -C src all
+ 
++pywrap: 
++	$(MAKE) -C src pywrap
 +
-+		else if (fcontext2->type < fcontext->type)
-+			return 1;
+ install: 
+ 	$(MAKE) -C include install
+ 	$(MAKE) -C src install
+ 	$(MAKE) -C man install
+ 
++install-pywrap: 
++	$(MAKE) -C src install-pywrap
 +
-+		else return 0;
-+	}
- }
- hidden_def(semanage_fcontext_compare2)
+ relabel:
+ 
+ clean:
+diff --exclude-from=exclude -N -u -r nsalibsemanage/src/Makefile libsemanage-1.5.14/src/Makefile
+--- nsalibsemanage/src/Makefile	2005-11-29 10:54:15.000000000 -0500
++++ libsemanage-1.5.14/src/Makefile	2006-01-13 23:46:17.000000000 -0500
+@@ -37,7 +37,7 @@
+ 
+ SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./
+ 
+-all: $(LIBA) $(LIBSO) $(SWIGSO)
++all: $(LIBA) $(LIBSO) 
+ 
+ pywrap: all $(SWIGLOBJ) $(SWIGSO) 
+ 
+@@ -75,7 +75,7 @@
+ swigify: $(SWIGIF)
+ 	$(SWIG) $^
  
+-install: all install-pywrap 
++install: all 
+ 	test -d $(LIBDIR) || install -m 755 -d $(LIBDIR)
+ 	install -m 644 $(LIBA) $(LIBDIR)
+ 	test -d $(SHLIBDIR) || install -m 755 -d $(SHLIBDIR)


Index: libsemanage.spec
===================================================================
RCS file: /cvs/dist/rpms/libsemanage/devel/libsemanage.spec,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- libsemanage.spec	13 Jan 2006 22:36:39 -0000	1.64
+++ libsemanage.spec	14 Jan 2006 04:52:47 -0000	1.65
@@ -3,10 +3,11 @@
 Summary: SELinux binary policy manipulation library 
 Name: libsemanage
 Version: 1.5.14
-Release: 1
+Release: 2
 License: GPL
 Group: System Environment/Libraries
 Source: http://www.nsa.gov/selinux/archives/libsemanage-%{version}.tgz
+Patch: libsemanage-rhat.patch
 
 BuildRoot: %{_tmppath}/%{name}-buildroot
 BuildRequires: libselinux-devel >= %{libselinuxver} 
@@ -39,17 +40,18 @@
 
 %prep
 %setup -q
+%patch -p1 -b .rhat
 
 %build
 make clean
-make CFLAGS="%{optflags}"
+make CFLAGS="%{optflags}" all pywrap
 
 %install
 rm -rf ${RPM_BUILD_ROOT}
 mkdir -p ${RPM_BUILD_ROOT}/%{_lib} 
 mkdir -p ${RPM_BUILD_ROOT}/%{_libdir} 
 mkdir -p ${RPM_BUILD_ROOT}%{_includedir} 
-make DESTDIR="${RPM_BUILD_ROOT}" LIBDIR="${RPM_BUILD_ROOT}%{_libdir}" SHLIBDIR="${RPM_BUILD_ROOT}/%{_lib}" install
+make DESTDIR="${RPM_BUILD_ROOT}" LIBDIR="${RPM_BUILD_ROOT}%{_libdir}" SHLIBDIR="${RPM_BUILD_ROOT}/%{_lib}" install install-pywrap
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
@@ -76,6 +78,9 @@
 
 %changelog
 
+* Fri Jan 13 2006 Dan Walsh <dwalsh at redhat.com> 1.5.14-2
+- Break out python out of regular Makefile
+
 * Fri Jan 13 2006 Dan Walsh <dwalsh at redhat.com> 1.5.14-1
 - Upgrade to latest from NSA
 	* Merged disallow port overlap patch from Ivan Gyurdiev.




More information about the fedora-cvs-commits mailing list