diff --git a/python-uranium.spec b/python-uranium.spec index a5d4549..df75fba 100644 --- a/python-uranium.spec +++ b/python-uranium.spec @@ -1,6 +1,6 @@ Name: python-uranium Version: 3.3.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A Python framework for building desktop applications License: LGPLv3+ URL: https://github.com/Ultimaker/Uranium @@ -25,8 +25,7 @@ BuildRequires: python3-pytest BuildArch: noarch # There are Python plugins in /usr/lib/uranium -# We need to byte-compile it with Python 3 -%global __python %{__python3} +%global _python_bytecompile_extra 0 %description Uranium is a Python framework for building 3D printing related applications. @@ -86,6 +85,9 @@ rm locale/uranium.pot rm locale/*/uranium.po popd +# Bytecompile the plugins +%py_byte_compile %{__python3} %{buildroot}%{_prefix}/lib/uranium + %find_lang uranium @@ -105,6 +107,9 @@ popd %changelog +* Thu Jun 07 2018 Miro Hrončok - 3.3.0-3 +- Bytecompile the plugins explicitly + * Mon May 28 2018 Miro Hrončok - 3.3.0-2 - Fix PluginRegistry test