diff --git a/mock/mock.spec b/mock/mock.spec index 228e86076..256ffdda9 100644 --- a/mock/mock.spec +++ b/mock/mock.spec @@ -8,10 +8,10 @@ # distributions, however, %%pre is needed. On some of those older distros the # %%sysusers_*_compat macros could help (but not everywhere), so turns out it is # just way easier and to expand those macros and hardcode them in this specfile. -%if 0%{?rhel} && 0%{?rhel} <= 9 -%bcond_without sysusers_compat -%else +%if 0%{?fedora} || 0%{?rhel} >= 10 %bcond_with sysusers_compat +%else +%bcond_without sysusers_compat %endif %global __python %{__python3}