Browse Source

enable spice and set id to powerel9

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
parent
commit
228ab1d9cf
  1. 17
      SPECS/virt-viewer.spec

17
SPECS/virt-viewer.spec

@ -1,12 +1,6 @@ @@ -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) @@ -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. @@ -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

Loading…
Cancel
Save