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 @@
# -*- rpm-spec -*- # -*- rpm-spec -*-


%if 0%{?rhel} >= 9
%global with_govirt 0
%global with_spice 0
%else
%global with_govirt 1 %global with_govirt 1
%global with_spice 1
%endif


Name: virt-viewer Name: virt-viewer
Version: 11.0 Version: 11.0
@ -29,10 +23,8 @@ BuildRequires: pkgconfig(libvirt-glib-1.0)
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(gtk-vnc-2.0) BuildRequires: pkgconfig(gtk-vnc-2.0)
BuildRequires: pkgconfig(vte-2.91) BuildRequires: pkgconfig(vte-2.91)
%if %{with_spice}
BuildRequires: pkgconfig(spice-client-gtk-3.0) BuildRequires: pkgconfig(spice-client-gtk-3.0)
BuildRequires: pkgconfig(spice-protocol) BuildRequires: pkgconfig(spice-protocol)
%endif
BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2man
BuildRequires: gettext BuildRequires: gettext
%if %{with_govirt} %if %{with_govirt}
@ -53,18 +45,11 @@ the display, and libvirt for looking up VNC/SPICE server details.
%build %build


%define buildid_opt -Dbuild-id=%{release} %define buildid_opt -Dbuild-id=%{release}

%if !%{with_govirt} %if !%{with_govirt}
%define ovirt_opt -Dovirt=disabled %define ovirt_opt -Dovirt=disabled
%endif %endif

%if !%{with_spice}
%define spice_opt -Dspice=disabled %define spice_opt -Dspice=disabled
%endif %define osid_opt -Dos-id=powerel9

%if 0%{?rhel} > 0
%define osid_opt -Dos-id=rhel%{?rhel}
%endif


%meson %{buildid_opt} %{?ovirt_opt} %{?spice_opt} %{?osid_opt} %meson %{buildid_opt} %{?ovirt_opt} %{?spice_opt} %{?osid_opt}
%meson_build %meson_build

Loading…
Cancel
Save