From: Neal Gompa Date: Thu, 7 Jan 2021 14:58:08 +0000 (-0500) Subject: rpm: Simplify expression of supported platforms X-Git-Tag: v7.0.0-rc1~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a28ea6f596e674b7d77292d4152850c5bb1df5a;p=thirdparty%2Flibvirt.git rpm: Simplify expression of supported platforms Stanzas like "0%{?fedora} && 0%{?fedora} >= %{min_fedora}" contain redundant definitions, as "0%{?fedora} >= %{min_fedora}" implies that "%fedora" is defined and has a value. Thus, we can simplify this. Signed-off-by: Neal Gompa Reviewed-by: Jiri Denemark --- diff --git a/libvirt.spec.in b/libvirt.spec.in index ce1a8d7078..0a8b0ebad4 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -6,7 +6,7 @@ %define min_rhel 7 %define min_fedora 31 -%if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel} >= %{min_rhel}) +%if 0%{?fedora} >= %{min_fedora} || 0%{?rhel} >= %{min_rhel} %define supported_platform 1 %else %define supported_platform 0