diff --git a/sugar-log.spec b/sugar-log.spec index 7006a0f..3b79598 100644 --- a/sugar-log.spec +++ b/sugar-log.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-log Version: 41 Release: 4%{?dist} @@ -37,6 +33,9 @@ python3 ./setup.py build 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}/Log.activity/ + %find_lang org.laptop.Log