]>
Commit | Line | Data |
---|---|---|
7e06c032 | 1 | # TODO |
7e06c032 | 2 | # - fix BR python 2.14 |
8eb0adf0 SP |
3 | Summary: Virtual Machine Manager |
4 | Name: virt-manager | |
ce034339 | 5 | Version: 0.9.1 |
eec83d64 | 6 | Release: 4 |
8eb0adf0 SP |
7 | License: GPL v2+ |
8 | Group: Applications/Emulators | |
45fc912e | 9 | Source0: http://virt-manager.org/download/sources/virt-manager/%{name}-%{version}.tar.gz |
ce034339 | 10 | # Source0-md5: cfee07b277e315b16d5180cfab5f8307 |
83302a11 | 11 | Patch0: %{name}-dead-code.patch |
45fc912e | 12 | URL: http://virt-manager.org/ |
ce034339 JR |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
45fc912e | 15 | BuildRequires: gettext-devel >= 0.14.1 |
8eb0adf0 | 16 | BuildRequires: glib2-devel |
45fc912e | 17 | BuildRequires: intltool >= 0.35.0 |
ce034339 | 18 | BuildRequires: libtool |
98deb886 | 19 | BuildRequires: perl-tools-pod |
5bd4e967 | 20 | BuildRequires: python-devel >= 1:2.6 |
45fc912e AF |
21 | BuildRequires: python-pygobject-devel >= 2.28.6 |
22 | BuildRequires: python-pygtk-devel >= 2.24.0 | |
ce034339 | 23 | BuildRequires: sed >= 4.0 |
45fc912e AF |
24 | Requires(pre,preun,post): GConf2 |
25 | Requires(post,postun): gtk-update-icon-cache | |
26 | Requires: python-gnome-gconf >= 2.28.1 | |
27 | Requires: python-pygobject >= 2.28.6 | |
28 | Requires: python-pygtk-gtk >= 2.24.0 | |
29 | Requires: python-libvirt >= 0.9.6 | |
30 | Requires: python-dbus >= 0.84.0 | |
45fc912e AF |
31 | Requires: python-gnome-desktop-librsvg >= 2.32.0 |
32 | Requires: python-libxml2 >= 2.7.8 | |
33 | Requires: python-pygtk-glade >= 2.24.0 | |
93e0d59c | 34 | Requires: python-virtinst >= 0.600.1 |
45fc912e AF |
35 | Requires: hicolor-icon-theme |
36 | Requires: python-gtk-vnc >= 0.4.3 | |
0f49eac5 | 37 | Requires: python-urlgrabber |
59e5ea67 | 38 | Requires: python-pycairo |
45fc912e AF |
39 | Requires: python-vte0 >= 0.28.2 |
40 | Suggests: python-libguestfs >= 1.12.0 | |
234e70d3 | 41 | Suggests: gnome-keyring >= 0.4.9 |
42 | Suggests: python-gnome-desktop-keyring >= 2.15.4 | |
45fc912e | 43 | Suggests: python-spice-gtk |
8eb0adf0 | 44 | ExclusiveArch: %{ix86} x86_64 ia64 |
a04e8cd8 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8eb0adf0 | 46 | |
8eb0adf0 SP |
47 | %description |
48 | Virtual Machine Manager provides a graphical tool for administering | |
49 | virtual machines for KVM, Xen, and QEmu. Start, stop, add or remove | |
50 | virtual devices, connect to a graphical or serial console, and see | |
51 | resource usage statistics for existing VMs on local or remote | |
52 | machines. Uses libvirt as the backend management API. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
83302a11 | 56 | %patch0 -p1 |
8eb0adf0 | 57 | |
ce034339 JR |
58 | %{__sed} -i -e 's|PWD|shell pwd|g' icons/hicolor/*/Makefile.am |
59 | ||
8eb0adf0 | 60 | %build |
ce034339 JR |
61 | %{__libtoolize} |
62 | %{__aclocal} | |
63 | %{__autoconf} | |
64 | %{__automake} | |
45fc912e AF |
65 | %configure \ |
66 | --with-libvirt-package-names=libvirt \ | |
67 | --with-kvm-packages=qemu-kvm | |
8eb0adf0 SP |
68 | %{__make} |
69 | ||
8eb0adf0 SP |
70 | %install |
71 | rm -rf $RPM_BUILD_ROOT | |
45fc912e | 72 | |
7e06c032 ER |
73 | %{__make} install \ |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
45fc912e AF |
76 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
77 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
78 | # requires patching | |
79 | #%%py_postclean %{_datadir}/%{name} | |
80 | ||
5bd4e967 | 81 | %find_lang %{name} |
3a7f7a6f | 82 | |
8eb0adf0 SP |
83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
8eb0adf0 | 86 | %post |
45fc912e AF |
87 | %gconf_schema_install %{name}.schemas |
88 | %update_icon_cache hicolor | |
8eb0adf0 | 89 | |
45fc912e AF |
90 | %preun |
91 | %gconf_schema_uninstall %{name}.schemas | |
8eb0adf0 SP |
92 | |
93 | %postun | |
45fc912e | 94 | %update_icon_cache hicolor |
8eb0adf0 | 95 | |
8eb0adf0 SP |
96 | |
97 | %files -f %{name}.lang | |
98 | %defattr(644,root,root,755) | |
99 | %doc README COPYING COPYING-DOCS AUTHORS ChangeLog NEWS | |
100 | %{_sysconfdir}/gconf/schemas/%{name}.schemas | |
101 | %attr(755,root,root) %{_bindir}/%{name} | |
5bd4e967 | 102 | %attr(755,root,root) %{_bindir}/%{name}-tui |
8eb0adf0 | 103 | %{_libexecdir}/%{name}-launch |
8eb0adf0 | 104 | |
b225787c | 105 | %dir %{_datadir}/%{name} |
8eb0adf0 | 106 | %{_datadir}/%{name}/*.glade |
45fc912e AF |
107 | %{_datadir}/%{name}/icons |
108 | %{_iconsdir}/hicolor/*/apps/virt-manager.png | |
99a357fc | 109 | |
8eb0adf0 | 110 | %{_datadir}/%{name}/*.py |
45fc912e | 111 | %{_datadir}/%{name}/*.py[co] |
b225787c | 112 | %dir %{_datadir}/%{name}/virtManager |
8eb0adf0 | 113 | %{_datadir}/%{name}/virtManager/*.py |
45fc912e | 114 | %{_datadir}/%{name}/virtManager/*.py[co] |
5bd4e967 AF |
115 | %dir %{_datadir}/%{name}/virtManagerTui |
116 | %{_datadir}/%{name}/virtManagerTui/*.py | |
45fc912e AF |
117 | %{_datadir}/%{name}/virtManagerTui/*.py[co] |
118 | %dir %{_datadir}/%{name}/virtManagerTui/importblacklist | |
119 | %{_datadir}/%{name}/virtManagerTui/importblacklist/*.py | |
120 | %{_datadir}/%{name}/virtManagerTui/importblacklist/*.py[co] | |
8eb0adf0 | 121 | |
8eb0adf0 SP |
122 | %{_desktopdir}/%{name}.desktop |
123 | %{_datadir}/dbus-1/services/%{name}.service | |
8eb0adf0 | 124 | %{_mandir}/man1/%{name}.1* |