Summary: 3D printer control software
Name: cura
-Version: 3.5.1
-Release: 3
+Version: 4.5.0
+Release: 1
Epoch: 1
Group: Applications/Engineering
# Code is AGPLv3
# TweakAtZ.py is CC-BY-SA
License: AGPLv3 and CC-BY-SA
Source0: https://github.com/Ultimaker/Cura/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: a8b1de1bb8cfc043aa1d742f2cc78911
+# Source0-md5: b02b95a4669110cff62f96e1bb00b1b5
Source1: https://github.com/Ultimaker/fdm_materials/archive/%{version}/fdm_materials-%{version}.tar.gz
-# Source1-md5: 7d0bcfe67173f8fd616ac5ca55eb815b
+# Source1-md5: 449b2301efb4a4616c5c610bae173d0d
Patch0: plugins-path.patch
URL: https://ultimaker.com/en/products/cura-software
BuildRequires: cmake
%{__mv} "resources/i18n/$bad_lang" "resources/i18n/$lang"
done
-# The setup.py is only useful for py2exe, remove it, so noone is tempted to use it
-%{__rm} setup.py
-
# Upstream installs to lib/python3/dist-packages
# We want to install to %{py3_sitescriptdir}
-%{__sed} -i 's|lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.*/.*-packages|%(echo %{py3_sitescriptdir} | sed -e s@%{_prefix}/@@)|g' CMakeLists.txt
+%{__sed} -i 's|lib${LIB_SUFFIX}/python${Python3_VERSION_MAJOR}.*/.*-packages|%(echo %{py3_sitescriptdir} | sed -e s@%{_prefix}/@@)|g' CMakeLists.txt
# Wrong shebang
%{__sed} -i '1s=^#!%{_bindir}/\(python\|env python\)3*=#!%{__python3}=' cura_app.py
if not hasattr(sys, "frozen"):
self._plugin_registry.addPluginLocation(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "plugins"))
self._plugin_registry.loadPlugin("ConsoleLogger")
---- Cura-2.5.0/CMakeLists.txt~ 2017-05-14 00:42:31.000000000 +0200
-+++ Cura-2.5.0/CMakeLists.txt 2017-05-14 11:18:14.335558709 +0200
-@@ -36,7 +36,7 @@
- install(DIRECTORY resources
- DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
- install(DIRECTORY plugins
-- DESTINATION lib${LIB_SUFFIX}/cura)
-+ DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
- if(NOT APPLE AND NOT WIN32)
- install(FILES cura_app.py
- DESTINATION ${CMAKE_INSTALL_BINDIR}
+--- Cura-2.5.0/cmake/CuraPluginInstall.cmake~ 2018-11-04 14:15:43.000000000 +0100
++++ Cura-2.5.0/cmake/CuraPluginInstall.cmake 2018-11-04 14:16:18.346958842 +0100
+@@ -84,6 +84,6 @@
+ message(STATUS "[+] PLUGIN TO INSTALL: ${_rel_plugin_dir}")
+ get_filename_component(_rel_plugin_parent_dir ${_rel_plugin_dir} DIRECTORY)
+ install(DIRECTORY ${_rel_plugin_dir}
+- DESTINATION lib${LIB_SUFFIX}/cura/${_rel_plugin_parent_dir}
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/cura/${_rel_plugin_parent_dir}
+ PATTERN "__pycache__" EXCLUDE
+ PATTERN "*.qmlc" EXCLUDE
+ )