[packages/python3-Uranium] - fix plugin search path - rel 2

baggins baggins at pld-linux.org
Sun May 14 11:27:25 CEST 2017


commit 6cdd203119c96f249c9711ec2ad33f523a91fb09
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun May 14 11:27:10 2017 +0200

    - fix plugin search path
    - rel 2

 plugins-install.patch | 10 ----------
 plugins-path.patch    | 21 +++++++++++++++++++++
 python3-Uranium.spec  |  4 ++--
 3 files changed, 23 insertions(+), 12 deletions(-)
---
diff --git a/python3-Uranium.spec b/python3-Uranium.spec
index 14d9e52..8c1cc73 100644
--- a/python3-Uranium.spec
+++ b/python3-Uranium.spec
@@ -2,13 +2,13 @@
 Summary:	A Python framework for building desktop applications
 Name:		python3-%{module}
 Version:	2.5.0
-Release:	1
+Release:	2
 License:	AGPLv3+
 Group:		Libraries/Python
 URL:		https://github.com/Ultimaker/Uranium
 Source0:	https://github.com/Ultimaker/Uranium/archive/%{version}/%{module}-%{version}.tar.gz
 # Source0-md5:	28586f24c35d99e5730692defd728b3e
-Patch0:		plugins-install.patch
+Patch0:		plugins-path.patch
 BuildRequires:	cmake
 BuildRequires:	doxygen
 BuildRequires:	gettext-tools
diff --git a/plugins-install.patch b/plugins-install.patch
deleted file mode 100644
index 924aa3f..0000000
--- a/plugins-install.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- Uranium-2.5.0/CMakeLists.txt~	2017-05-13 23:51:30.000000000 +0200
-+++ Uranium-2.5.0/CMakeLists.txt	2017-05-13 23:56:38.423247507 +0200
-@@ -64,6 +64,6 @@
- install(FILES ${CMAKE_SOURCE_DIR}/cmake/UraniumTranslationTools.cmake
-         DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/ )
- install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium)
--install(DIRECTORY plugins DESTINATION lib/uranium)
-+install(DIRECTORY plugins DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium)
- 
- include(CPackConfig.cmake)
diff --git a/plugins-path.patch b/plugins-path.patch
new file mode 100644
index 0000000..4603c0e
--- /dev/null
+++ b/plugins-path.patch
@@ -0,0 +1,21 @@
+--- Uranium-2.5.0/CMakeLists.txt~	2017-05-13 23:51:30.000000000 +0200
++++ Uranium-2.5.0/CMakeLists.txt	2017-05-13 23:56:38.423247507 +0200
+@@ -64,6 +64,6 @@
+ install(FILES ${CMAKE_SOURCE_DIR}/cmake/UraniumTranslationTools.cmake
+         DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/ )
+ install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium)
+-install(DIRECTORY plugins DESTINATION lib/uranium)
++install(DIRECTORY plugins DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium)
+ 
+ include(CPackConfig.cmake)
+--- Uranium-2.5.0/UM/Application.py~	2017-04-13 15:03:28.000000000 +0200
++++ Uranium-2.5.0/UM/Application.py	2017-05-14 11:25:56.345442852 +0200
+@@ -95,7 +95,7 @@
+ 
+         self._plugin_registry = PluginRegistry.getInstance()
+ 
+-        self._plugin_registry.addPluginLocation(os.path.join(Application.getInstallPrefix(), "lib", "uranium"))
++        self._plugin_registry.addPluginLocation(os.path.join(Application.getInstallPrefix(), "share", "uranium"))
+         self._plugin_registry.addPluginLocation(os.path.join(os.path.dirname(sys.executable), "plugins"))
+         self._plugin_registry.addPluginLocation(os.path.join(Application.getInstallPrefix(), "Resources", "uranium", "plugins"))
+         self._plugin_registry.addPluginLocation(os.path.join(Application.getInstallPrefix(), "Resources", self.getApplicationName(), "plugins"))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-Uranium.git/commitdiff/6cdd203119c96f249c9711ec2ad33f523a91fb09



More information about the pld-cvs-commit mailing list