Codebase list virt-viewer / 3e100473-5cf8-4f36-8d0d-add65aa38abb/main virt-viewer.spec
3e100473-5cf8-4f36-8d0d-add65aa38abb/main

Tree @3e100473-5cf8-4f36-8d0d-add65aa38abb/main (Download .tar.gz)

virt-viewer.spec @3e100473-5cf8-4f36-8d0d-add65aa38abb/main

e4be188
 
5bf850a
 
 
62b4ac8
5bf850a
07b9d4d
0d29721
07b9d4d
 
 
01d4881
2c899ea
0d29721
 
2c899ea
e7ae231
 
e4be188
2c899ea
 
e4be188
dbff602
2c899ea
e4be188
dbff602
e2a8e17
 
7ef218a
 
e4be188
2c899ea
 
 
 
 
 
5bf850a
 
 
 
 
 
 
2c899ea
 
e123f05
f00b1ca
 
 
 
07b9d4d
62b4ac8
f00b1ca
07b9d4d
e4be188
2c899ea
0d29721
2c899ea
 
 
 
0d29721
 
 
 
 
 
e4be188
 
 
8d9bbb8
 
e4be188
 
 
 
 
07b9d4d
5bf850a
 
 
07b9d4d
 
032178c
07b9d4d
032178c
07b9d4d
 
01d4881
 
 
 
62b4ac8
dbff602
e4be188
 
 
 
dbff602
6806613
e4be188
e2a8e17
6806613
e123f05
e4be188
e2a8e17
 
de8f760
7ef218a
f00b1ca
5bf850a
e2a8e17
 
2c899ea
 
 
e4be188
 
# -*- rpm-spec -*-

# Default to skipping autoreconf.  Distros can change just this one line
# (or provide a command-line override) if they backport any patches that
# touch configure.ac or Makefile.am.
%{!?enable_autotools:%global enable_autotools 0}

%define with_spice 0
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
%define with_spice 1
%endif

%define with_govirt 0
%define with_bash_completion 0
%if 0%{?fedora} > 19 || 0%{?rhel} >= 7
%define with_govirt 1
%define with_bash_completion 1
%endif

Name: virt-viewer
Version: 9.0
Release: 1%{?dist}
Summary: Virtual Machine Viewer
License: GPLv2+
URL: http://gitlab.com/virt-viewer/virt-viewer
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
Requires: openssh-clients
Requires(post):   %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils

%if %{with_bash_completion}
# Our bash completion script uses virsh to list domains
Requires: libvirt-client
%endif


%if 0%{?enable_autotools}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
BuildRequires: libtool
%endif

BuildRequires: gcc
BuildRequires: pkgconfig(glib-2.0) >= 2.40
BuildRequires: pkgconfig(gtk+-3.0) >= 3.12
BuildRequires: pkgconfig(libvirt) >= 0.10.0
BuildRequires: pkgconfig(libvirt-glib-1.0) >= 0.1.8
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires: pkgconfig(gtk-vnc-2.0) >= 0.4.0
%if %{with_spice}
BuildRequires: pkgconfig(spice-client-gtk-3.0) >= 0.35
BuildRequires: pkgconfig(spice-protocol) >= 0.12.7
%endif
BuildRequires: /usr/bin/pod2man
BuildRequires: gettext
%if %{with_govirt}
BuildRequires: pkgconfig(govirt-1.0) >= 0.3.3
%endif
%if %{with_bash_completion}
BuildRequires: pkgconfig(bash-completion) >= 2.0
%endif

%if 0%{?fedora} >= 20
Obsoletes: spice-client < 0.12.3-2
%endif


%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
%setup -q

%build

%if 0%{?enable_autotools}
autoreconf -if
%endif

%if %{with_spice}
%define spice_arg --with-spice-gtk
%else
%define spice_arg --without-spice-gtk
%endif

%if %{with_govirt}
%define govirt_arg --with-ovirt
%endif

%configure %{spice_arg} %{govirt_arg} --with-buildid=%{release} --disable-update-mimedb
%__make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
%__make install  DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}


%files -f %{name}.lang
%doc README.md COPYING AUTHORS ChangeLog NEWS
%{_bindir}/%{name}
%{_bindir}/remote-viewer
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/*/devices/*
%{_datadir}/applications/remote-viewer.desktop
%{_datadir}/appdata/remote-viewer.appdata.xml
%{_datadir}/mime/packages/virt-viewer-mime.xml
%{_mandir}/man1/virt-viewer.1*
%{_mandir}/man1/remote-viewer.1*
%if %{with_bash_completion}
%{_datadir}/bash-completion/completions/virt-viewer
%endif

%changelog