Summary: Virtual Machine Viewer
Summary(pl.UTF-8): Przeglądarka maszyny wirtualnej
Name: virt-viewer
-Version: 6.0
+Version: 11.0
Release: 1
License: GPL v2+
Group: X11/Applications/Networking
-Source0: https://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.gz
-# Source0-md5: 4ed1a71013fa32326861b4710e231ab4
-Patch0: remove-spice-controller.patch
+Source0: https://virt-manager.org/download/sources/virt-viewer/%{name}-%{version}.tar.xz
+# Source0-md5: 06b80228aaf10e614aeb8ffa4814b03a
+Patch0: meson.patch
URL: http://virt-manager.org/
-BuildRequires: autoconf >= 2.50
-BuildRequires: automake
+BuildRequires: bash-completion-devel
+BuildRequires: cmake
BuildRequires: gettext-tools >= 0.14.1
-BuildRequires: glib2-devel >= 1:2.38.0
+BuildRequires: glib2-devel >= 1:2.40.0
BuildRequires: gtk+3-devel >= 3.12
BuildRequires: gtk3-vnc-devel >= 0.4.3
+BuildRequires: icoutils
BuildRequires: intltool >= 0.35.0
-%{?with_ovirt:BuildRequires: libgovirt-devel >= 0.3.2}
+%{?with_ovirt:BuildRequires: libgovirt-devel >= 0.3.7}
BuildRequires: libtool >= 2:2
-BuildRequires: libvirt-devel >= 0.10.0
+BuildRequires: libvirt-devel >= 1.2.8
BuildRequires: libvirt-glib-devel >= 0.1.8
BuildRequires: libxml2-devel >= 1:2.6.0
+BuildRequires: meson
+BuildRequires: ninja
BuildRequires: perl-tools-pod
-BuildRequires: rpmbuild(macros) >= 1.596
+BuildRequires: pkgconfig
+%{?with_ovirt:BuildRequires: rest-devel >= 0.8}
+BuildRequires: rpmbuild(macros) >= 2.000
BuildRequires: sed >= 4.0
-%{?with_spice:BuildRequires: spice-gtk-devel >= 0.33}
+%{?with_spice:BuildRequires: spice-gtk-devel >= 0.35}
BuildRequires: spice-protocol >= 0.12.7
+BuildRequires: vte-devel
Requires(post,postun): gtk-update-icon-cache
Requires(post,postun): shared-mime-info
-Requires: glib2 >= 1:2.38.0
+Requires: glib2 >= 1:2.40.0
Requires: gtk+3 >= 3.12
Requires: gtk3-vnc >= 0.4.3
Requires: hicolor-icon-theme
-%{?with_ovirt:Requires: libgovirt >= 0.3.2}
-Requires: libvirt >= 0.10.0
+%{?with_ovirt:Requires: libgovirt >= 0.3.3}
+Requires: libvirt >= 1.2.8
Requires: libvirt-glib >= 0.1.8
Requires: libxml2 >= 1:2.6.0
-%{?with_spice:Requires: spice-gtk >= 0.33}
+%{?with_ovirt:Requires: rest >= 0.8}
+%{?with_spice:Requires: spice-gtk >= 0.35}
Suggests: gnome-keyring >= 0.4.9
Suggests: openssh-clients
# let it obsolete withdrawn spice client from spice-space package
%{?with_spice:Obsoletes: spice-client}
Obsoletes: virt-viewer-plugin
-ExclusiveArch: %{ix86} %{x8664} ia64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
SPICE-GTK do zapewnienia obrazu oraz libvirt do odczytu szczegółów
serwera VNC/SPICE.
+%package -n bash-completion-virt-viewer
+Summary: bash-completion for virt-viewer command
+Summary(pl.UTF-8): bashowe uzupełnianie parametrów polecenia virt-viewer
+Group: Applications/Shells
+Requires: %{name} = %{version}-%{release}
+Requires: bash-completion >= 2.0
+BuildArch: noarch
+
+%description -n bash-completion-virt-viewer
+Bash-completion for virt-viewer command.
+
+%description -n bash-completion-virt-viewer -l pl.UTF-8
+Bashowe uzupełnianie parametrów polecenia virt-viewer.
+
%prep
%setup -q
%patch0 -p1
-%{__sed} -i -e 's|PWD|shell pwd|g' icons/*/Makefile.am
-
%build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
- --disable-silent-rules \
- --disable-update-mimedb \
- %{__with_without spice spice-gtk} \
- %{!?with_ovirt:--without-ovirt}
-
-%{__make}
+%meson \
+ %{!?with_ovirt:-Dovirt=disabled} \
+ %{?with_ovirt:-Dovirt=enabled} \
+ %{!?with_spice:-Dspice=disabled} \
+ %{?with_spice:-Dspice=enabled} \
+ build
+
+%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build
%find_lang %{name}
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README.md
+%doc AUTHORS NEWS README.md
%attr(755,root,root) %{_bindir}/virt-viewer
%attr(755,root,root) %{_bindir}/remote-viewer
-%{_datadir}/appdata/remote-viewer.appdata.xml
+%{_datadir}/metainfo/remote-viewer.appdata.xml
%{_datadir}/mime/packages/virt-viewer-mime.xml
%{_desktopdir}/remote-viewer.desktop
%{_iconsdir}/hicolor/*/apps/virt-viewer.png
-%{_iconsdir}/hicolor/24x24/devices/virt-viewer-usb.png
-%{_iconsdir}/hicolor/24x24/devices/virt-viewer-usb.svg
+%{_iconsdir}/hicolor/scalable/apps/virt-viewer.svg
%{_mandir}/man1/virt-viewer.1*
%{_mandir}/man1/remote-viewer.1*
+
+%files -n bash-completion-virt-viewer
+%defattr(644,root,root,755)
+%{bash_compdir}/virt-viewer