From 20323cd1bc9ba938d03525205cce6a9567657cf4 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 7 Jun 2023 01:34:10 -0400 Subject: [PATCH] Fix installation on newer RHEL libguestfs-winsupport is not available in ELN, only RHEL. platform-python was limited to RHEL 8, but was virtually provided by python3 in RHEL 9 for compatibility. --- virt-v2v.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 8d5bd80..8cd6f7c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -107,7 +107,7 @@ Requires: guestfs-tools >= 1.49.7-1 # XFS is the default filesystem in Fedora and RHEL. Requires: libguestfs-xfs -%if 0%{?rhel} +%if 0%{?rhel} && ! 0%{?eln} # For Windows conversions on RHEL. Requires: libguestfs-winsupport >= 7.2 %endif @@ -128,7 +128,7 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -%if !0%{?rhel} +%if 0%{?rhel} != 8 Requires: python3 %else Requires: platform-python @@ -321,6 +321,7 @@ done %changelog * Mon Jun 05 2023 Richard W.M. Jones - 1:2.3.4-2 - Migrated to SPDX license +- Fix installation on newer RHEL * Wed Apr 19 2023 Richard W.M. Jones - 1:2.3.4-1 - New development branch version 2.3.4