From b86e7c01776f8ee2b2df42db8eb9a951fa80b0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 17 Jun 2018 16:23:43 +0200 Subject: [PATCH] Bytecompile the plugins explicitly --- cura.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cura.spec b/cura.spec index 613a8f6..bfbf3a1 100644 --- a/cura.spec +++ b/cura.spec @@ -1,7 +1,7 @@ Name: cura Epoch: 1 Version: 3.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: 3D printer control software # https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/MOUNX6I3POCDMYWBNJ7JPLLIKVYWVRBJ/ @@ -13,7 +13,8 @@ Source0: https://github.com/Ultimaker/Cura/archive/%{version}.tar.gz#/%{n BuildArch: noarch # There are Python plugins in /usr/lib/cura -# We need to byte-compile it with Python 3 +%global _python_bytecompile_extra 0 +# For backwards compatibility (not needed on F29+): %global __python %{__python3} BuildRequires: cmake @@ -94,6 +95,9 @@ popd rm -rf %{buildroot}%{_datadir}/%{name}/resources/themes/cura-light/fonts/ ln -s %{_datadir}/fonts/open-sans/ %{buildroot}%{_datadir}/%{name}/resources/themes/cura-light/fonts +# Bytecompile the plugins +%py_byte_compile %{__python3} %{buildroot}%{_prefix}/lib/cura + %find_lang cura %find_lang fdmextruder.def.json %find_lang fdmprinter.def.json @@ -121,6 +125,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %{_prefix}/lib/%{name} %changelog +* Sun Jun 17 2018 Miro Hrončok - 1:3.3.0-2 +- Bytecompile the plugins explicitly + * Wed May 02 2018 Miro Hrončok - 1:3.3.0-1 - Update to 3.3.0 - Enable test_getPropertyFallThrough again