commit 95922be1edb341130ad7c8c20c1d9614479b1d2e Author: MSVSphere Packaging Team Date: Tue Nov 26 19:38:09 2024 +0300 import virt-viewer-11.0-9.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb52a6c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/virt-viewer-11.0.tar.xz diff --git a/.virt-viewer.metadata b/.virt-viewer.metadata new file mode 100644 index 0000000..fe3c05a --- /dev/null +++ b/.virt-viewer.metadata @@ -0,0 +1 @@ +c3d50c7c8ceee739989e8c5e1df7cbb09e85b0ff SOURCES/virt-viewer-11.0.tar.xz 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 new file mode 100644 index 0000000..6432e46 --- /dev/null +++ b/SPECS/virt-viewer.spec @@ -0,0 +1,152 @@ +# -*- rpm-spec -*- + +%if 0%{?rhel} >= 9 +%global with_govirt 0 +%global with_spice 0 +%else +# Disabled since it is still stuck on soup2 +%global with_govirt 0 +%global with_spice 1 +%endif + +Name: virt-viewer +Version: 11.0 +Release: 9%{?dist} +Summary: Virtual Machine Viewer +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 +Requires: libvirt-client + +BuildRequires: gcc +BuildRequires: meson +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(libvirt) +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} +BuildRequires: pkgconfig(govirt-1.0) +BuildRequires: pkgconfig(rest-0.7) +%endif +BuildRequires: pkgconfig(bash-completion) + + +%description +Virtual Machine Viewer provides a graphical console client for connecting +to virtual machines. It uses the GTK-VNC or SPICE-GTK widgets to provide +the display, and libvirt for looking up VNC/SPICE server details. + +%prep +%autosetup -p1 + +%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 + +%meson %{buildid_opt} %{?ovirt_opt} %{?spice_opt} %{?osid_opt} +%meson_build + +%install +%meson_install + +%find_lang %{name} + +%files -f %{name}.lang +%doc README.md COPYING AUTHORS NEWS +%{_bindir}/%{name} +%{_bindir}/remote-viewer +%{_datadir}/icons/hicolor/*/apps/* +%{_datadir}/applications/remote-viewer.desktop +%{_datadir}/metainfo/remote-viewer.appdata.xml +%{_datadir}/mime/packages/virt-viewer-mime.xml +%{_mandir}/man1/virt-viewer.1* +%{_mandir}/man1/remote-viewer.1* +%{_datadir}/bash-completion/completions/virt-viewer + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 11.0-9 +- Rebuilt for MSVSphere 10 + +* Mon Jun 24 2024 Troy Dawson - 11.0-9 +- Bump release for June 2024 mass rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 11.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 11.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 11.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Aug 22 2022 Daniel P. Berrangé - 11.0-5 +- Disable govirt since it is still stuck on soup2 (rhbz#2119727) + +* Tue Aug 2 2022 Daniel P. Berrangé - 11.0-4 +- Fix meson parameter error (rhbz #2113755) + +* Sat Jul 23 2022 Fedora Release Engineering - 11.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 11.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 30 2021 Daniel P. Berrangé - 11.0-1 +- Rebase to 11.0 release +- Fixes often disabled send-key menu (rhbz#2020872) + +* Thu Nov 25 2021 Daniel P. Berrangé - 10.0-6 +- Add missing dep on libvirt-clients for bash completion +- Refactor setting build-id opt + +* Tue Nov 16 2021 Tom Stellard - 10.0-5 +- Backport fix for uninitialized variable + +* Wed Aug 11 2021 Daniel P. Berrangé - 10.0-4 +- Fix build with newer glib (rhbz#1988037) + +* Fri Jul 23 2021 Fedora Release Engineering - 10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Apr 26 2021 Daniel P. Berrangé - 10.0-2 +- Explicitly disable spice/ovirt + +* Tue Apr 20 2021 Daniel P. Berrangé - 10.0-1 +- Update to 10.0 release + +* Wed Jan 27 2021 Fedora Release Engineering - 9.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri May 1 2020 Daniel P. Berrangé - 9.0-1 +- Update to 9.0 release + +* Fri Jan 31 2020 Fedora Release Engineering - 8.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild