diff --git a/sugar-finance.spec b/sugar-finance.spec index f55a96a..b8bb5fa 100644 --- a/sugar-finance.spec +++ b/sugar-finance.spec @@ -1,7 +1,3 @@ -# This package depends on automagic byte compilation -# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2 -%global _python_bytecompile_extra 1 - Name: sugar-finance Version: 15 Release: 4%{?dist} @@ -44,6 +40,10 @@ python3 ./setup.py build %install python3 ./setup.py install --prefix=%{buildroot}/%{_prefix} rm %{buildroot}%{_prefix}/share/applications/*.desktop || true + +# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 +%py_byte_compile %{python3} %{buildroot}%{_datadir}/{sugaractivitydir}/Finance.activity/ + %find_lang org.laptop.community.Finance