]>
Commit | Line | Data |
---|---|---|
8eb0adf0 | 1 | Summary: Virtual Machine Manager |
14f30eaf | 2 | Summary(pl.UTF-8): Zarządca maszyn wirtualnych |
8eb0adf0 | 3 | Name: virt-manager |
aca426b6 JB |
4 | Version: 1.1.0 |
5 | Release: 1 | |
5a212f16 | 6 | Epoch: 1 |
8eb0adf0 SP |
7 | License: GPL v2+ |
8 | Group: Applications/Emulators | |
1689857a | 9 | Source0: https://fedorahosted.org/released/virt-manager/%{name}-%{version}.tar.gz |
aca426b6 | 10 | # Source0-md5: baf6eaa88b02bdd7a3c2fdd293eeb6ac |
45fc912e | 11 | URL: http://virt-manager.org/ |
53514820 | 12 | BuildRequires: gettext-tools >= 0.14.1 |
8eb0adf0 | 13 | BuildRequires: glib2-devel |
45fc912e | 14 | BuildRequires: intltool >= 0.35.0 |
98deb886 | 15 | BuildRequires: perl-tools-pod |
5bd4e967 | 16 | BuildRequires: python-devel >= 1:2.6 |
f9810d86 JB |
17 | BuildRequires: rpmbuild(macros) >= 1.592 |
18 | Requires(post,postun): glib2 | |
45fc912e | 19 | Requires(post,postun): gtk-update-icon-cache |
f9810d86 | 20 | Requires: gtk+3 >= 3.0 |
04de2c2a | 21 | Requires: gtk3-vnc >= 0.4.3 |
62263673 | 22 | Requires: hicolor-icon-theme |
aca426b6 JB |
23 | Requires: libosinfo >= 0.2.10 |
24 | Requires: libvirt-glib >= 0.0.9 | |
45fc912e | 25 | Requires: python-dbus >= 0.84.0 |
45fc912e | 26 | Requires: python-gnome-desktop-librsvg >= 2.32.0 |
62263673 | 27 | Requires: python-gnome-gconf >= 2.28.1 |
e0a77bc7 | 28 | Requires: python-ipaddr |
3562ad6c ER |
29 | Requires: python-libvirt >= 0.9.6 |
30 | Requires: python-libvirt-glib | |
f9810d86 | 31 | Requires: python-pygobject3 |
04de2c2a | 32 | Requires: python-virtinst = %{epoch}:%{version}-%{release} |
e0a77bc7 | 33 | Requires: spice-gtk |
f9810d86 | 34 | Requires: vte >= 0.34 |
234e70d3 | 35 | Suggests: gnome-keyring >= 0.4.9 |
36 | Suggests: python-gnome-desktop-keyring >= 2.15.4 | |
c6a409cf | 37 | Suggests: python-libguestfs >= 1.12.0 |
14f30eaf | 38 | ExclusiveArch: %{ix86} %{x8664} ia64 |
a04e8cd8 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8eb0adf0 | 40 | |
8eb0adf0 SP |
41 | %description |
42 | Virtual Machine Manager provides a graphical tool for administering | |
43 | virtual machines for KVM, Xen, and QEmu. Start, stop, add or remove | |
44 | virtual devices, connect to a graphical or serial console, and see | |
45 | resource usage statistics for existing VMs on local or remote | |
46 | machines. Uses libvirt as the backend management API. | |
47 | ||
14f30eaf JB |
48 | %description -l pl.UTF-8 |
49 | Virtual Machine Manager udostępnia graficzne narzędzie do | |
50 | administrowania maszynami wirtualnymi dla środowisk KVM, Xen i QEmu. | |
51 | Pozwala uruchamiać, zatrzymywać, dodawać i usuwać urządzenia | |
52 | wirtualne, łączyć się z konsolą graficzną lub szeregową oraz oglądać | |
53 | statystyki wykorzystania zasobów istniejących maszyn wirtualnych na | |
54 | maszynach lokalnych i zdalnych. Wykorzystuje libvirt jako API do | |
55 | zarządzania. | |
56 | ||
f9810d86 JB |
57 | %package -n python-virtinst |
58 | Summary: Python modules and utilities for installing virtual machines | |
59 | Summary(pl.UTF-8): Moduły Pythona i narzędzia do instalowania maszyn wirtualnych | |
60 | Group: Libraries/Python | |
61 | Requires: python-libvirt >= 0.9.6 | |
62 | Requires: python-libxml2 >= 1:2.7.8 | |
63 | Requires: python-modules | |
64 | Requires: python-urlgrabber | |
65 | Suggests: python-selinux | |
66 | Suggests: virt-viewer >= 0.0.1 | |
67 | ||
68 | %description -n python-virtinst | |
69 | virtinst is a module that helps build and install libvirt based | |
70 | virtual machines. Currently supports KVM, QEmu and Xen virtual | |
71 | machines. Package includes several command line utilities, including | |
72 | virt-install (build and install new VMs) and virt-clone (clone an | |
73 | existing virtual machine). | |
74 | ||
75 | %description -n python-virtinst -l pl.UTF-8 | |
76 | virtinst to moduł pomagający przy tworzeniu i instalowaniu maszyn | |
77 | wirtualnych opartych na libvirt. Obecnie obsługiwane są maszyny KVM, | |
78 | QEmu i Xen. Pakiet zawiera kilka działających z linii poleceń | |
79 | skryptów, w tym virt-install (tworzący i instalujący nowe VM-y) oraz | |
80 | virt-clone (klonujący istniejącą maszynę wirtualną). | |
81 | ||
8eb0adf0 SP |
82 | %prep |
83 | %setup -q | |
8eb0adf0 SP |
84 | |
85 | %build | |
f9810d86 JB |
86 | %{__python} setup.py configure \ |
87 | --libvirt-package-names=libvirt \ | |
88 | --kvm-package-names=qemu-lvm | |
89 | ||
90 | %{__python} setup.py build | |
8eb0adf0 | 91 | |
8eb0adf0 SP |
92 | %install |
93 | rm -rf $RPM_BUILD_ROOT | |
45fc912e | 94 | |
f9810d86 JB |
95 | %{__python} setup.py install \ |
96 | --optimize=2 \ | |
97 | --root=$RPM_BUILD_ROOT | |
7e06c032 | 98 | |
45fc912e AF |
99 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
100 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
f9810d86 | 101 | # requires patching(?) |
45fc912e AF |
102 | #%%py_postclean %{_datadir}/%{name} |
103 | ||
5bd4e967 | 104 | %find_lang %{name} |
3a7f7a6f | 105 | |
8eb0adf0 SP |
106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
8eb0adf0 | 109 | %post |
f9810d86 | 110 | %glib_compile_schemas |
45fc912e | 111 | %update_icon_cache hicolor |
8eb0adf0 | 112 | |
8eb0adf0 | 113 | %postun |
f9810d86 JB |
114 | if [ "$1" = "0" ]; then |
115 | %glib_compile_schemas | |
116 | fi | |
45fc912e | 117 | %update_icon_cache hicolor |
8eb0adf0 | 118 | |
f9810d86 | 119 | %files |
8eb0adf0 | 120 | %defattr(644,root,root,755) |
f9810d86 JB |
121 | %doc NEWS README |
122 | %attr(755,root,root) %{_bindir}/virt-manager | |
45fc912e | 123 | %{_datadir}/%{name}/icons |
f9810d86 | 124 | %{_datadir}/%{name}/ui |
b225787c | 125 | %dir %{_datadir}/%{name}/virtManager |
f9810d86 JB |
126 | %{_datadir}/%{name}/virtManager/*.py* |
127 | %attr(755,root,root) %{_datadir}/%{name}/virt-manager | |
1689857a | 128 | %{_datadir}/appdata/virt-manager.appdata.xml |
f9810d86 | 129 | %{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml |
8eb0adf0 | 130 | %{_desktopdir}/%{name}.desktop |
f9810d86 JB |
131 | %{_iconsdir}/hicolor/*/apps/virt-manager.png |
132 | %{_mandir}/man1/virt-manager.1* | |
133 | ||
134 | %files -n python-virtinst -f %{name}.lang | |
135 | %defattr(644,root,root,755) | |
136 | %attr(755,root,root) %{_bindir}/virt-clone | |
137 | %attr(755,root,root) %{_bindir}/virt-convert | |
f9810d86 | 138 | %attr(755,root,root) %{_bindir}/virt-install |
1689857a | 139 | %attr(755,root,root) %{_bindir}/virt-xml |
f9810d86 JB |
140 | %dir %{_datadir}/%{name} |
141 | %dir %{_datadir}/%{name}/virtcli | |
142 | %{_datadir}/%{name}/virtcli/*.py* | |
143 | %{_datadir}/%{name}/virtcli/cli.cfg | |
144 | %dir %{_datadir}/%{name}/virtconv | |
145 | %{_datadir}/%{name}/virtconv/*.py* | |
f9810d86 JB |
146 | %dir %{_datadir}/%{name}/virtinst |
147 | %{_datadir}/%{name}/virtinst/*.py* | |
148 | %attr(755,root,root) %{_datadir}/%{name}/virt-clone | |
149 | %attr(755,root,root) %{_datadir}/%{name}/virt-convert | |
f9810d86 | 150 | %attr(755,root,root) %{_datadir}/%{name}/virt-install |
1689857a | 151 | %attr(755,root,root) %{_datadir}/%{name}/virt-xml |
f9810d86 JB |
152 | %{_mandir}/man1/virt-clone.1* |
153 | %{_mandir}/man1/virt-convert.1* | |
f9810d86 | 154 | %{_mandir}/man1/virt-install.1* |
1689857a | 155 | %{_mandir}/man1/virt-xml.1* |