]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpm: Bump min_fedora
authorAndrea Bolognani <abologna@redhat.com>
Mon, 3 Jul 2023 16:25:49 +0000 (18:25 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 27 Jul 2023 16:02:41 +0000 (18:02 +0200)
According to our platform support policy, now that Fedora 38 is
out we no longer target Fedora 36 and older. This allows us to
simplify a few conditionals.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
libvirt.spec.in

index 1f77cd90b772c11365ee092170081bb1b3282839..c72b420e85ef4e95de42e494d962dcb2b6f4fa8d 100644 (file)
@@ -4,7 +4,7 @@
 # that's still supported by the vendor. It may work on other distros
 # or versions, but no effort will be made to ensure that going forward.
 %define min_rhel 8
-%define min_fedora 33
+%define min_fedora 37
 
 %define arches_qemu_kvm         %{ix86} x86_64 %{power64} %{arm} aarch64 s390x
 %if 0%{?rhel}
@@ -21,7 +21,7 @@
 %define arches_systemtap_64bit  %{arches_64bit}
 %define arches_dmidecode        %{arches_x86}
 %define arches_xen              %{arches_x86} aarch64
-%if 0%{?fedora} >= 36
+%if 0%{?fedora}
     %define arches_xen              x86_64 aarch64
 %endif
 %define arches_vbox             %{arches_x86}
 
 %define with_firewalld_zone 0%{!?_without_firewalld_zone:1}
 
-%if (0%{?fedora} && 0%{?fedora} < 34) || (0%{?rhel} && 0%{?rhel} < 9)
+%if 0%{?rhel} && 0%{?rhel} < 9
     %define with_netcf 0%{!?_without_netcf:1}
 %endif
 
 %endif
 
 %define with_modular_daemons 0
-%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9
+%if 0%{?fedora} || 0%{?rhel} >= 9
     %define with_modular_daemons 1
 %endif
 
@@ -347,7 +347,7 @@ BuildRequires: libssh2-devel >= 1.3.0
 %if %{with_netcf}
 BuildRequires: netcf-devel >= 0.2.2
 %endif
-%if (0%{?fedora} >= 36) || (0%{?rhel} >= 9)
+%if 0%{?fedora} || 0%{?rhel} >= 9
 BuildRequires: passt
 %endif
 %if %{with_esx}
@@ -467,7 +467,7 @@ Requires: dbus
 # For uid creation during pre
 Requires(pre): shadow-utils
 # Needed by /usr/libexec/libvirt-guests.sh script.
-%if 0%{?fedora} >= 37
+%if 0%{?fedora}
 Requires: gettext-runtime
 %else
 Requires: gettext
@@ -763,7 +763,7 @@ Requires: swtpm-tools
     %if %{with_numad}
 Requires: numad
     %endif
-    %if (0%{?fedora} >= 36) || (0%{?rhel} >= 9)
+    %if 0%{?fedora} || 0%{?rhel} >= 9
 Recommends: passt
 Recommends: passt-selinux
     %endif