virt-manager/virt-manager.spec

298 lines
11 KiB
RPMSpec

#
# spec file for package virt-manager (Version 0.5.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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/
#
Name: virt-manager
%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
Release: 2
Summary: Virtual Machine Manager
Group: System/Monitoring
License: GPL v2 or later
Url: http://virt-manager.et.redhat.com
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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
Patch3: virtman-vminstall.diff
# These two are just the oldest version tested
# Requires: pygtk2 >= 1.99.12-6
Requires: python-gtk
# Requires: gnome-python2-gconf >= 1.99.11-7
Requires: python-gnome
# 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
Requires: dbus-1-python
# 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
Requires: vte
# 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
%description
Virtual Machine Manager provides a graphical tool for administering
virtual machines.
Authors:
--------
Daniel Berrange <berrange@redhat.com>
Hugh O. Brock <hbrock@redhat.com>
Jeremy Katz <katzj@redhat.com>
%prep
%setup -q
%setup -b 1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
# autoreconf -i
%configure --sysconfdir=%{gsysconfdir}
make %{?_smp_mflags}
cd $RPM_BUILD_DIR/%{virtinst_name}
python setup.py build
python setup.py install
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT%{_datadir}/virt-manager/virtinst/
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
%find_lang %{name}
%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
%clean
# 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
%post
export GCONF_CONFIG_SOURCE=`%{gconftool} --get-default-source`
%{gconftool} --makefile-install-rule \
%{gsysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
%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
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING AUTHORS ChangeLog
# %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
%changelog
* Sun Feb 03 2008 dpmerrill@novell.com
- 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
- 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
- Properly attach and detach CDs to running VM. (#289393)
* 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
- 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)
* Wed Mar 28 2007 ccoffing@novell.com
- Update icon filename.
* Tue Mar 13 2007 ccoffing@novell.com
- Import threading and timer tick patches from upstream to improve
stability. (#237406 and others)
- Do not offer QEMU option. (#254083)
* Mon Mar 12 2007 ccoffing@novell.com
- Update virt-manager to match changes in vm-install's disk class,
due to bug #247849.
* Fri Mar 09 2007 ccoffing@novell.com
- Make Ctrl+Alt release the mouse cursor (#252998).
* Thu Mar 08 2007 ccoffing@novell.com
- Add release to "Requires: xen-tools", to prevent mixing with
pre-beta 5. (#238986, #252495)
* Fri Mar 02 2007 ccoffing@novell.com
- Disable gtk-menu-bar-accel when VM has focus, to allow VM to get
F10 key. (#240001)
* Tue Feb 27 2007 ccoffing@novell.com
- 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)
* Thu Feb 22 2007 ccoffing@novell.com
- If Xen isn't running, put up error window instead of raising.
(#244772)
* Tue Feb 13 2007 ccoffing@novell.com
- 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.
* Mon Jan 29 2007 ccoffing@novell.com
- Fix desktop file. (#239275)
- Update to 0.3.0 (updated translations; no code changes)
* Mon Jan 22 2007 ccoffing@novell.com
- Fix desktop file, so icon shows in YaST. (#237046)
- Clean up macros in spec file.
* Fri Jan 19 2007 ccoffing@novell.com
- Use temporary icon until real ones arrive.
- Update to changeset 371 to fix VNC issues.
* Wed Jan 17 2007 ccoffing@novell.com
- Fix BuildRequires and paths to work with both SLES10 and STABLE.
* Fri Jan 12 2007 ccoffing@novell.com
- Fix sysconfdir path.
- Add desktop file.
* Thu Jan 11 2007 ccoffing@novell.com
- Add to SLES 10 SP1 (fate #301181)
- Update to virt-manager 0.2.6.
- Fix type_register deprecation warnings.
* Tue Oct 24 2006 ccoffing@novell.com
- Initial package.
- Replace virt-inst with xen-vm-install (part of xen-tools-install)