From 4175dfaf3ddeaaba89f180ce9fc71bb00e0d878d Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sep 04 2020 13:49:50 +0000 Subject: Explicitly byte-compile python files using py_byte_compile macro This fixes the FTBFS on F33. https://bugzilla.redhat.com/show_bug.cgi?id=1863608 --- diff --git a/gedit-plugins.spec b/gedit-plugins.spec index 3a6a0ad..9f42f58 100644 --- a/gedit-plugins.spec +++ b/gedit-plugins.spec @@ -1,9 +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 - -%global __python %{__python3} - Name: gedit-plugins Version: 3.37.92 Release: 1%{?dist} @@ -204,6 +198,8 @@ The gedit wordcompletion plugin. %install %meson_install +%py_byte_compile %{__python3} %{buildroot}%{_libdir}/gedit/plugins/ + %find_lang %{name} --with-gnome %find_lang gedit --with-gnome @@ -327,6 +323,8 @@ The gedit wordcompletion plugin. %changelog * Fri Sep 04 2020 Kalev Lember - 3.37.92-1 - Update to 3.37.92 +- Explicitly byte-compile python files using py_byte_compile macro +- Fix FTBFS (#1863608) * Sat Aug 01 2020 Fedora Release Engineering - 3.36.2-4 - Second attempt - Rebuilt for