From 2b9c9c51f8f444ce0483a023c071680ac2aaba6f 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 govirt 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in index b3a820a..fbead79 100644 --- a/virt-viewer.spec.in +++ b/virt-viewer.spec.in @@ -1,5 +1,11 @@ # -*- rpm-spec -*- +%if 0%{?rhel} >= 9 +%global with_govirt 0 +%else +%global with_govirt 1 +%endif + Name: virt-viewer Version: @VERSION@ Release: 1%{?dist} @@ -24,8 +30,10 @@ BuildRequires: pkgconfig(spice-client-gtk-3.0) BuildRequires: pkgconfig(spice-protocol) BuildRequires: /usr/bin/pod2man BuildRequires: gettext +%if %{with_govirt} BuildRequires: pkgconfig(govirt-1.0) BuildRequires: pkgconfig(rest-0.7) +%endif BuildRequires: pkgconfig(bash-completion)