From d65df755dca7de1bcd69dd67fa242911eda60c7f Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Aug 03 2020 14:05:10 +0000 Subject: Update for python bytecompile changes --- diff --git a/sugar-words.spec b/sugar-words.spec index 003c17f..29b8267 100644 --- a/sugar-words.spec +++ b/sugar-words.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-words Version: 24 Release: 3%{?dist} @@ -33,6 +29,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}/Words.activity/ + %find_lang org.laptop.Words %files -f org.laptop.Words.lang