From 226cfbe1b6db2054e9e5bad7181e13d4de44d01b Mon Sep 17 00:00:00 2001 From: Dmitry Samoylik Date: Wed, 21 Aug 2024 14:39:42 +0300 Subject: [PATCH] SPICE enable --- ...ogus-param-for-meson-i18n.merge_file.patch | 50 +++++++++++++++++++ SPECS/virt-viewer.spec | 13 +++-- 2 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 SOURCES/0001-data-remove-bogus-param-for-meson-i18n.merge_file.patch diff --git a/SOURCES/0001-data-remove-bogus-param-for-meson-i18n.merge_file.patch b/SOURCES/0001-data-remove-bogus-param-for-meson-i18n.merge_file.patch new file mode 100644 index 0000000..c9ceb9e --- /dev/null +++ b/SOURCES/0001-data-remove-bogus-param-for-meson-i18n.merge_file.patch @@ -0,0 +1,50 @@ +From 98d9f202ef768f22ae21b5c43a080a1aa64a7107 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= +Date: Tue, 26 Apr 2022 17:36:54 +0100 +Subject: [PATCH] data: remove bogus param for meson i18n.merge_file +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The positional parameter used to be treated as 'input', but since we +already set 'input' explicitly it is redundant. With latest meson +versions it now generates an error + +data/meson.build:4:7: ERROR: Function does not take positional arguments. + +Signed-off-by: Daniel P. Berrangé +--- + data/meson.build | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/data/meson.build b/data/meson.build +index d718491..4325108 100644 +--- a/data/meson.build ++++ b/data/meson.build +@@ -2,7 +2,6 @@ if host_machine.system() != 'windows' + desktop = 'remote-viewer.desktop' + + i18n.merge_file ( +- desktop, + type: 'desktop', + input: desktop + '.in', + output: desktop, +@@ -14,7 +13,6 @@ if host_machine.system() != 'windows' + mimetypes = 'virt-viewer-mime.xml' + + i18n.merge_file ( +- mimetypes, + type: 'xml', + input: mimetypes + '.in', + output: mimetypes, +@@ -27,7 +25,6 @@ if host_machine.system() != 'windows' + metainfo = 'remote-viewer.appdata.xml' + + i18n.merge_file ( +- metainfo, + type: 'xml', + input: metainfo + '.in', + output: metainfo, +-- +2.37.1 + diff --git a/SPECS/virt-viewer.spec b/SPECS/virt-viewer.spec index c2d9e62..d8665c8 100644 --- a/SPECS/virt-viewer.spec +++ b/SPECS/virt-viewer.spec @@ -2,19 +2,21 @@ %if 0%{?rhel} >= 9 %global with_govirt 0 -%global with_spice 0 +%global with_spice 1 %else -%global with_govirt 1 +# Disabled since it is still stuck on soup2 +%global with_govirt 0 %global with_spice 1 %endif Name: virt-viewer Version: 11.0 -Release: 1%{?dist} +Release: 1%{?dist}.inferit Summary: Virtual Machine Viewer -License: GPLv2+ +License: GPL-2.0-or-later URL: https://gitlab.com/virt-viewer/virt-viewer Source0: https://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.xz +Patch: 0001-data-remove-bogus-param-for-meson-i18n.merge_file.patch Requires: openssh-clients # Our bash completion script uses virsh to list domains @@ -87,6 +89,9 @@ the display, and libvirt for looking up VNC/SPICE server details. %{_datadir}/bash-completion/completions/virt-viewer %changelog +* Tue Aug 16 2024 Dmitry Samoylik - 11.0-1.inferit +- SPICE enable + * Wed Mar 15 2023 MSVSphere Packaging Team - 11.0-1 - Rebuilt for MSVSphere 9.1.