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
%else
%global with_govirt 1
%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
2008-03-07 20:53:56 +03:00
License : GPLv2+
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)
BuildRequires : pkgconfig(spice-client-gtk-3.0)
BuildRequires : pkgconfig(spice-protocol)
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
%setup -q
%build
2021-02-12 21:14:17 +03:00
%meson -Dbuild-id=%{release}
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
2017-02-07 18:31:42 +03:00
%doc README.md COPYING AUTHORS ChangeLog 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