c2a4f4f
# -*- rpm-spec -*-
c2a4f4f
c2a4f4f
# This macro is used for the continuous automated builds. It just
c2a4f4f
# allows an extra fragment based on the timestamp to be appended
c2a4f4f
# to the release. This distinguishes automated builds, from formal
c2a4f4f
# Fedora RPM builds
9c0f30d
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
c2a4f4f
c2a4f4f
Name: virt-manager
6c337bd
Version: 0.5.3
6c337bd
Release: 1%{_extra_release}
c2a4f4f
Summary: Virtual Machine Manager
c2a4f4f
c2a4f4f
Group: Applications/Emulators
6c337bd
License: GPLv2+
46283c2
URL: http://virt-manager.org/
46283c2
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
9c0f30d
Source1: %{name}.pam
9c0f30d
Source2: %{name}.console
c2a4f4f
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c2a4f4f
c2a4f4f
# These two are just the oldest version tested
c2a4f4f
Requires: pygtk2 >= 1.99.12-6
c2a4f4f
Requires: gnome-python2-gconf >= 1.99.11-7
c2a4f4f
# Absolutely require this version or newer
37f16f9
Requires: libvirt-python >= 0.3.3
c2a4f4f
# Definitely does not work with earlier due to python API changes
c2a4f4f
Requires: dbus-python >= 0.61
c2a4f4f
# Might work with earlier, but this is what we've tested
c2a4f4f
Requires: gnome-keyring >= 0.4.9
c2a4f4f
# Minimum we've tested with
a785d06
# Although if you don't have this, comment it out and the app
a785d06
# will work just fine - keyring functionality will simply be
9c0f30d
# disabled
a785d06
Requires: gnome-python2-gnomekeyring >= 2.15.4
a785d06
# Minimum we've tested with
a785d06
Requires: libxml2-python >= 2.6.23
a785d06
# Required to install Xen guests
6c337bd
Requires: python-virtinst >= 0.300.2
9c0f30d
# Required for loading the glade UI
9c0f30d
Requires: pygtk2-libglade
9c0f30d
# Required for our graphics which are currently SVG format
9c0f30d
Requires: librsvg2
9c0f30d
# Earlier vte had broken python binding module
a785d06
Requires: vte >= 0.12.2
9c0f30d
# For the consolehelper PAM stuff
9c0f30d
Requires: usermode
fcea5cb
# For online help
fcea5cb
Requires: scrollkeeper
46283c2
# For the guest console
46283c2
Requires: gtk-vnc-python
c2a4f4f
c2a4f4f
BuildRequires: pygtk2-devel
c2a4f4f
BuildRequires: gtk2-devel
c2a4f4f
BuildRequires: python-devel
628e68d
BuildRequires: gettext
fcea5cb
BuildRequires: scrollkeeper
9671c3f
Requires(pre): GConf2
9671c3f
Requires(post): GConf2
9671c3f
Requires(preun): GConf2
9179907
Requires(post): desktop-file-utils
9179907
Requires(postun): desktop-file-utils
9671c3f
c2a4f4f
%description
c2a4f4f
Virtual Machine Manager provides a graphical tool for administering
c2a4f4f
virtual machines such as Xen. It uses libvirt as the backend management
c2a4f4f
API.
c2a4f4f
c2a4f4f
%prep
46283c2
%setup -q
c2a4f4f
c2a4f4f
%build
c2a4f4f
%configure
c2a4f4f
make %{?_smp_mflags}
c2a4f4f
c2a4f4f
c2a4f4f
%install
c2a4f4f
rm -rf $RPM_BUILD_ROOT
c2a4f4f
make install  DESTDIR=$RPM_BUILD_ROOT
c2a4f4f
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.a
c2a4f4f
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.la
9c0f30d
9c0f30d
# Adjust for console-helper magic
9c0f30d
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
9c0f30d
mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
6c337bd
ln -s ../bin/consolehelper $RPM_BUILD_ROOT%{_bindir}/%{name}
9c0f30d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
9c0f30d
cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/%{name}
9c0f30d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps
9c0f30d
cp %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/%{name}
9c0f30d
a785d06
%find_lang %{name}
c2a4f4f
c2a4f4f
%clean
c2a4f4f
rm -rf $RPM_BUILD_ROOT
c2a4f4f
9671c3f
%pre
9671c3f
if [ "$1" -gt 1 ]; then
9671c3f
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9671c3f
    gconftool-2 --makefile-uninstall-rule \
