[cegui] Added upstream patch regarding platform specific python sitearch

Martin Preisler mpreisle at fedoraproject.org
Thu Jun 5 15:11:29 UTC 2014


commit c5687912f5470d316a109b3791cbf86e8b5a063c
Author: Martin Preisler <mpreisle at redhat.com>
Date:   Thu Jun 5 17:11:08 2014 +0200

    Added upstream patch regarding platform specific python sitearch
    
    This will also be in the 0.8.4 release.

 cegui-0.8.3-python-sitearch.patch |   20 ++++++++++++++++++++
 cegui.spec                        |    2 ++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/cegui-0.8.3-python-sitearch.patch b/cegui-0.8.3-python-sitearch.patch
new file mode 100644
index 0000000..7b94e7e
--- /dev/null
+++ b/cegui-0.8.3-python-sitearch.patch
@@ -0,0 +1,20 @@
+# HG changeset patch
+# User Martin Preisler <martin at preisler.me>
+# Date 1401904299 -7200
+# Branch v0-8
+# Node ID 2ddb324c125a41be544793d85c432b0923599d49
+# Parent  807a7684a50f3dd82efd0e1000d574b2a094849a
+We need to install PyCEGUI into the platform specific python site-packages
+
+PyCEGUI is a binary platform specific binding.
+
+diff --git a/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt b/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt
+--- a/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt
++++ b/cegui/src/ScriptModules/Python/bindings/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ execute_process(
+-    COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(prefix=\"\")"
++    COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=True, prefix=\"\")"
+     OUTPUT_VARIABLE CEGUI_PYTHON_INSTALL_DIR
+     OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
diff --git a/cegui.spec b/cegui.spec
index 8572e16..f04f00b 100644
--- a/cegui.spec
+++ b/cegui.spec
@@ -11,6 +11,7 @@ License:        MIT
 URL:            http://www.cegui.org.uk
 Source0:        http://downloads.sourceforge.net/crayzedsgui/cegui-%{version}.tar.gz
 Patch0:         cegui-0.8.3-cmake-cmp0045.patch
+Patch1:         cegui-0.8.3-python-sitearch.patch
 BuildRequires:  DevIL-devel
 BuildRequires:  freeimage-devel
 BuildRequires:  expat-devel
@@ -158,6 +159,7 @@ OpenGLRenderer (module PyCEGUIOpenGLRenderer).
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 # Encoding fixes (fixed upstream, should be removed with 0.8.4 release)
 iconv -f iso8859-1 doc/README -t utf8 > doc/README.conv


More information about the scm-commits mailing list