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