9671c3f
      %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
9671c3f
fi
9671c3f
9671c3f
%post
9671c3f
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9671c3f
gconftool-2 --makefile-install-rule \
9671c3f
  %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
9671c3f
9671c3f
update-desktop-database %{_datadir}/applications
9671c3f
fcea5cb
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/%{name}; fi
fcea5cb
9671c3f
%postun
9671c3f
update-desktop-database %{_datadir}/applications
9671c3f
fcea5cb
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
fcea5cb
9671c3f
%preun
9671c3f
if [ "$1" -eq 0 ]; then
9671c3f
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9671c3f
    gconftool-2 --makefile-uninstall-rule \
9671c3f
      %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
9671c3f
fi
9671c3f
a785d06
%files -f %{name}.lang
c2a4f4f
%defattr(-,root,root,-)
fcea5cb
%doc README COPYING COPYING-DOCS AUTHORS ChangeLog NEWS
9671c3f
%{_sysconfdir}/gconf/schemas/%{name}.schemas
6c337bd
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
9c0f30d
%{_sysconfdir}/security/console.apps/%{name}
c2a4f4f
%{_bindir}/%{name}
9c0f30d
%{_sbindir}/%{name}
c2a4f4f
%{_libexecdir}/%{name}-launch
bc0a62a
%dir %{_libdir}/%{name}/
c2a4f4f
%{_libdir}/%{name}/*
c2a4f4f
46283c2
%{_mandir}/man1/%{name}.1*
46283c2
bc0a62a
%dir %{_datadir}/%{name}/
c2a4f4f
%{_datadir}/%{name}/*.glade
c2a4f4f
%{_datadir}/%{name}/*.py
c2a4f4f
%{_datadir}/%{name}/*.pyc
37397cd
%{_datadir}/%{name}/*.pyo
c2a4f4f
bc0a62a
%dir %{_datadir}/%{name}/pixmaps/
bc0a62a
%{_datadir}/%{name}/pixmaps/*.png
bc0a62a
%{_datadir}/%{name}/pixmaps/*.svg
bc0a62a
bc0a62a
%dir %{_datadir}/%{name}/virtManager/
c2a4f4f
%{_datadir}/%{name}/virtManager/*.py
c2a4f4f
%{_datadir}/%{name}/virtManager/*.pyc
37397cd
%{_datadir}/%{name}/virtManager/*.pyo
c2a4f4f
bc0a62a
%{_datadir}/omf/%{name}/
bc0a62a
%{_datadir}/gnome/help/%{name}/
a785d06
c2a4f4f
%{_datadir}/applications/%{name}.desktop
c2a4f4f
%{_datadir}/dbus-1/services/%{name}.service
c2a4f4f
c2a4f4f
%changelog
6c337bd
* Thu Jan 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.5.3-1.fc9
6c337bd
- Update to 0.5.3 release
6c337bd
59f7698
* Mon Oct 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.5.2-2.fc8
59f7698
- Change TLS x509 credential name to sync with libvirt
59f7698
37f16f9
* Thu Oct  4 2007 Daniel P. Berrange <berrange@redhat.com> - 0.5.2-1.fc8
37f16f9
- Update to 0.5.2 release
37f16f9
- No scrollbars for high res guest in low res host (rhbz 273181)
37f16f9
- Unable to remove network device (rhbz 242900)
37f16f9
- Fixed broken menu items (rhbz 307551)
37f16f9
- Require libvirt 0.3.3 to get CDROM change capability for Xen
37f16f9
0af7c12
* Tue Sep 25 2007 Daniel P. Berrange <berrange@redhat.com> - 0.5.1-1.fc8
0af7c12
- Updated to 0.5.1 release
0af7c12
- Open connections in background
0af7c12
- Make VNC connection retries more robust
0af7c12
- Allow changing of CDROM media on the fly
0af7c12
- Add PXE boot installation of HVM guests
0af7c12
- Allow tunnelling VNC over SSH
0af7c12
46283c2
* Wed Aug 29 2007 Daniel P. Berrange <berrange@redhat.com> - 0.5.0-1.fc8
46283c2
- Updated to 0.5.0 release
46283c2
- Support for managing remote hosts
46283c2
- Switch to use GTK-VNC for the guest console
46283c2
2dc324c
* Fri Aug 24 2007 Daniel P. Berrange <berrange@redhat.com> - 0.4.0-3.fc8
2dc324c
- Remove ExcludeArch since libvirt is now available
2dc324c
c6e0a66
* Wed May  9 2007 Daniel P. Berrange <berrange@redhat.com> - 0.4.0-2.fc7
c6e0a66
- Refresh po file translations (bz 238369)
c6e0a66
- Fixed removal of disk/network devices
c6e0a66
- Fixed toolbar menu option state
c6e0a66
- Fixed file dialogs & default widget states
c6e0a66
f3a450b
* Mon Apr 16 2007 Daniel P. Berrange <berrange@redhat.com> - 0.4.0-1.fc7
f3a450b
- Support for managing virtual networks
f3a450b
- Ability to attach guest to virtual networks
f3a450b
- Automatically set VNC keymap based on local keymap
f3a450b
- Support for disk & network device addition/removal
f3a450b
f3a450b
* Wed Mar 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.2-3.fc7
f3a450b
- Fix HVM check to allow KVM guests to be created (bz 233644)
f3a450b
- Fix default file size suggestion
f3a450b
bc0a62a
* Tue Mar 27 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.2-2.fc7
bc0a62a
- Ensure we own all directories we create (bz 233816)
bc0a62a
fcea5cb
* Tue Mar 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.2-1.fc7
fcea5cb
- Added online help to all windows
fcea5cb
- Bug fixes to virtual console popup, key grab & accelerator override
fcea5cb
4d1e41d
* Tue Mar 13 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-4.fc7
4d1e41d
- Fixed thread locking to avoid deadlocks when a11y is enabled
4d1e41d
a9292bc
* Fri Mar  2 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-3.fc7
a9292bc
- Fixed keyboard ungrab in VNC widget
a9292bc
57ad5dc
* Tue Feb 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-2.fc7
57ad5dc
- Only check for HVM on Xen hypervisor
57ad5dc
5ed465e
* Tue Feb 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-1.fc7
5ed465e
- Added support for managing QEMU domains
5ed465e
- Automatically grab mouse pointer to workaround dual-cursor crazyness
5ed465e
9179907
* Wed Jan 31 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.0-2.fc7
9179907
- Added dep on desktop-file-utils for post/postun scripts
9179907
9179907
* Mon Jan 22 2007 Daniel P. Berrange <berrange@redhat.com> - 0.3.0-1.fc7
01aa9a3
- Added support for managing inactive domains
01aa9a3
- Require virt-inst >= 0.100.0 and libvirt >= 0.1.11 for ianctive
01aa9a3
  domain management capabilities
01aa9a3
- Add progress bars during VM creation stage
01aa9a3
- Improved reliability of VNC console
01aa9a3
- Updated translations again
01aa9a3
- Added destroy option to menu bar to forceably kill a guest
01aa9a3
- Visually differentiate allocated memory, from actual used memory on host
01aa9a3
- Validate file magic when restoring a guest from a savd file
01aa9a3
- Performance work on domain listing
01aa9a3
- Allow creation of non-sparse files
01aa9a3
- Fix backspace key in serial console
01aa9a3
f39b7bd
* Tue Dec 19 2006 Daniel P. Berrange <berrange@redhat.com> - 0.2.6-3.fc7
f39b7bd
- Imported latest translations from Fedora i18n repository (bz 203783)
f39b7bd
- Use 127.0.0.1 address for connecting to VNC console instead of
f39b7bd
  localhost to avoid some issue with messed up /etc/hosts.
f39b7bd
- Add selector for sparse or non-sparse file, defaulting to non-sparse.
f39b7bd
  Add appropriate warnings and progress-bar text. (bz 218996)
f39b7bd
- Disable memory ballooning & CPU hotplug for HVM guests (bz 214432)
f39b7bd
- Updated memory-setting UI to include a hard upper limit for physical
f39b7bd
  host RAM
f39b7bd
- Added documentation on the page warning that setting virtual host RAM
f39b7bd
  too high can exhaust the memory of the machine
f39b7bd
- Handle errors when hostname resolution fails to avoid app exiting (bz 216975)
f39b7bd
f39b7bd
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.2.6-2.fc7
6c95c59
- rebuild for python 2.5
6c95c59
107ef2b
* Thu Nov  9 2006 Daniel P. Berrange <berrange@redhat.com> - 0.2.6-1.fc7
107ef2b
- Imported translations from Fedora i18n repository
107ef2b
- Make (most) scrollbar policies automatic
107ef2b
- Set busy cursor while creating new VMs
107ef2b
- Preference for controlling keygrab policy
107ef2b
- Preference for when to automatically open console (bz 211385)
107ef2b
- Re-try VNC connection attempt periodically in case VNC daemon
107ef2b
  hasn't finished starting up
107ef2b
- Added activation of URLs for about dialog (bz 210782)
107ef2b
- Improved error reporting when connecting to HV (bz 211229)
107ef2b
- Add command line args to open specific windows
107ef2b
- Don't skip para/full virt wizard step - instead gray out full
107ef2b
  virt option & tell user why
107ef2b
- Change 'physical' to 'logical' when refering to host CPUs
107ef2b
- Include hostname in titlebar
107ef2b
- Disable wizard sensitivity while creating VM
107ef2b
3e9e320
* Thu Oct 19 2006 Daniel P. Berrange <berrange@redhat.com> - 0.2.5-1.fc7
3e9e320
- Switch to use python-virtinst instead of python-xeninst due to 
3e9e320
  renaming of original package
3e9e320
- Disable keyboard accelerators when grabbing mouse to avoid things like
3e9e320
  Ctrl-W closing the local window, instead of remote window bz 210364
3e9e320
- Fix host memory reporting bz 211281
3e9e320
- Remove duplicate application menu entry bz 211230
3e9e320
- Fix duplicated mnemonics (bz 208408)
3e9e320
- Use blktap backed disks if available
3e9e320
- Use a drop down list to remember past URLs (bz 209479)
3e9e320
- Remove unused help button from preferences dialog (bz 209251)
3e9e320
- Fix exception when no VNC graphics is defined
3e9e320
- Force immediate refresh of VMs after creating a new one
3e9e320
- Improve error reporting if run on a kernel without Xen (bz 209122)
3e9e320
- More fixes to avoid stuck modifier keys on focus-out (bz 207949)
3e9e320
46a56e0
* Fri Sep 29 2006 Daniel P. Berrange <berrange@redhat.com> 0.2.3-2.fc6
46a56e0
- Fix segv in sparkline code when no data points are defined (bz  208185)
46a56e0
- Clamp CPU utilization between 0 & 100% just in case (bz 208185)
46a56e0
46a56e0
* Tue Sep 26 2006 Daniel Berrange <berrange@redhat.com> - 0.2.3-1.fc6
fa8cf8a
- Require xeninst >= 0.93.0 to fix block backed devices
fa8cf8a
- Skip para/fully-virt step when going back in wizard if not HVM host (bz 207409)
fa8cf8a
- Fix handling of modifier keys in VNC console so Alt key doesn't get stuck (bz 207949)
fa8cf8a
- Allow sticky modifier keys by pressing same key 3 times in row (enables Ctrl-Alt-F1
fa8cf8a
  by doing Ctrl Ctrl Ctrl  Alt-F1)
fa8cf8a
- Improved error handling during guest creation
fa8cf8a
- Log errors with python logging, instead of to stdout
fa8cf8a
- Remove unused buttons from main domain list window
fa8cf8a
- Switch out of full screen & release key grab when closing console
fa8cf8a
- Trim sparkline CPU history graph to 40 samples max
fa8cf8a
- Constraint VCPU adjuster to only allow upto guest's max VCPU count
fa8cf8a
- Show guest's max & current VCPU count in details page
fa8cf8a
- Fix rounding of disk sizes to avoid a 1.9 GB disk being rounded down to 1 GB
fa8cf8a
- Use raw block device path to CDROM not mount point for HVM guest (bz 206965)
fa8cf8a
- Fix visibility of file size spin box (bz 206186 part 2)
fa8cf8a
- Check for GTK failing to open X11 display (bz 205938)
fa8cf8a
46a56e0
* Fri Sep 15 2006 Daniel Berrange <berrange@redhat.com> - 0.2.2-1.fc6
38218ef
- Fix event handling in create VM wizard (bz 206660 & 206186)
38218ef
- Fix close button in about dialog (bz 205943)
38218ef
- Refresh .pot files
38218ef
- Turn on VNC scrollbars fulltime to avoid GTK window sizing issue
38218ef
  which consistently resize too small.
38218ef
46a56e0
* Mon Sep 11 2006 Daniel Berrange <berrange@redhat.com> - 0.2.1-3.fc6
9c0f30d
- Added requires on pygtk2-libglade & librsvg2 (bz 205941 & 205942)
9c0f30d
- Re-arrange to use console-helper to launch app
9c0f30d
- Added 'dist' component to release number
9c0f30d
9c0f30d
* Wed Sep  6 2006 Jeremy Katz <katzj@redhat.com> - 0.2.1-2
37397cd
- don't ghost pyo files (#205448)
37397cd
9671c3f
* Mon Sep  4 2006 Daniel Berrange <berrange@redhat.com> - 0.2.1-1
9671c3f
- Updated to 0.2.1 tar.gz
9671c3f
- Added rules to install/uninstall gconf schemas in preun,post,pre
9671c3f
  scriptlets
9671c3f
- Updated URL for source to reflect new upstream download URL
9671c3f
628e68d
* Thu Aug 24 2006 Jeremy Katz <katzj@redhat.com> - 0.2.0-3
628e68d
- BR gettext
628e68d
01b5ca9
* Thu Aug 24 2006 Jeremy Katz <katzj@redhat.com> - 0.2.0-2
01b5ca9
- only build on arches with virt
01b5ca9
a785d06
* Tue Aug 22 2006 Daniel Berrange <berrange@redhat.com> - 0.2.0-1
a785d06
- Added wizard for creating virtual machines
a785d06
- Added embedded serial console
a785d06
- Added ability to take screenshots
a785d06
c2a4f4f
* Mon Jul 24 2006 Daniel Berrange <berrange@redhat.com> - 0.1.5-2
c2a4f4f
- Prefix *.pyo files with 'ghost' macro
c2a4f4f
- Use fully qualified URL in Source  tag
c2a4f4f
c2a4f4f
* Thu Jul 20 2006 Daniel Berrange <berrange@redhat.com> - 0.1.5-1
c2a4f4f
- Update to new 0.1.5 release snapshot
c2a4f4f
c2a4f4f
* Thu Jul 20 2006 Daniel Berrange <berrange@redhat.com> - 0.1.4-1
c2a4f4f
- Update to new 0.1.4 release snapshot
c2a4f4f
c2a4f4f
* Mon Jul 17 2006 Daniel Berrange <berrange@redhat.com> - 0.1.3-1
c2a4f4f
- Fix License tag
c2a4f4f
- Updated for new release
c2a4f4f
c2a4f4f
* Wed Jun 28 2006 Daniel Berrange <berrange@redhat.com> - 0.1.2-3
c2a4f4f
- Added missing copyright headers on all .py files
c2a4f4f
c2a4f4f
* Wed Jun 28 2006 Daniel Berrange <berrange@redhat.com> - 0.1.2-2
c2a4f4f
- Added python-devel to BuildRequires
c2a4f4f
c2a4f4f
* Wed Jun 28 2006 Daniel Berrange <berrange@redhat.com> - 0.1.2-1
c2a4f4f
- Change URL to public location
c2a4f4f
c2a4f4f
* Fri Jun 16 2006 Daniel Berrange <berrange@redhat.com> - 0.1.0-1
c2a4f4f
- Added initial support for using VNC console
c2a4f4f
c2a4f4f
* Thu Apr 20 2006 Daniel Berrange <berrange@redhat.com> - 0.0.2-1
c2a4f4f
- Added DBus remote control service
c2a4f4f
c2a4f4f
* Wed Mar 29 2006 Daniel Berrange <berrange@redhat.com> - 0.0.1-1
c2a4f4f
- Initial RPM build