]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpm: Simplify expression of supported platforms
authorNeal Gompa <ngompa13@gmail.com>
Thu, 7 Jan 2021 14:58:08 +0000 (09:58 -0500)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 7 Jan 2021 17:34:31 +0000 (18:34 +0100)
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 <ngompa13@gmail.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
libvirt.spec.in

index ce1a8d70780407baa1c3a4bd43fbe59fb74fb3e2..0a8b0ebad4bbd0e95454460a702e9759bf2ffe41 100644 (file)
@@ -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