From 7dc64fef6b006a81dc0d7645bbcea6a2252c4f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 26 Apr 2021 10:13:32 +0100 Subject: [PATCH] rpm: explicitly tell meson to disable spice/ovirt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %meson will force enable all features, so simply omitting the BuildRequires is not sufficient to disable spice/ovirt. Meson must be explicitly told to do so. Signed-off-by: Daniel P. Berrangé --- virt-viewer.spec.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in index 95a133d..91b62b9 100644 --- a/virt-viewer.spec.in +++ b/virt-viewer.spec.in @@ -50,7 +50,15 @@ the display, and libvirt for looking up VNC/SPICE server details. %setup -q %build -%meson -Dbuild-id=%{release} +%if !%{with_govirt} +%define ovirt_opt -Dovirt=disabled +%endif + +%if !%{with_spice} +%define spice_opt -Dspice=disabled +%endif + +%meson -Dbuild-id=%{release} %{?ovirt_opt} %{?spice_opt} %meson_build %install