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
01aa9a3
Version: 0.3.0
9179907
Release: 2%{_extra_release}
c2a4f4f
Summary: Virtual Machine Manager
c2a4f4f
c2a4f4f
Group: Applications/Emulators
c2a4f4f
License: GPL
c2a4f4f
URL: http://virt-manager.et.redhat.com/
9671c3f
Source0: http://virt-manager.et.redhat.com/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
01aa9a3
Requires: libvirt-python >= 0.1.11-1
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
01aa9a3
Requires: python-virtinst >= 0.100.0
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
c2a4f4f
01b5ca9
ExclusiveArch: %{ix86} x86_64 ia64
01b5ca9
c2a4f4f
BuildRequires: pygtk2-devel
c2a4f4f
BuildRequires: gtk2-devel
c2a4f4f
BuildRequires: python-devel
628e68d
BuildRequires: gettext
c2a4f4f
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
01aa9a3
%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}
9c0f30d
ln -s %{_bindir}/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
9671c3f
%postun
9671c3f
update-desktop-database %{_datadir}/applications
9671c3f
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,-)
c2a4f4f
%doc README COPYING AUTHORS ChangeLog NEWS
9671c3f
%{_sysconfdir}/gconf/schemas/%{name}.schemas
9c0f30d
%{_sysconfdir}/pam.d/%{name}
9c0f30d
%{_sysconfdir}/security/console.apps/%{name}
c2a4f4f
%{_bindir}/%{name}
9c0f30d
%{_sbindir}/%{name}
c2a4f4f
%{_libexecdir}/%{name}-launch
c2a4f4f
%{_libdir}/%{name}/*
c2a4f4f
c2a4f4f
%{_datadir}/%{name}/*.glade
c2a4f4f
%{_datadir}/%{name}/pixmaps/*.png
c2a4f4f
%{_datadir}/%{name}/pixmaps/*.svg
c2a4f4f
c2a4f4f
%{_datadir}/%{name}/*.py
c2a4f4f
%{_datadir}/%{name}/*.pyc
37397cd
%{_datadir}/%{name}/*.pyo
c2a4f4f
c2a4f4f
%{_datadir}/%{name}/virtManager/*.py
c2a4f4f
%{_datadir}/%{name}/virtManager/*.pyc
37397cd
%{_datadir}/%{name}/virtManager/*.pyo
c2a4f4f
c2a4f4f
%{_datadir}/%{name}/vncViewer/*.py
c2a4f4f
%{_datadir}/%{name}/vncViewer/*.pyc
37397cd
%{_datadir}/%{name}/vncViewer/*.pyo
c2a4f4f
a785d06
c2a4f4f
%{_datadir}/applications/%{name}.desktop
c2a4f4f
%{_datadir}/dbus-1/services/%{name}.service
c2a4f4f
c2a4f4f
%changelog
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