From a511365d78311e708c3533255ceff9df3a949fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 10 Feb 2021 12:14:15 +0000 Subject: [PATCH] rpm: disable spice for RHEL-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- virt-viewer.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in index fbead79..95a133d 100644 --- a/virt-viewer.spec.in +++ b/virt-viewer.spec.in @@ -2,8 +2,10 @@ %if 0%{?rhel} >= 9 %global with_govirt 0 +%global with_spice 0 %else %global with_govirt 1 +%global with_spice 1 %endif Name: virt-viewer @@ -26,8 +28,10 @@ BuildRequires: pkgconfig(libvirt) BuildRequires: pkgconfig(libvirt-glib-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(gtk-vnc-2.0) +%if %{with_spice} BuildRequires: pkgconfig(spice-client-gtk-3.0) BuildRequires: pkgconfig(spice-protocol) +%endif BuildRequires: /usr/bin/pod2man BuildRequires: gettext %if %{with_govirt}