File virt-viewer.spec of Package virt-viewer
#
# spec file for package virt-viewer
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: virt-viewer
Summary: Virtual Machine Viewer
License: GPL-2.0+
Group: System/Monitoring
Version: 0.5.4
Release: 0
Url: http://www.virt-manager.org
Source0: virt-viewer-0.5.4.tar.gz
Patch0: virtview-git-ipv6-check.patch
Patch1: virtview-git-resize-window.patch
Patch2: virtview-git-spice-rounding.patch
Patch3: virtview-git-spice-resize-window.patch
Patch4: virtview-git-ssh-localhost-connect.patch
Patch5: virtview-git-transport-segv.patch
Patch20: netcat.diff
Patch21: windows-keycombo.patch
Patch22: netware-keycombo.patch
Patch23: glade-keycombo.patch
Patch24: report-error.patch
Patch25: virtview-desktop.patch
ExclusiveArch: %ix86 x86_64 s390x
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: gtk2-devel
BuildRequires: libvirt-devel >= 0.9.7
BuildRequires: libxml2-devel
%if %suse_version > 1140
BuildRequires: gtk-vnc2-devel
%endif
BuildRequires: gtk-vnc-devel >= 0.3.8
BuildRequires: libglade2-devel
%if %suse_version > 1130
BuildRequires: libpixman-1-0-devel
%else
BuildRequires: libpixman
%endif
BuildRequires: intltool
# Our build requirements
BuildRequires: vim
#BuildRequires: xen-devel
Requires: netcat
%description
Virtual Machine Viewer provides a graphical console client for
connecting to virtual machines. It uses the GTK-VNC widget to provide
the display, and libvirt for looking up VNC server details.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%build
echo "suse_version = %suse_version"
%configure GTKVNC_CFLAGS=-I/usr/include/gtk-vnc-1.0 GTKVNC_LIBS=-lgtk-vnc-1.0
make %{?_smp_mflags}
%install
%makeinstall
%{find_lang} %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING AUTHORS ChangeLog
%{_bindir}/%{name}
%{_bindir}/remote-viewer
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ui
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/virt-viewer.1*
%{_mandir}/man1/remote-viewer.1*
%{_datadir}/applications/remote-viewer.desktop
/usr/share/virt-viewer/ui/virt-viewer-about.xml
/usr/share/virt-viewer/ui/virt-viewer-auth.xml
/usr/share/virt-viewer/ui/virt-viewer.xml
%changelog