2007-07-20 23:26:08 +04:00
# -*- rpm-spec -*-
2008-03-09 23:36:17 +03:00
# 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}
2007-07-20 23:26:08 +04:00
Name : @PACKAGE@
Version : @VERSION@
2007-08-16 04:14:44 +04:00
Release : 1%{?dist} %{?extra_release}
2007-07-20 23:26:08 +04:00
Summary : Virtual Machine Viewer
2007-08-16 04:18:51 +04:00
Group : Applications/System
2008-03-07 20:53:56 +03:00
License : GPLv2+
2007-07-20 23:26:08 +04:00
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)
2008-03-07 20:53:56 +03:00
Requires : openssh-clients
2007-07-20 23:26:08 +04:00
BuildRequires : gtk2-devel
2009-07-29 16:31:23 +04:00
BuildRequires : libvirt-devel >= 0.6.0
2007-08-16 04:18:51 +04:00
BuildRequires : libxml2-devel
2008-11-28 15:24:56 +03:00
BuildRequires : libglade2-devel
2009-07-29 16:20:08 +04:00
BuildRequires : gtk-vnc-devel >= 0.3.8
2007-07-20 23:59:19 +04:00
BuildRequires : /usr/bin/pod2man
2008-03-09 23:36:17 +03:00
%if %{_with_plugin}
%if "%{fedora}" > "8"
BuildRequires : xulrunner-devel
%else
BuildRequires : firefox-devel
%endif
%endif
2007-07-20 23:26:08 +04:00
%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.
2008-03-09 23:36:17 +03:00
%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
2007-07-20 23:26:08 +04:00
%prep
%setup -q
%build
2008-03-09 23:36:17 +03:00
%if %{_with_plugin}
%configure --enable-plugin=yes
%else
2007-07-20 23:26:08 +04:00
%configure
2008-03-09 23:36:17 +03:00
%endif
%__make %{?_smp_mflags}
2007-07-20 23:26:08 +04:00
%install
rm -rf $RPM_BUILD_ROOT
2008-03-07 20:53:56 +03:00
%__make install DESTDIR=$RPM_BUILD_ROOT
2008-03-09 23:36:17 +03:00
%if %{_with_plugin}
rm -f %{buildroot} %{_libdir} /mozilla/plugins/%{name} -plugin.a
rm -f %{buildroot} %{_libdir} /mozilla/plugins/%{name} -plugin.la
%endif
2010-01-11 20:00:37 +03:00
%find_lang %{name}
2007-07-20 23:26:08 +04:00
%clean
rm -rf $RPM_BUILD_ROOT
2010-01-11 20:00:37 +03:00
%files -f %{name}.lang
2007-07-20 23:26:08 +04:00
%defattr (-,root,root,-)
%doc README COPYING AUTHORS ChangeLog NEWS
%{_bindir} /%{name}
2008-11-26 21:03:50 +03:00
%dir %{_datadir} /%{name}
%dir %{_datadir} /%{name} /ui/
%{_datadir} /%{name} /ui/auth.glade
%{_datadir} /%{name} /ui/about.glade
%{_datadir} /%{name} /ui/viewer.glade
2007-07-20 23:59:19 +04:00
%{_mandir} /man1/%{name} *
2007-07-20 23:26:08 +04:00
2008-03-09 23:36:17 +03:00
%if %{_with_plugin}
%files plugin
%defattr (-, root, root)
%{_libdir} /mozilla/plugins/%{name} -plugin.so
%endif
2007-07-20 23:26:08 +04:00
%changelog
2008-03-09 23:36:17 +03:00
* Sun Mar 9 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1
- Added optional plugin subRPM
2007-08-29 04:25:43 +04:00
* Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
- Added support for remote console access
2007-08-16 04:18:51 +04:00
* Wed Aug 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
2007-07-20 23:26:08 +04:00
- First release