2007-07-20 23:26:08 +04:00
# -*- rpm-spec -*-
2021-02-10 15:14:15 +03:00
%if 0%{?rhel} >= 9
%global with_govirt 0
2021-02-10 15:14:15 +03:00
%global with_spice 0
2021-02-10 15:14:15 +03:00
%else
%global with_govirt 1
2021-02-10 15:14:15 +03:00
%global with_spice 1
2021-02-10 15:14:15 +03:00
%endif
2021-01-11 18:40:40 +03:00
Name : virt-viewer
2007-07-20 23:26:08 +04:00
Version : @VERSION@
2018-05-07 17:40:31 +03:00
Release : 1%{?dist}
2007-07-20 23:26:08 +04:00
Summary : Virtual Machine Viewer
2023-04-26 19:47:19 +03:00
License : GPL-2.0-or-later
2021-01-11 18:36:50 +03:00
URL : https://gitlab.com/virt-viewer/virt-viewer
2021-01-11 18:58:25 +03:00
Source0 : https://virt-manager.org/download/sources/%{name} /%{name} -%{version} .tar.xz
2008-03-07 20:53:56 +03:00
Requires : openssh-clients
2007-07-20 23:26:08 +04:00
2019-05-09 15:40:34 +03:00
# Our bash completion script uses virsh to list domains
Requires : libvirt-client
2018-07-27 19:08:34 +03:00
BuildRequires : gcc
2021-01-11 18:58:25 +03:00
BuildRequires : meson
2021-01-11 18:35:22 +03:00
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)
2021-11-18 21:10:22 +03:00
BuildRequires : pkgconfig(vte-2.91)
2021-02-10 15:14:15 +03:00
%if %{with_spice}
2021-01-11 18:35:22 +03:00
BuildRequires : pkgconfig(spice-client-gtk-3.0)
BuildRequires : pkgconfig(spice-protocol)
2021-02-10 15:14:15 +03:00
%endif
2007-07-20 23:59:19 +04:00
BuildRequires : /usr/bin/pod2man
2019-02-20 18:19:43 +03:00
BuildRequires : gettext
2021-02-10 15:14:15 +03:00
%if %{with_govirt}
2021-01-11 18:35:22 +03:00
BuildRequires : pkgconfig(govirt-1.0)
BuildRequires : pkgconfig(rest-0.7)
2021-02-10 15:14:15 +03:00
%endif
2021-01-11 18:35:22 +03:00
BuildRequires : pkgconfig(bash-completion)
2007-07-20 23:26:08 +04:00
2013-05-23 17:45:40 +04:00
2007-07-20 23:26:08 +04:00
%description
Virtual Machine Viewer provides a graphical console client for connecting
2011-07-01 14:18:36 +04: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-07-20 23:26:08 +04:00
%prep
2021-11-18 21:11:24 +03:00
%autosetup -p1
2007-07-20 23:26:08 +04:00
%build
2021-04-26 16:58:27 +03:00
2021-11-30 14:38:34 +03:00
%define buildid_opt -Dbuild-id=%{release}
2021-04-26 16:58:27 +03:00
2021-04-26 12:13:32 +03:00
%if !%{with_govirt}
%define ovirt_opt -Dovirt=disabled
%endif
%if !%{with_spice}
%define spice_opt -Dspice=disabled
%endif
2021-04-26 16:58:27 +03:00
%if 0%{?rhel} > 0
%define osid_opt -Dos-id=rhel%{?rhel}
%endif
%meson %{buildid_opt} %{?ovirt_opt} %{?spice_opt} %{?osid_opt}
2021-01-11 18:58:25 +03:00
%meson_build
2007-07-20 23:26:08 +04:00
%install
2021-01-11 18:58:25 +03:00
%meson_install
2007-07-20 23:26:08 +04:00
2021-01-11 18:58:25 +03:00
%find_lang %{name}
2012-02-08 20:41:37 +04:00
2010-01-11 20:00:37 +03:00
%files -f %{name}.lang
2021-05-04 20:15:21 +03:00
%doc README.md COPYING AUTHORS NEWS
2007-07-20 23:26:08 +04:00
%{_bindir} /%{name}
2012-01-27 17:51:23 +04:00
%{_bindir} /remote-viewer
2012-02-08 20:41:37 +04:00
%{_datadir} /icons/hicolor/*/apps/*
2012-04-18 17:12:57 +04:00
%{_datadir} /applications/remote-viewer.desktop
2020-07-22 23:55:00 +03:00
%{_datadir} /metainfo/remote-viewer.appdata.xml
2013-02-12 21:59:04 +04:00
%{_datadir} /mime/packages/virt-viewer-mime.xml
2012-02-06 18:04:45 +04:00
%{_mandir} /man1/virt-viewer.1*
%{_mandir} /man1/remote-viewer.1*
2019-05-09 15:40:34 +03:00
%{_datadir} /bash-completion/completions/virt-viewer
2007-07-20 23:26:08 +04:00
%changelog