Byte compile python files namually

see: https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3
This commit is contained in:
Mike FABIAN 2020-06-22 10:16:33 +02:00
parent 5c0cccf96c
commit c3b53e9df2

View File

@ -1,10 +1,6 @@
# 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: ibus-table
Version: 1.9.25
Release: 2%{?dist}
Release: 3%{?dist}
Summary: The Table engine for IBus platform
License: LGPLv2+
URL: http://code.google.com/p/ibus/
@ -51,6 +47,8 @@ export PYTHON=%{__python3}
%__rm -rf $RPM_BUILD_ROOT
export PYTHON=%{__python3}
%__make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install pkgconfigdir=%{_datadir}/pkgconfig
%py_byte_compile %{python3} /usr/share/ibus-table/engine
%py_byte_compile %{python3} /usr/share/ibus-table/setup
%find_lang %{name}
@ -104,6 +102,10 @@ popd
%{_datadir}/pkgconfig/%{name}.pc
%changelog
* Mon Jun 22 2020 Mike FABIAN <mfabian@redhat.com> - 1.9.25-3
- Byte compile python files namually,
see: https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3
* Thu Jun 04 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.25-2
- Don't explicitly require python(abi) >= 3.3