ea07ce2172
- Add xxxx-fix-python-mapscript-soversion-install-issue.patch to fix broken installing of mapscript python module - Exclude ruby from build for sles11 because of missing ruby dependencies - Use ruby-common as build dependency instead of outdated ruby-macros OBS-URL: https://build.opensuse.org/request/show/368007 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=101
21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
diff --git a/mapscript/python/CMakeLists.txt b/mapscript/python/CMakeLists.txt
|
|
index 33945b2..a14c246 100644
|
|
--- a/mapscript/python/CMakeLists.txt
|
|
+++ b/mapscript/python/CMakeLists.txt
|
|
@@ -34,7 +34,14 @@ SWIG_ADD_MODULE(pythonmapscript python ../mapscript.i pygdioctx/pygdioctx.c)
|
|
SWIG_LINK_LIBRARIES(pythonmapscript ${PYTHON_LIBRARIES} ${MAPSERVER_LIBMAPSERVER})
|
|
|
|
set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES PREFIX "")
|
|
-set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES OUTPUT_NAME _mapscript)
|
|
+set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES OUTPUT_NAME _mapscript)
|
|
+
|
|
+if(NOT APPLE)
|
|
+ set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES
|
|
+ VERSION ${MapServer_VERSION_STRING}
|
|
+ SOVERSION ${MapServer_SOVERSION}
|
|
+ )
|
|
+endif(NOT APPLE)
|
|
|
|
|
|
execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
|