Disable python byte compiling to avoid dealing with that python2 tries to byte compile python3 code in rosa2019.05, conditional files in spec and other problems

This commit is contained in:
Mikhail Novosyolov 2020-05-11 09:35:25 +03:00
parent a651473a58
commit 60b939028a

View file

@ -5,6 +5,12 @@
# we strip binaries manually in %%build
%define __strip %(which true)
# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define _python_bytecompile_build 0
%define kernelversion 5
%define patchlevel 4
# sublevel is used for stable-based kernels