[packages/setools] - fix python bindings install - rel 5

baggins baggins at pld-linux.org
Thu May 5 11:10:16 CEST 2016


commit a25e1926c564e25b681cdeed5c49d8be970f8d62
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu May 5 11:09:59 2016 +0200

    - fix python bindings install
    - rel 5

 python-prefix.patch | 11 +++++++++++
 setools.spec        |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/setools.spec b/setools.spec
index 52ea280..022e2f6 100644
--- a/setools.spec
+++ b/setools.spec
@@ -7,7 +7,7 @@ Summary:	Policy analysis tools for SELinux
 Summary(pl.UTF-8):	Narzędzia do analizy polityk SELinuksa
 Name:		setools
 Version:	3.3.8
-Release:	4
+Release:	5
 License:	GPL v2+ (tools), LGPL v2.1+ (libraries)
 Group:		Applications/System
 #Source0Download: http://oss.tresys.com/projects/setools/wiki/download
@@ -24,6 +24,7 @@ Patch6:		%{name}-x32.patch
 Patch7:		%{name}-swig-version.patch
 Patch8:		%{name}-sepol.patch
 Patch9:		%{name}-selinux.patch
+Patch10:	python-prefix.patch
 URL:		https://github.com/TresysTechnology/setools3/wiki
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake
@@ -273,6 +274,7 @@ Ten pakiet zawiera wiązania Tcl-a do bibliotek uruchomieniowych:
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 %build
 %{__libtoolize}
diff --git a/python-prefix.patch b/python-prefix.patch
new file mode 100644
index 0000000..920b4e0
--- /dev/null
+++ b/python-prefix.patch
@@ -0,0 +1,11 @@
+--- setools-3.3.8/python/setools/Makefile.am~	2013-01-16 17:36:22.000000000 +0100
++++ setools-3.3.8/python/setools/Makefile.am	2016-05-05 11:07:24.558491996 +0200
+@@ -25,7 +25,7 @@
+ 	LIBS="$(QPOL_LIB_FLAG) $(APOL_LIB_FLAG)" INCLUDES="$(QPOL_CFLAGS) $(APOL_CFLAGS)" $(PYTHON) setup.py build
+ 
+ install-exec-hook:
+-	$(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
++	$(PYTHON) setup.py install --prefix=$(prefix) `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
+ 
+ uninstall-hook: 
+ 	$(PYTHON) setup.py uninstall `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/setools.git/commitdiff/a25e1926c564e25b681cdeed5c49d8be970f8d62



More information about the pld-cvs-commit mailing list