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