From 228ab1d9cf26d105dcc098e2490564ed78a0e3bb Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Mon, 13 Jun 2022 11:21:59 +0200 Subject: [PATCH] enable spice and set id to powerel9 Signed-off-by: Toshaan Bharvani --- SPECS/virt-viewer.spec | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/SPECS/virt-viewer.spec b/SPECS/virt-viewer.spec index fb85b3a..def69a8 100644 --- a/SPECS/virt-viewer.spec +++ b/SPECS/virt-viewer.spec @@ -1,12 +1,6 @@ # -*- rpm-spec -*- -%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 Version: 11.0 @@ -29,10 +23,8 @@ BuildRequires: pkgconfig(libvirt-glib-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(gtk-vnc-2.0) BuildRequires: pkgconfig(vte-2.91) -%if %{with_spice} BuildRequires: pkgconfig(spice-client-gtk-3.0) BuildRequires: pkgconfig(spice-protocol) -%endif BuildRequires: /usr/bin/pod2man BuildRequires: gettext %if %{with_govirt} @@ -53,18 +45,11 @@ the display, and libvirt for looking up VNC/SPICE server details. %build %define buildid_opt -Dbuild-id=%{release} - %if !%{with_govirt} %define ovirt_opt -Dovirt=disabled %endif - -%if !%{with_spice} %define spice_opt -Dspice=disabled -%endif - -%if 0%{?rhel} > 0 -%define osid_opt -Dos-id=rhel%{?rhel} -%endif +%define osid_opt -Dos-id=powerel9 %meson %{buildid_opt} %{?ovirt_opt} %{?spice_opt} %{?osid_opt} %meson_build