From 70baab99d557a6dd50fe4038eef3737373beb52a Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Aug 03 2020 14:06:32 +0000 Subject: Update for python bytecompile changes --- diff --git a/sugar-clock.spec b/sugar-clock.spec index 480aa9c..f8206c1 100644 --- a/sugar-clock.spec +++ b/sugar-clock.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-clock Version: 22.1 Release: 3%{?dist} @@ -40,8 +36,11 @@ 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}/Clock.activity/ + %find_lang tv.alterna.Clock