Workaround CS-1907

By defining the %{__bootstrap} value,
we prevent misconfigured Koji putting a literal %{__bootstrap} in %dist.

See https://issues.redhat.com/browse/CS-1907
This commit is contained in:
Miro Hrončok 2024-01-08 21:54:08 +01:00
parent 5e58863b45
commit d861dbfa1d

View File

@ -1,6 +1,11 @@
%global __python3 /usr/bin/python3.12
%global python3_pkgversion 3.12
# Workaround for https://issues.redhat.com/browse/CS-1907
# By defining the %%{__bootstrap} value,
# we prevent misconfigured Koji putting a literal %%{__bootstrap} in %%dist.
%{!?__bootstrap:%global __bootstrap %{nil}}
# When bootstrapping new Python we need to build flit in bootstrap mode.
# The Python RPM dependency generators and pip are not yet available.
%bcond_without bootstrap