From cfb1ba42072bd70b8068dd1cc24ee86b2682031c Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Aug 03 2020 14:05:32 +0000 Subject: Update for python bytecompile changes --- diff --git a/sugar-imageviewer.spec b/sugar-imageviewer.spec index 6ee1470..4b06f4e 100644 --- a/sugar-imageviewer.spec +++ b/sugar-imageviewer.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-imageviewer Version: 65 Release: 3%{?dist} @@ -34,6 +30,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}/ImageViewer.activity/ + %find_lang org.laptop.ImageViewerActivity