From ebf5d5f49116ad033d823e5ea314c85cb98e3eec Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 6 Dec 2024 12:53:16 -0500 Subject: [PATCH] spec: rhel: drop spice dep, default to VNC Signed-off-by: Cole Robinson --- virt-manager.spec.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/virt-manager.spec.in b/virt-manager.spec.in index f429e0049..9e7fca30e 100644 --- a/virt-manager.spec.in +++ b/virt-manager.spec.in @@ -1,6 +1,8 @@ # -*- rpm-spec -*- -%global default_hvs "qemu,xen,lxc" +%global default_hvs "qemu,xen,lxc" +%global have_spice %{defined fedora} + # End local config @@ -22,7 +24,9 @@ Requires: python3-gobject >= 3.31.3 Requires: gtk3 >= 3.22.0 Requires: libvirt-glib >= 0.0.9 Requires: gtk-vnc2 +%if %{have_spice} Requires: spice-gtk3 +%endif # virt-manager is one of those apps that people will often install onto # a headless machine for use over SSH. This means the virt-manager dep @@ -108,8 +112,13 @@ machine). %build +%if ! %{have_spice} +%global _default_graphics -Ddefault-graphics=vnc +%endif + %meson \ -Ddefault-hvs=%{default_hvs} \ + %{?_default_graphics} \ -Dupdate-icon-cache=false \ -Dcompile-schemas=false \ -Dtests=disabled