2007-08-17 19:42:14 +00:00
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
2021-04-21 09:01:39 +00:00
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
%global with_govirt 0
|
|
|
|
%global with_spice 0
|
|
|
|
%else
|
|
|
|
%global with_govirt 1
|
|
|
|
%global with_spice 1
|
2013-05-01 16:37:44 +00:00
|
|
|
%endif
|
|
|
|
|
2007-08-17 19:42:14 +00:00
|
|
|
Name: virt-viewer
|
2021-11-30 11:51:27 +00:00
|
|
|
Version: 11.0
|
2022-01-22 04:04:36 +00:00
|
|
|
Release: 2%{?dist}
|
2007-08-17 19:42:14 +00:00
|
|
|
Summary: Virtual Machine Viewer
|
|
|
|
License: GPLv2+
|
2021-04-21 09:01:39 +00:00
|
|
|
URL: https://gitlab.com/virt-viewer/virt-viewer
|
|
|
|
Source0: https://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.xz
|
2008-03-10 14:58:12 +00:00
|
|
|
Requires: openssh-clients
|
2013-02-13 16:33:29 +00:00
|
|
|
|
2021-11-30 11:34:16 +00:00
|
|
|
# Our bash completion script uses virsh to list domains
|
|
|
|
Requires: libvirt-client
|
|
|
|
|
2018-07-27 16:07:55 +00:00
|
|
|
BuildRequires: gcc
|
2021-04-21 09:01:39 +00:00
|
|
|
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)
|
2019-04-11 12:18:07 +00:00
|
|
|
BuildRequires: pkgconfig(vte-2.91)
|
2011-02-21 12:45:54 +00:00
|
|
|
%if %{with_spice}
|
2021-04-21 09:01:39 +00:00
|
|
|
BuildRequires: pkgconfig(spice-client-gtk-3.0)
|
|
|
|
BuildRequires: pkgconfig(spice-protocol)
|
2011-02-21 12:45:54 +00:00
|
|
|
%endif
|
2009-07-29 14:33:14 +00:00
|
|
|
BuildRequires: /usr/bin/pod2man
|
2021-04-21 09:01:39 +00:00
|
|
|
BuildRequires: gettext
|
2013-05-01 16:37:44 +00:00
|
|
|
%if %{with_govirt}
|
2021-04-21 09:01:39 +00:00
|
|
|
BuildRequires: pkgconfig(govirt-1.0)
|
|
|
|
BuildRequires: pkgconfig(rest-0.7)
|
2013-06-04 16:18:34 +00:00
|
|
|
%endif
|
2021-04-21 09:01:39 +00:00
|
|
|
BuildRequires: pkgconfig(bash-completion)
|
2013-06-04 16:18:34 +00:00
|
|
|
|
|
|
|
|
2007-08-17 19:42:14 +00:00
|
|
|
%description
|
|
|
|
Virtual Machine Viewer provides a graphical console client for connecting
|
2011-07-12 12:17:17 +00:00
|
|
|
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.
|
2007-08-17 19:42:14 +00:00
|
|
|
|
|
|
|
%prep
|
2021-08-11 10:05:31 +00:00
|
|
|
%autosetup -p1
|
2007-08-17 19:42:14 +00:00
|
|
|
|
|
|
|
%build
|
2021-11-30 11:34:16 +00:00
|
|
|
|
|
|
|
%define buildid_opt -Dbuild-id=%{release}
|
|
|
|
|
2021-04-26 09:51:02 +00:00
|
|
|
%if !%{with_govirt}
|
|
|
|
%define ovirt_opt -Dovirt=disabled
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if !%{with_spice}
|
|
|
|
%define spice_opt -Dspice=disabled
|
|
|
|
%endif
|
|
|
|
|
2021-11-30 11:34:16 +00:00
|
|
|
%if 0%{?rhel} > 0
|
|
|
|
%define osid_opt -Dos-id=rhel%{?rhel}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%meson %{buildid_opt} %{?ovirt_opt} %{?spice_opt} %{?osid_opt}
|
2021-04-21 09:01:39 +00:00
|
|
|
%meson_build
|
2007-08-17 19:42:14 +00:00
|
|
|
|
|
|
|
%install
|
2021-04-21 09:01:39 +00:00
|
|
|
%meson_install
|
2010-01-15 13:02:08 +00:00
|
|
|
|
2021-04-21 09:01:39 +00:00
|
|
|
%find_lang %{name}
|
2019-03-29 15:18:04 +00:00
|
|
|
|
2010-01-15 13:02:08 +00:00
|
|
|
%files -f %{name}.lang
|
2021-11-30 11:51:27 +00:00
|
|
|
%doc README.md COPYING AUTHORS NEWS
|
2007-08-17 19:42:14 +00:00
|
|
|
%{_bindir}/%{name}
|
2012-02-14 16:31:03 +00:00
|
|
|
%{_bindir}/remote-viewer
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
2012-05-16 12:07:02 +00:00
|
|
|
%{_datadir}/applications/remote-viewer.desktop
|
2021-04-21 09:01:39 +00:00
|
|
|
%{_datadir}/metainfo/remote-viewer.appdata.xml
|
2013-02-13 16:33:29 +00:00
|
|
|
%{_datadir}/mime/packages/virt-viewer-mime.xml
|
2012-02-14 16:31:03 +00:00
|
|
|
%{_mandir}/man1/virt-viewer.1*
|
|
|
|
%{_mandir}/man1/remote-viewer.1*
|
2021-04-21 09:01:39 +00:00
|
|
|
%{_datadir}/bash-completion/completions/virt-viewer
|
2007-08-17 19:42:14 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-01-22 04:04:36 +00:00
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 11.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-30 11:51:27 +00:00
|
|
|
* Tue Nov 30 2021 Daniel P. Berrangé <berrange@redhat.com> - 11.0-1
|
|
|
|
- Rebase to 11.0 release
|
|
|
|
- Fixes often disabled send-key menu (rhbz#2020872)
|
|
|
|
|
2021-11-30 11:34:16 +00:00
|
|
|
* Thu Nov 25 2021 Daniel P. Berrangé <berrange@redhat.com> - 10.0-6
|
|
|
|
- Add missing dep on libvirt-clients for bash completion
|
|
|
|
- Refactor setting build-id opt
|
|
|
|
|
2021-11-16 07:26:41 +00:00
|
|
|
* Tue Nov 16 2021 Tom Stellard <tstellar@redhat.com> - 10.0-5
|
|
|
|
- Backport fix for uninitialized variable
|
|
|
|
|
2021-08-11 10:05:31 +00:00
|
|
|
* Wed Aug 11 2021 Daniel P. Berrangé <berrange@redhat.com> - 10.0-4
|
|
|
|
- Fix build with newer glib (rhbz#1988037)
|
|
|
|
|
2021-07-23 20:33:52 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 10.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-04-26 09:51:02 +00:00
|
|
|
* Mon Apr 26 2021 Daniel P. Berrangé <berrange@redhat.com> - 10.0-2
|
|
|
|
- Explicitly disable spice/ovirt
|
|
|
|
|
2021-04-21 09:01:39 +00:00
|
|
|
* Tue Apr 20 2021 Daniel P. Berrangé <berrange@redhat.com> - 10.0-1
|
|
|
|
- Update to 10.0 release
|
|
|
|
|
2021-01-27 23:09:15 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 13:47:34 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-01 17:25:01 +00:00
|
|
|
* Fri May 1 2020 Daniel P. Berrangé <berrange@redhat.com> - 9.0-1
|
|
|
|
- Update to 9.0 release
|
|
|
|
|
2020-01-31 03:15:37 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|