spec: don't recommend python3-pillow on RHEL

We don't ship python3-pillow on RHEL 10 and it currently causes issues
when running the upstream test suite, as it's getting recommended by
RPM:

$ dnf repoquery -q systemd-ukify
systemd-ukify-0:257-9.el10_0.1.noarch
$ dnf repoquery -q --recommends systemd-ukify
python3dist(pillow)
$ dnf repoquery -q --enablerepo rhel-CRB,rhel-buildroot --whatprovides 'python3dist(pillow)' | grep . || echo '<nothing>'
<nothing>

We already do the same thing for the python3-pillow BuildRequires, so
just extend it to the offending Recommends as well.

Related: RHEL-79976
This commit is contained in:
Frantisek Sumsal 2025-04-11 17:21:09 +02:00
parent 4258202f09
commit 16940aab25

View File

@ -792,7 +792,9 @@ Requires: (systemd-boot if %{shrink:(
Requires: python3dist(pefile)
Requires: python3dist(zstd)
Requires: python3dist(cryptography)
%if %{undefined rhel}
Recommends: python3dist(pillow)
%endif
# for tests
BuildRequires: binutils