Bytecompile the plugins explicitly

This commit is contained in:
Miro Hrončok 2018-06-17 16:23:43 +02:00
commit b86e7c0177

View file

@ -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 <mhroncok@redhat.com> - 1:3.3.0-2
- Bytecompile the plugins explicitly
* Wed May 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:3.3.0-1
- Update to 3.3.0
- Enable test_getPropertyFallThrough again