2007-02-02 15:57:05 +01:00
|
|
|
#
|
2008-02-04 01:10:25 +01:00
|
|
|
# spec file for package virt-manager (Version 0.5.3)
|
2007-02-02 15:57:05 +01:00
|
|
|
#
|
2008-02-04 01:10:25 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-02-02 15:57:05 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-02-15 01:43:39 +01:00
|
|
|
|
2007-02-02 15:57:05 +01:00
|
|
|
Name: virt-manager
|
2008-02-04 01:10:25 +01:00
|
|
|
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
|
|
|
|
%define gsysconfdir /etc/opt/gnome
|
|
|
|
%define gconftool /opt/gnome/bin/gconftool-2
|
|
|
|
%define virtinst_maj 0
|
|
|
|
%define virtinst_min 300
|
|
|
|
%define virtinst_rel 2
|
|
|
|
%define virtinst_name virtinst-%{virtinst_maj}.%{virtinst_min}.%{virtinst_rel}
|
|
|
|
Version: 0.5.3
|
2008-02-15 01:43:39 +01:00
|
|
|
Release: 3
|
2007-02-02 15:57:05 +01:00
|
|
|
Summary: Virtual Machine Manager
|
2008-02-04 01:10:25 +01:00
|
|
|
Group: System/Monitoring
|
|
|
|
License: GPL v2 or later
|
|
|
|
Url: http://virt-manager.et.redhat.com
|
2007-02-02 15:57:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-02-04 01:10:25 +01:00
|
|
|
ExclusiveArch: %{ix86} x86_64 ia64
|
|
|
|
Source0: virt-manager-%{version}.tar.gz
|
|
|
|
Source1: %{virtinst_name}.tar.gz
|
|
|
|
Patch0: virtman-desktop.diff
|
|
|
|
Patch1: virtman-dbus-query.diff
|
|
|
|
Patch2: virtman-xen-uri.diff
|
2008-02-04 17:42:11 +01:00
|
|
|
Patch3: virtman-vminstall.diff
|
2008-02-15 01:43:39 +01:00
|
|
|
Patch4: virtman-pointer.diff
|
|
|
|
Patch5: virtman-detect.diff
|
2008-02-04 01:10:25 +01:00
|
|
|
# These two are just the oldest version tested
|
|
|
|
# Requires: pygtk2 >= 1.99.12-6
|
2007-02-02 15:57:05 +01:00
|
|
|
Requires: python-gtk
|
2008-02-04 01:10:25 +01:00
|
|
|
# Requires: gnome-python2-gconf >= 1.99.11-7
|
2007-02-02 15:57:05 +01:00
|
|
|
Requires: python-gnome
|
2008-02-04 01:10:25 +01:00
|
|
|
# Absolutely require this version or newer
|
|
|
|
Requires: libvirt-python >= 0.3.0-1
|
|
|
|
# Definitely does not work with earlier due to python API changes
|
|
|
|
# Requires: dbus-python >= 0.61
|
2007-02-02 15:57:05 +01:00
|
|
|
Requires: dbus-1-python
|
2008-02-04 01:10:25 +01:00
|
|
|
# Might work with earlier, but this is what we've tested
|
|
|
|
#Requires: gnome-keyring >= 0.4.9
|
|
|
|
Requires: gnome-keyring
|
|
|
|
# Minimum we've tested with
|
|
|
|
# Although if you don't have this, comment it out and the app
|
|
|
|
# will work just fine - keyring functionality will simply be
|
|
|
|
# disabled
|
|
|
|
# Requires: gnome-python2-gnomekeyring >= 2.15.4
|
|
|
|
# Requires: gnome-python2-gnomevfs >= 2.15.4
|
|
|
|
# Minimum we've tested with
|
|
|
|
Requires: libxml2-python >= 2.6.23
|
|
|
|
# Required to install Xen & QEMU guests
|
|
|
|
# Requires: python-virtinst >= 0.300.2
|
|
|
|
# Required for loading the glade UI
|
|
|
|
# Requires: pygtk2-libglade
|
|
|
|
# Required for our graphics which are currently SVG format
|
|
|
|
Requires: librsvg2
|
|
|
|
# Earlier vte had broken python binding module
|
|
|
|
# Requires: vte >= 0.12.2
|
2007-02-02 15:57:05 +01:00
|
|
|
Requires: vte
|
2008-02-04 01:10:25 +01:00
|
|
|
# For online help
|
|
|
|
Requires: scrollkeeper
|
|
|
|
# For console widget
|
|
|
|
# Requires: gtk-vnc-python
|
|
|
|
Requires: python-gtk-vnc
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: scrollkeeper
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: python-gtk
|
|
|
|
BuildRequires: gconf2
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
# virtinst BuildRequires
|
|
|
|
BuildRequires: libxml2-python
|
|
|
|
BuildRequires: python-urlgrabber
|
|
|
|
BuildRequires: libvirt-python
|
|
|
|
Requires(pre): gconf2
|
|
|
|
Requires(post): gconf2,desktop-file-utils
|
|
|
|
Requires(postun): desktop-file-utils
|
|
|
|
Requires(preun): gconf2
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2007-02-02 15:57:05 +01:00
|
|
|
%description
|
2007-08-05 11:49:44 +02:00
|
|
|
Virtual Machine Manager provides a graphical tool for administering
|
|
|
|
virtual machines.
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Berrange <berrange@redhat.com>
|
|
|
|
Hugh O. Brock <hbrock@redhat.com>
|
|
|
|
Jeremy Katz <katzj@redhat.com>
|
|
|
|
|
|
|
|
%prep
|
2008-02-04 01:10:25 +01:00
|
|
|
%setup -q
|
|
|
|
%setup -b 1
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2008-02-04 17:42:11 +01:00
|
|
|
%patch3 -p1
|
2008-02-15 01:43:39 +01:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
%build
|
2008-02-04 01:10:25 +01:00
|
|
|
# autoreconf -i
|
|
|
|
%configure --sysconfdir=%{gsysconfdir}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
cd $RPM_BUILD_DIR/%{virtinst_name}
|
|
|
|
python setup.py build
|
|
|
|
python setup.py install
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-02-04 01:10:25 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2007-07-03 15:21:38 +02:00
|
|
|
mkdir $RPM_BUILD_ROOT%{_datadir}/virt-manager/virtinst/
|
2008-02-04 01:10:25 +01:00
|
|
|
install -m644 ../%{virtinst_name}/virtinst/*.py $RPM_BUILD_ROOT%{_datadir}/virt-manager/virtinst/
|
|
|
|
# install -m644 ../virtinst-0.300.2/virtinst/*.py $RPM_BUILD_ROOT%{_datadir}/virt-manager/virtinst/
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.la
|
|
|
|
# Unsupport languages:
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/or
|
2007-05-03 23:48:15 +02:00
|
|
|
%find_lang %{name}
|
2008-02-04 01:10:25 +01:00
|
|
|
%suse_update_desktop_file %{name} X-SuSE-YaST-Virtualization
|
|
|
|
sed -i -e 's/Categories=.*/Categories=Qt;X-SuSE-YaST;X-SuSE-YaST-Virtualization;/' $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/%{name}.desktop
|
|
|
|
# Nuking these because old version didnt have any
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/gnome
|
|
|
|
# Also fixing the %{name}.lang file forcibly.
|
|
|
|
sed -i '\^/usr/share/gnome/help/^d' %{name}.lang
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
%clean
|
2008-02-04 01:10:25 +01:00
|
|
|
# rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%pre
|
|
|
|
if [ "$1" -gt 1 ]; then
|
|
|
|
export GCONF_CONFIG_SOURCE=`%{gconftool} --get-default-source`
|
|
|
|
%{gconftool} --makefile-uninstall-rule \
|
|
|
|
%{gsysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
|
|
|
|
fi
|
2007-02-02 15:57:05 +01:00
|
|
|
|
2008-02-04 01:10:25 +01:00
|
|
|
%post
|
|
|
|
export GCONF_CONFIG_SOURCE=`%{gconftool} --get-default-source`
|
|
|
|
%{gconftool} --makefile-install-rule \
|
|
|
|
%{gsysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2008-02-04 01:10:25 +01:00
|
|
|
%preun
|
|
|
|
if [ "$1" -eq 0 ]; then
|
|
|
|
export GCONF_CONFIG_SOURCE=`%{gconftool} --get-default-source`
|
|
|
|
%{gconftool} --makefile-uninstall-rule \
|
|
|
|
%{gsysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
|
|
|
|
fi
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2008-02-04 01:10:25 +01:00
|
|
|
%files -f %{name}.lang
|
2007-02-02 15:57:05 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING AUTHORS ChangeLog
|
2008-02-04 01:10:25 +01:00
|
|
|
# %dir %attr(775,root,root) /etc/gconf
|
|
|
|
# %dir %attr(775,root,root) /etc/gconf/schemas
|
|
|
|
%{gsysconfdir}/gconf/schemas/%{name}.schemas
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}-launch
|
|
|
|
%{_libdir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/*.glade
|
|
|
|
%dir %{_datadir}/%{name}/pixmaps
|
|
|
|
%{_datadir}/%{name}/pixmaps/*.png
|
|
|
|
%{_datadir}/%{name}/pixmaps/*.svg
|
|
|
|
%{_datadir}/%{name}/*.py
|
|
|
|
%dir %{_datadir}/%{name}/virtManager
|
|
|
|
%{_datadir}/%{name}/virtManager/*.py
|
|
|
|
%dir %{_datadir}/%{name}/virtinst
|
|
|
|
%{_datadir}/%{name}/virtinst/*.py
|
|
|
|
# %dir %attr(775,root,root) %{_datadir}/locale/or
|
|
|
|
# %dir %attr(775,root,root) %{_datadir}/locale/or/LC_MESSAGES
|
|
|
|
# %{_datadir}/locale/or/LC_MESSAGES/*
|
|
|
|
%{_datadir}/omf/%{name}
|
|
|
|
# %dir %attr(775,root,root) %{_datadir}/gnome
|
|
|
|
# %{_datadir}/gnome/help
|
|
|
|
%{_datadir}/applications/YaST2/%{name}.desktop
|
|
|
|
%{_datadir}/dbus-1/services/%{name}.service
|
|
|
|
%{_datadir}/man/man1/%{name}.1*
|
|
|
|
# FIXME: autobuild complains that these are unowned (not true...)
|
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%dir %{_datadir}/dbus-1/services
|
|
|
|
%dir %{_datadir}/applications/YaST2
|
2007-02-02 15:57:05 +01:00
|
|
|
|
2007-02-19 23:39:46 +01:00
|
|
|
%changelog
|
2008-02-15 01:43:39 +01:00
|
|
|
* Thu Feb 14 2008 dpmerrill@novell.com
|
|
|
|
- Changed virtman-xen-uri to correct the case where no
|
|
|
|
- connection param is passed in and uri is None
|
|
|
|
- bnc#362013
|
|
|
|
* Tue Feb 12 2008 dpmerrill@novell.com
|
|
|
|
- Changed virtman-desktop and virtman-xen-uri to correct invalid
|
|
|
|
- parms being passed in from YaST - now sends "-c xen:///"
|
|
|
|
- bnc#361334
|
|
|
|
* Tue Feb 12 2008 dpmerrill@novell.com
|
|
|
|
- Added virtman-detect to delay Hal signal connection until
|
|
|
|
- after device detection to prevent start-up delay
|
|
|
|
- bnc#361202
|
|
|
|
* Mon Feb 11 2008 dpmerrill@novell.com
|
|
|
|
- Added virtman-pointer to set vnc to show only one pointer
|
|
|
|
- bnc#359799
|
2008-02-04 01:10:25 +01:00
|
|
|
* Sun Feb 03 2008 dpmerrill@novell.com
|
2008-02-04 17:42:11 +01:00
|
|
|
- Added virtman-vminstall for connecting to vm-install
|
|
|
|
- and changed virtman-xen-uri.diff to force "xen:///"
|
|
|
|
- bnc#358400
|
|
|
|
* Sun Feb 03 2008 dpmerrill@novell.com
|
2008-02-04 01:10:25 +01:00
|
|
|
- Added virtman-xen-uri.diff to fix problem starting vnc.
|
|
|
|
- virtman was getting confused between "xen" and "xen:///" uris.
|
|
|
|
- bnc#358397
|
|
|
|
* Sat Feb 02 2008 dpmerrill@novell.com
|
|
|
|
- Added virtman-dbus-query.diff to work around a hal/dbus
|
|
|
|
- bug that crashes on QueryCapabilities()
|
|
|
|
- bnc#358324
|
|
|
|
* Thu Jan 31 2008 dpmerrill@novell.com
|
|
|
|
- Added virtinst to finish resolving run-time dependencies
|
|
|
|
- bnc#355826
|
|
|
|
- bnc#356999
|
|
|
|
* Wed Jan 23 2008 dpmerrill@novell.com
|
|
|
|
- Changed package requirements in spec file Requires section.
|
|
|
|
- pygtk2 -> python-gtk
|
|
|
|
- gnome-python2-gconf -> python-gnome
|
|
|
|
- dbus-python -> dbus-1-python
|
|
|
|
- gnome-python2-gnomekeyring -> removed
|
|
|
|
- gnome-python2-gnomevfs -> removed
|
|
|
|
- python-virtinst -> removed
|
|
|
|
- pygtk2-libglade -> removed
|
|
|
|
- gtk-vnc-python -> python-gtk-vnc
|
|
|
|
* Sat Jan 19 2008 dpmerrill@novell.com
|
|
|
|
- Added new virt-manager version (0.5.3) to sle10-sp2-i386
|
|
|
|
- (FATE Feature #302140)
|
|
|
|
* Thu Aug 16 2007 ccoffing@novell.com
|
|
|
|
- Update virt-manager to match vm-install changes due to #279153.
|
|
|
|
* Mon Jul 09 2007 ccoffing@novell.com
|
2007-08-05 11:49:44 +02:00
|
|
|
- Properly attach and detach CDs to running VM. (#289393)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Wed May 09 2007 ccoffing@novell.com
|
|
|
|
- Update .desktop with proper group. (#258600)
|
|
|
|
* Fri May 04 2007 ccoffing@novell.com
|
|
|
|
- Fix syntax error ("NOne" should be "None"), which caused
|
|
|
|
unnecessary VNC connection failures in virt-manager. (#237406)
|
|
|
|
* Wed May 02 2007 ccoffing@novell.com
|
|
|
|
- Drop virtman-xenstored-thrashing.diff, to change the default
|
|
|
|
refresh rate from 5 seconds back to 1 second. It is more
|
|
|
|
important to have up-to-date knowledge of VMs (to ensure consoles
|
|
|
|
can be opened, etc) rather than trying to lessen virt-manager's
|
|
|
|
processor load. (#270761)
|
|
|
|
* Tue Apr 10 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Remove code that (incorrectly) guesses the vnc port. (#259692)
|
|
|
|
- Do not refresh GUI every second (which causes xenstored to not
|
|
|
|
thrash so badly, which makes virt-manager more responsive and
|
|
|
|
less likely to time out or lock up). Partial fix for #237406.
|
|
|
|
- Import changeset 440, which makes virt-manager honor dom0's
|
|
|
|
keymap. (#241149)
|
|
|
|
- Revert patch for bug #244772, because it causes lockups, as
|
|
|
|
noted in bug #261110.
|
|
|
|
- Fix attaching disks to running VM. (#238986)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Wed Mar 28 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Update icon filename.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Tue Mar 13 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Import threading and timer tick patches from upstream to improve
|
|
|
|
stability. (#237406 and others)
|
|
|
|
- Do not offer QEMU option. (#254083)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Mon Mar 12 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Update virt-manager to match changes in vm-install's disk class,
|
|
|
|
due to bug #247849.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Fri Mar 09 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Make Ctrl+Alt release the mouse cursor (#252998).
|
2008-02-04 01:10:25 +01:00
|
|
|
* Thu Mar 08 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Add release to "Requires: xen-tools", to prevent mixing with
|
|
|
|
pre-beta 5. (#238986, #252495)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Fri Mar 02 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Disable gtk-menu-bar-accel when VM has focus, to allow VM to get
|
|
|
|
F10 key. (#240001)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Tue Feb 27 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- Update to 0.3.1.
|
|
|
|
- "Requires: librsvg" (#250156)
|
|
|
|
- Re-use vm-install's disk UI, to allow disks to be added/removed
|
|
|
|
from xend-managed VMs (currently only for running VMs). (#238986)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Thu Feb 22 2007 ccoffing@novell.com
|
2007-05-03 23:48:15 +02:00
|
|
|
- If Xen isn't running, put up error window instead of raising.
|
|
|
|
(#244772)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Tue Feb 13 2007 ccoffing@novell.com
|
2007-02-19 23:39:46 +01:00
|
|
|
- Update to latest hg; grabs mouse for better mouse tracking.
|
|
|
|
(#240387)
|
|
|
|
- Don't lose mouse grab on every keystroke
|
|
|
|
- Disable menubar & toolbar when pointer is in VM window, to avoid
|
|
|
|
key conflicts. (#240001)
|
|
|
|
- Fix syntax to avoid deprecation warnings (don't raise strings).
|
|
|
|
- YaST integration: default to managing on-box; detach from yast
|
|
|
|
control center.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Mon Jan 29 2007 ccoffing@novell.com
|
2007-02-02 15:57:05 +01:00
|
|
|
- Fix desktop file. (#239275)
|
|
|
|
- Update to 0.3.0 (updated translations; no code changes)
|
2008-02-04 01:10:25 +01:00
|
|
|
* Mon Jan 22 2007 ccoffing@novell.com
|
2007-02-02 15:57:05 +01:00
|
|
|
- Fix desktop file, so icon shows in YaST. (#237046)
|
|
|
|
- Clean up macros in spec file.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Fri Jan 19 2007 ccoffing@novell.com
|
2007-02-02 15:57:05 +01:00
|
|
|
- Use temporary icon until real ones arrive.
|
|
|
|
- Update to changeset 371 to fix VNC issues.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Wed Jan 17 2007 ccoffing@novell.com
|
2007-02-02 15:57:05 +01:00
|
|
|
- Fix BuildRequires and paths to work with both SLES10 and STABLE.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Fri Jan 12 2007 ccoffing@novell.com
|
2007-02-02 15:57:05 +01:00
|
|
|
- Fix sysconfdir path.
|
|
|
|
- Add desktop file.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Thu Jan 11 2007 ccoffing@novell.com
|
2007-02-02 15:57:05 +01:00
|
|
|
- Add to SLES 10 SP1 (fate #301181)
|
|
|
|
- Update to virt-manager 0.2.6.
|
|
|
|
- Fix type_register deprecation warnings.
|
2008-02-04 01:10:25 +01:00
|
|
|
* Tue Oct 24 2006 ccoffing@novell.com
|
2007-02-02 15:57:05 +01:00
|
|
|
- Initial package.
|
|
|
|
- Replace virt-inst with xen-vm-install (part of xen-tools-install)
|