# -*- rpm-spec -*- # Plugin isn't ready for real world use yet - it needs # a security audit at very least %define _with_plugin %{?with_plugin:1}%{!?with_plugin:0} Name: virt-viewer Version: 0.0.3 Release: 2{?dist} Summary: Virtual Machine Viewer Group: Applications/System License: GPLv2+ URL: http://virt-manager.org/ Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: openssh-clients BuildRequires: gtk2-devel BuildRequires: libvirt-devel >= 0.3.1-4.fc8 BuildRequires: libxml2-devel BuildRequires: gtk-vnc-devel >= 0.3.4 BuildRequires: /usr/bin/pod2man %if %{_with_plugin} %if "%{fedora}" > "8" BuildRequires: xulrunner-devel %else BuildRequires: firefox-devel %endif %endif %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. %if %{_with_plugin} %package plugin Summary: Mozilla plugin for the gtk-vnc library Group: Development/Libraries Requires: %{name} = %{version} %description plugin gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines allowing it to be completely asynchronous while remaining single threaded. This package provides a web browser plugin for Mozilla compatible browsers. %endif %prep %setup -q %build %if %{_with_plugin} %configure --enable-plugin=yes %else %configure %endif %__make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %__make install DESTDIR=$RPM_BUILD_ROOT %if %{_with_plugin} rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.a rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.la %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README COPYING AUTHORS ChangeLog NEWS %{_bindir}/%{name} %{_mandir}/man1/%{name}* %if %{_with_plugin} %files plugin %defattr(-, root, root) %{_libdir}/mozilla/plugins/%{name}-plugin.so %endif %changelog * Wed Jun 25 2008 Daniel P. Berrange - 0.0.3-2.fc10 - Rebuild for GNU TLS ABI bump * Mon Mar 10 2008 Daniel P. Berrange - 0.0.3-1.fc9 - Updated to 0.0.3 release * Mon Feb 18 2008 Fedora Release Engineering - 0.0.2-4 - Autorebuild for GCC 4.3 * Fri Jan 11 2008 Daniel P. Berrange - 0.0.2-3.fc9 - Set domain name as window title - Hide input for passwd fields during auth * Mon Oct 15 2007 Daniel P. Berrange - 0.0.2-2.fc8 - Change TLS x509 credential name to sync with libvirt * Tue Aug 28 2007 Daniel P. Berrange - 0.0.2-1.fc8 - Added support for remote console access * Fri Aug 17 2007 Daniel P. Berrange - 0.0.1-2.fc8 - Restrict built to x86 & ia64 because libvirt is only on those arches * Wed Aug 15 2007 Daniel P. Berrange - 0.0.1-1.fc8 - First release