File virt-viewer.spec of Package virt-viewer

#
# spec file for package virt-viewer (Version 0.2.1)
#
# 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.2.1
Release:        1
Summary:        Virtual Machine Viewer
Group:          System/Monitoring
License:        GPLv2+
Url:            http://www.virt-manager.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        virt-viewer-0.2.1.tar.gz
Patch0:         netcat.diff
Patch1:         vnc-listen.patch
Patch2:         windows-keycombo.patch
Patch3:         netware-keycombo.patch
Patch4:         glade-keycombo.patch
Patch5:         keymap.diff
Patch6:         report-error.patch
BuildRequires:  gtk2-devel
BuildRequires:  libvirt-devel >= 0.6.0
BuildRequires:  libxml2-devel
BuildRequires:  gtk-vnc-devel >= 0.3.8
BuildRequires:  libglade2-devel
BuildRequires:  libpixman
BuildRequires:  intltool
#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
%patch6 -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}*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ui
%dir %{_datadir}/locale/*/*/*.mo
/usr/share/virt-viewer/ui/about.glade
/usr/share/virt-viewer/ui/auth.glade
/usr/share/virt-viewer/ui/viewer.glade

%changelog
openSUSE Build Service is sponsored by