[packages/openwsman] - fix python install dir - rel 5
baggins
baggins at pld-linux.org
Fri Jan 1 12:57:20 CET 2016
commit b47f87103a130b900cff4e6a8a51133bc48849ed
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Jan 1 12:57:03 2016 +0100
- fix python install dir
- rel 5
openwsman-python.patch | 22 ++++++++++++++++++++++
openwsman.spec | 2 +-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/openwsman.spec b/openwsman.spec
index ada04f7..78df4e2 100644
--- a/openwsman.spec
+++ b/openwsman.spec
@@ -14,7 +14,7 @@ Summary: Implementation of the Web Services Management specification (WS-Managem
Summary(pl.UTF-8): Implementacja specyfikacji Web Services Management (WS-Management)
Name: openwsman
Version: 2.6.2
-Release: 4
+Release: 5
License: BSD
Group: Libraries
Source0: https://github.com/Openwsman/openwsman/archive/v%{version}/%{name}-%{version}.tar.gz
diff --git a/openwsman-python.patch b/openwsman-python.patch
index eba3132..7901f05 100644
--- a/openwsman-python.patch
+++ b/openwsman-python.patch
@@ -11,3 +11,25 @@
MESSAGE(STATUS "Found PythonLibs...")
FIND_PACKAGE(PythonLinkLibs)
IF (PYTHON_LINK_LIBS)
+--- openwsman-2.6.2/src/plugins/swig/python/CMakeLists.txt~ 2015-10-19 15:27:46.000000000 +0200
++++ openwsman-2.6.2/src/plugins/swig/python/CMakeLists.txt 2015-12-31 16:50:25.747677518 +0100
+@@ -9,7 +9,7 @@
+
+ FIND_PACKAGE(PythonInterp REQUIRED)
+
+-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_LIB_DIR)
++EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(plat_specific=True,prefix='/usr'))" OUTPUT_VARIABLE PYTHON_LIB_DIR)
+
+ IF (NOT PYTHON_SITE_DIR)
+ SET (PYTHON_SITE_DIR ${PYTHON_LIB_DIR})
+--- openwsman-2.6.2/bindings/python/CMakeLists.txt~ 2015-10-19 15:27:46.000000000 +0200
++++ openwsman-2.6.2/bindings/python/CMakeLists.txt 2016-01-01 12:55:29.513957706 +0100
+@@ -12,7 +12,7 @@
+
+ add_subdirectory(tests)
+
+-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" OUTPUT_VARIABLE PYTHON_LIB_DIR)
++EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=True,prefix='/usr')" OUTPUT_VARIABLE PYTHON_LIB_DIR)
+ STRING(REPLACE "\n" "" PYTHON_LIB_DIR "${PYTHON_LIB_DIR}")
+
+ MESSAGE(STATUS "Python executable: ${PYTHON_EXECUTABLE}")
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openwsman.git/commitdiff/b47f87103a130b900cff4e6a8a51133bc48849ed
More information about the pld-cvs-commit
mailing list