File virt-viewer.spec of Package virt-viewer

#
# spec file for package virt-viewer (Version 0.0.3)
#
# Copyright (c) 2010 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
Version:        0.0.3
Release:        3.<RELEASE30>
Summary:        Virtual Machine Viewer
Group:          System/Monitoring
License:        GPL v2 or later
Url:            http://www.virt-manager.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        virt-viewer-0.0.3.tar.gz
Patch0:         netcat.diff
Patch1:         vnc-listen.patch
Patch2:         linux-keycombo.patch
Patch3:         windows-keycombo.patch
Patch4:         netware-keycombo.patch
Patch5:         netware-keycombo2.patch
BuildRequires:  gtk2-devel
BuildRequires:  libvirt-devel
BuildRequires:  libxml2-devel
BuildRequires:  gtk-vnc-devel >= 0.1.0
#our build requirements
BuildRequires:  xen-devel
Requires:       netcat
ExclusiveArch:  %ix86 x86_64

%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.



Authors:
--------
    Daniel Berrange <berrange@redhat.com>

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
# Note: remote GTKVNC_CFLAGS and GTKVNC_LIBS when gtk-vnc.pc is fixed in STABLE
%configure GTKVNC_CFLAGS=-I/usr/include/gtk-vnc-1.0 GTKVNC_LIBS=-lgtk-vnc-1.0
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install  DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYING AUTHORS ChangeLog
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

%changelog
openSUSE Build Service is sponsored by