From b9f8a1595bbf8cbff79646d157cb27b3e76c9a93 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 17 Jul 2024 11:51:23 +0100 Subject: [PATCH] Remove python dependencies for RHEL 10 Only used by -o rhv-upload which has been removed. (cherry picked from commit fec9e2b674bb95fbc3c3d37262fda4e8ceb986e8) --- virt-v2v.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index bb85346..f611aea 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -98,7 +98,9 @@ BuildRequires: %{_bindir}/nbdcopy BuildRequires: %{_bindir}/nbdinfo BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin +%if !0%{?rhel} BuildRequires: nbdkit-python-plugin +%endif BuildRequires: nbdkit-cow-filter >= 1.28.3-1.el9 BuildRequires: mingw-srvany-redistributable >= 1.1-6 %ifarch x86_64 @@ -136,10 +138,11 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -%if 0%{?rhel} != 8 +%if !0%{?rhel} Requires: python3 -%else +%elif %{?rhel} == 9 Requires: platform-python +# Python is not needed by RHEL 10. %endif Requires: libnbd >= 1.10 Requires: %{_bindir}/qemu-nbd @@ -150,7 +153,9 @@ Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin Requires: nbdkit-null-plugin +%if !0%{?rhel} Requires: nbdkit-python-plugin +%endif Requires: nbdkit-ssh-plugin %ifarch x86_64 Requires: nbdkit-vddk-plugin