diff --git a/sugar-memorize.spec b/sugar-memorize.spec index 7583f31..408f1c7 100644 --- a/sugar-memorize.spec +++ b/sugar-memorize.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-memorize Version: 57 Release: 3%{?dist} @@ -37,6 +33,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}/Memorize.activity/ + %find_lang org.laptop.Memorize