]>
Commit | Line | Data |
---|---|---|
8eb0adf0 SP |
1 | |
2 | Summary: Virtual Machine Manager | |
3 | Name: virt-manager | |
a5ada689 | 4 | Version: 0.8.1 |
5 | Release: 0.1 | |
8eb0adf0 SP |
6 | License: GPL v2+ |
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 | |
a5ada689 | 10 | # Source0-md5: 6e461e91d679dc87d9fc506f34832d90 |
63920130 | 11 | Patch0: %{name}-close-nc-connection-on-EOF.patch |
8eb0adf0 SP |
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 | |
23 | ||
24 | # These two are just the oldest version tested | |
16442c1b | 25 | Requires: python-gnome-gconf >= 1.99.11-7 |
0f49eac5 | 26 | Requires: python-pygtk-gtk >= 1.99.12-6 |
8eb0adf0 | 27 | # Absolutely require this version or newer |
b225787c | 28 | Requires: python-libvirt >= 0.4.5 |
8eb0adf0 | 29 | # Definitely does not work with earlier due to python API changes |
16442c1b | 30 | Requires: python-dbus >= 0.61 |
16442c1b | 31 | Requires: python-gnome-vfs >= 2.15.4 |
8eb0adf0 SP |
32 | # Minimum we've tested with |
33 | # Required for loading the glade UI | |
34 | # Required for our graphics which are currently SVG format | |
35 | # Required to install Xen & QEMU guests | |
16442c1b SP |
36 | Requires: python-gnome-desktop-librsvg >= 2.14 |
37 | Requires: python-libxml2 >= 2.6.23 | |
38 | Requires: python-pygtk-glade >= 2.12 | |
a5ada689 | 39 | Requires: python-virtinst >= 0.500.1 |
8eb0adf0 SP |
40 | # Earlier vte had broken python binding module |
41 | Requires: vte >= 0.12.2 | |
42 | # For online help | |
43 | Requires: scrollkeeper | |
44 | # For console widget | |
16442c1b | 45 | Requires: python-gtk-vnc >= 0.3.4 |
8eb0adf0 SP |
46 | # For local authentication against PolicyKit |
47 | Requires: PolicyKit-gnome | |
48 | ||
0f49eac5 SP |
49 | Requires: python-urlgrabber |
50 | Requires: python-vte | |
234e70d3 | 51 | Suggests: gnome-keyring >= 0.4.9 |
52 | Suggests: python-gnome-desktop-keyring >= 2.15.4 | |
0f49eac5 | 53 | |
8eb0adf0 SP |
54 | ExclusiveArch: %{ix86} x86_64 ia64 |
55 | ||
56 | Requires(post): GConf2 | |
57 | Requires(pre): GConf2 | |
58 | Requires(preun): GConf2 | |
59 | ||
60 | %description | |
61 | Virtual Machine Manager provides a graphical tool for administering | |
62 | virtual machines for KVM, Xen, and QEmu. Start, stop, add or remove | |
63 | virtual devices, connect to a graphical or serial console, and see | |
64 | resource usage statistics for existing VMs on local or remote | |
65 | machines. Uses libvirt as the backend management API. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
63920130 | 69 | %patch0 |
8eb0adf0 SP |
70 | |
71 | %build | |
72 | %configure | |
73 | %{__make} | |
74 | ||
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
79 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.a | |
80 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/sparkline.la | |
81 | %find_lang %{name} | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %pre | |
87 | if [ "$1" -gt 1 ]; then | |
88 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | |
89 | gconftool-2 --makefile-uninstall-rule \ | |
90 | %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : | |
91 | fi | |
92 | ||
93 | %post | |
94 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | |
95 | gconftool-2 --makefile-install-rule \ | |
96 | %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : | |
97 | ||
98 | update-desktop-database %{_desktopdir} | |
99 | ||
100 | if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/%{name}; fi | |
101 | ||
102 | %postun | |
103 | update-desktop-database %{_desktopdir} | |
104 | ||
105 | if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi | |
106 | ||
107 | %preun | |
108 | if [ "$1" -eq 0 ]; then | |
109 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` | |
110 | gconftool-2 --makefile-uninstall-rule \ | |
111 | %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : | |
112 | fi | |
113 | ||
114 | %files -f %{name}.lang | |
115 | %defattr(644,root,root,755) | |
116 | %doc README COPYING COPYING-DOCS AUTHORS ChangeLog NEWS | |
117 | %{_sysconfdir}/gconf/schemas/%{name}.schemas | |
118 | %attr(755,root,root) %{_bindir}/%{name} | |
119 | %{_libexecdir}/%{name}-launch | |
8eb0adf0 | 120 | |
b225787c | 121 | %dir %{_datadir}/%{name} |
8eb0adf0 | 122 | %{_datadir}/%{name}/*.glade |
b225787c | 123 | %dir %{_datadir}/%{name}/pixmaps |
8eb0adf0 SP |
124 | %{_datadir}/%{name}/pixmaps/*.png |
125 | %{_datadir}/%{name}/pixmaps/*.svg | |
126 | ||
127 | %{_datadir}/%{name}/*.py | |
128 | #%{_datadir}/%{name}/*.pyc | |
129 | #%{_datadir}/%{name}/*.pyo | |
130 | ||
b225787c | 131 | %dir %{_datadir}/%{name}/virtManager |
8eb0adf0 SP |
132 | %{_datadir}/%{name}/virtManager/*.py |
133 | #%{_datadir}/%{name}/virtManager/*.pyc | |
134 | #%{_datadir}/%{name}/virtManager/*.pyo | |
135 | ||
b225787c SP |
136 | %dir %{_datadir}/omf/%{name} |
137 | %dir %{_datadir}/gnome/help | |
8eb0adf0 SP |
138 | |
139 | %{_desktopdir}/%{name}.desktop | |
140 | %{_datadir}/dbus-1/services/%{name}.service | |
141 | ||
142 | %{_mandir}/man1/%{name}.1* |