Temporary workaround for missing %apply_patch in RPM 4.17

This is needed to make the spec file %prep on a Fedora 35+ machine.

See https://bugzilla.redhat.com/show_bug.cgi?id=1954999

This is not really related to the following bugzilla, but it allowed me to work on it:
Related: rhbz#2040656
This commit is contained in:
Miro Hrončok 2021-04-30 10:34:18 +00:00
parent 37fb8f4b58
commit e5bcc23d18

View File

@ -768,6 +768,9 @@ version once Python %{pybasever} is stable.
%autopatch -M 188
%if %{with rpmwheels}
# Temporary workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1954999
%{?!apply_patch:%define apply_patch(qp:m:) {%__apply_patch %**}}
%apply_patch -q %{PATCH189}
rm Lib/ensurepip/_bundled/*.whl
%endif