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
This commit is contained in:
Kalev Lember 2020-09-04 15:49:50 +02:00
parent 5f435da563
commit 4175dfaf3d

View File

@ -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 Name: gedit-plugins
Version: 3.37.92 Version: 3.37.92
Release: 1%{?dist} Release: 1%{?dist}
@ -204,6 +198,8 @@ The gedit wordcompletion plugin.
%install %install
%meson_install %meson_install
%py_byte_compile %{__python3} %{buildroot}%{_libdir}/gedit/plugins/
%find_lang %{name} --with-gnome %find_lang %{name} --with-gnome
%find_lang gedit --with-gnome %find_lang gedit --with-gnome
@ -327,6 +323,8 @@ The gedit wordcompletion plugin.
%changelog %changelog
* Fri Sep 04 2020 Kalev Lember <klember@redhat.com> - 3.37.92-1 * Fri Sep 04 2020 Kalev Lember <klember@redhat.com> - 3.37.92-1
- Update to 3.37.92 - 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 <releng@fedoraproject.org> - 3.36.2-4 * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.36.2-4
- Second attempt - Rebuilt for - Second attempt - Rebuilt for