Explicitly tell meson to disable spice/ovirt

Related: rhbz#1949526
Resolves: rhbz#1938537
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-04-21 10:44:30 +01:00
parent ac9cfb912a
commit 20153a2e82
1 changed files with 9 additions and 1 deletions

View File

@ -48,7 +48,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