2 Summary: Virtual Machine Manager
7 Group: Applications/Emulators
8 URL: http://virt-manager.et.redhat.com/
9 Source0: http://virt-manager.et.redhat.com/download/sources/virt-manager/%{name}-%{version}.tar.gz
10 # Source0-md5: fd0acd111f180a0766b08d5f42cf5468
11 Patch0: %{name}-python.patch
12 BuildRequires: atk-devel
13 BuildRequires: cairo-devel
14 BuildRequires: gettext
15 BuildRequires: glib2-devel
16 #BuildRequires: gtk2-devel
17 BuildRequires: intltool
18 BuildRequires: pango-devel
19 BuildRequires: python-devel >= 2.14
20 BuildRequires: python-pygobject-devel >= 2.14
21 BuildRequires: python-pygtk-devel >= 2.14
22 BuildRequires: scrollkeeper
24 # These two are just the oldest version tested
25 Requires: pygtk2 >= 1.99.12-6
26 Requires: python-gnome-gconf >= 1.99.11-7
27 # Absolutely require this version or newer
28 Requires: python-libvirt >= 0.4.5
29 # Definitely does not work with earlier due to python API changes
30 Requires: python-dbus >= 0.61
31 # Might work with earlier, but this is what we've tested
32 Requires: gnome-keyring >= 0.4.9
33 # Minimum we've tested with
34 # Although if you don't have this, comment it out and the app
35 # will work just fine - keyring functionality will simply be
37 Requires: python-gnome-desktop-keyring >= 2.15.4
38 Requires: python-gnome-vfs >= 2.15.4
39 # Minimum we've tested with
40 # Required for loading the glade UI
41 # Required for our graphics which are currently SVG format
42 # Required to install Xen & QEMU guests
43 Requires: python-gnome-desktop-librsvg >= 2.14
44 Requires: python-libxml2 >= 2.6.23
45 Requires: python-pygtk-glade >= 2.12
46 Requires: python-virtinst >= 0.400.0
47 # Earlier vte had broken python binding module
48 Requires: vte >= 0.12.2
50 Requires: scrollkeeper
52 Requires: python-gtk-vnc >= 0.3.4
53 # For local authentication against PolicyKit
54 Requires: PolicyKit-gnome
56 ExclusiveArch: %{ix86} x86_64 ia64
58 Requires(post): GConf2
60 Requires(preun): GConf2
63 Virtual Machine Manager provides a graphical tool for administering
64 virtual machines for KVM, Xen, and QEmu. Start, stop, add or remove
65 virtual devices, connect to a graphical or serial console, and see
66 resource usage statistics for existing VMs on local or remote
67 machines. Uses libvirt as the backend management API.
79 rm -rf $RPM_BUILD_ROOT
80 %{__make} install DESTDIR=$RPM_BUILD_ROOT
81 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.a
82 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.la
86 rm -rf $RPM_BUILD_ROOT
89 if [ "$1" -gt 1 ]; then
90 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
91 gconftool-2 --makefile-uninstall-rule \
92 %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
96 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
97 gconftool-2 --makefile-install-rule \
98 %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
100 update-desktop-database %{_desktopdir}
102 if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/%{name}; fi
105 update-desktop-database %{_desktopdir}
107 if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
110 if [ "$1" -eq 0 ]; then
111 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
112 gconftool-2 --makefile-uninstall-rule \
113 %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
116 %files -f %{name}.lang
117 %defattr(644,root,root,755)
118 %doc README COPYING COPYING-DOCS AUTHORS ChangeLog NEWS
119 %{_sysconfdir}/gconf/schemas/%{name}.schemas
120 %attr(755,root,root) %{_bindir}/%{name}
121 %{_libexecdir}/%{name}-launch
122 %dir %{_libdir}/%{name}
125 %dir %{_datadir}/%{name}
126 %{_datadir}/%{name}/*.glade
127 %dir %{_datadir}/%{name}/pixmaps
128 %{_datadir}/%{name}/pixmaps/*.png
129 %{_datadir}/%{name}/pixmaps/*.svg
131 %{_datadir}/%{name}/*.py
132 #%{_datadir}/%{name}/*.pyc
133 #%{_datadir}/%{name}/*.pyo
135 %dir %{_datadir}/%{name}/virtManager
136 %{_datadir}/%{name}/virtManager/*.py
137 #%{_datadir}/%{name}/virtManager/*.pyc
138 #%{_datadir}/%{name}/virtManager/*.pyo
140 %dir %{_datadir}/omf/%{name}
141 %dir %{_datadir}/gnome/help
143 %{_desktopdir}/%{name}.desktop
144 %{_datadir}/dbus-1/services/%{name}.service
146 %{_mandir}/man1/%{name}.1*