mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-26 13:28:14 +00:00
rpm: set os-id when building for RHEL
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
65fe7379f8
commit
dc378540ec
@ -50,6 +50,9 @@ the display, and libvirt for looking up VNC/SPICE server details.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
|
||||
%define buildid_opt -Dbuild-id=%{release}
|
||||
|
||||
%if !%{with_govirt}
|
||||
%define ovirt_opt -Dovirt=disabled
|
||||
%endif
|
||||
@ -58,7 +61,11 @@ the display, and libvirt for looking up VNC/SPICE server details.
|
||||
%define spice_opt -Dspice=disabled
|
||||
%endif
|
||||
|
||||
%meson -Dbuild-id=%{release} %{?ovirt_opt} %{?spice_opt}
|
||||
%if 0%{?rhel} > 0
|
||||
%define osid_opt -Dos-id=rhel%{?rhel}
|
||||
%endif
|
||||
|
||||
%meson %{buildid_opt} %{?ovirt_opt} %{?spice_opt} %{?osid_opt}
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
|
||||
Loading…
Reference in New Issue
Block a user