]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - parallels-sdk >= 7.0.22? | |
3 | # - virtuozzo storage? | |
4 | # - pldize virtlockd.init | |
5 | # - update vserver patch, if anybody needs it | |
6 | # | |
7 | # Conditional build: | |
8 | # - virtualization | |
9 | %bcond_without esx # VMware ESX support | |
10 | %bcond_without hyperv # Hyper-V support | |
11 | %bcond_without libxl # libxenlight support | |
12 | %bcond_without lxc # LXC support | |
13 | %bcond_without openvz # OpenVZ support | |
14 | %bcond_without phyp # PHYP support | |
15 | %bcond_without qemu # Qemu support | |
16 | %bcond_without uml # UML support | |
17 | %bcond_without vbox # VirtualBox support | |
18 | %bcond_without vmware # VMware Workstation/Player support | |
19 | %bcond_with vserver # Support for Linux-VServer guests | |
20 | %bcond_without xenapi # Xen API (Citrix XenServer) support | |
21 | %bcond_without xen # Xen support | |
22 | # - storage | |
23 | %bcond_without ceph # RADOS BD (Ceph) storage support | |
24 | %bcond_without glusterfs # GlusterFS storage support | |
25 | # - storage locking | |
26 | %bcond_without sanlock # sanlock storage lock manager | |
27 | # - other | |
28 | %bcond_without netcf # host interfaces support | |
29 | %bcond_without polkit # PolicyKit support | |
30 | %bcond_without systemtap # systemtap/dtrace probes | |
31 | %bcond_without wireshark # wireshark dissector module | |
32 | %bcond_without static_libs # static libraries build | |
33 | ||
34 | # qemu available only on x86 and ppc | |
35 | %ifnarch %{ix86} %{x8664} ppc | |
36 | %undefine with_qemu | |
37 | %endif | |
38 | ||
39 | # Xen is available only on x86 and ia64 | |
40 | %ifnarch %{ix86} %{x8664} ia64 | |
41 | %undefine with_xen | |
42 | %undefine with_xenapi | |
43 | %undefine with_libxl | |
44 | %endif | |
45 | ||
46 | Summary: Toolkit to interact with virtualization capabilities | |
47 | Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji | |
48 | Name: libvirt | |
49 | Version: 4.2.0 | |
50 | Release: 1 | |
51 | License: LGPL v2.1+ | |
52 | Group: Libraries | |
53 | Source0: http://libvirt.org/sources/libvirt-%{version}.tar.xz | |
54 | # Source0-md5: 7dfbaeb30fc0ee1184c27a4b6c1d7254 | |
55 | Source1: %{name}.init | |
56 | Source2: %{name}.tmpfiles | |
57 | Patch0: %{name}-sasl.patch | |
58 | Patch2: %{name}-qemu-acl.patch | |
59 | Patch3: virtlockd.init.patch | |
60 | Patch4: %{name}-udevadm-settle.patch | |
61 | Patch5: vserver.patch | |
62 | Patch6: bashisms.patch | |
63 | Patch7: %{name}-guests.init.patch | |
64 | URL: http://www.libvirt.org/ | |
65 | BuildRequires: acl-devel | |
66 | BuildRequires: attr-devel | |
67 | BuildRequires: audit-libs-devel | |
68 | BuildRequires: augeas-devel | |
69 | BuildRequires: autoconf >= 2.50 | |
70 | BuildRequires: automake | |
71 | BuildRequires: avahi-devel >= 0.6.0 | |
72 | %{?with_ceph:BuildRequires: ceph-devel} | |
73 | BuildRequires: curl-devel >= 7.18.0 | |
74 | BuildRequires: cyrus-sasl-devel | |
75 | BuildRequires: dbus-devel >= 1.0.0 | |
76 | BuildRequires: device-mapper-devel >= 1.0.0 | |
77 | BuildRequires: gawk | |
78 | BuildRequires: gcc >= 6:4.4 | |
79 | BuildRequires: gettext-tools >= 0.17 | |
80 | %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4.1} | |
81 | BuildRequires: gnutls-devel >= 2.2.0 | |
82 | BuildRequires: libapparmor-devel | |
83 | BuildRequires: libblkid-devel >= 2.17 | |
84 | BuildRequires: libcap-ng-devel >= 0.4.0 | |
85 | BuildRequires: libfuse-devel >= 2.8.6 | |
86 | BuildRequires: libgcrypt-devel | |
87 | BuildRequires: libnl-devel >= 3.2 | |
88 | BuildRequires: libpcap-devel >= 1.0.0 | |
89 | BuildRequires: libselinux-devel >= 2.5 | |
90 | BuildRequires: libssh-devel >= 0.7 | |
91 | BuildRequires: libssh2-devel >= 1.3 | |
92 | BuildRequires: libtool | |
93 | %{?with_xenapi:BuildRequires: libxenserver-devel} | |
94 | BuildRequires: libxml2-devel >= 1:2.6.0 | |
95 | BuildRequires: libxslt-devel | |
96 | BuildRequires: ncurses-devel | |
97 | %{?with_netcf:BuildRequires: netcf-devel >= 0.2.0} | |
98 | BuildRequires: numactl-devel | |
99 | %{?with_hyperv:BuildRequires: openwsman-devel >= 2.2.3} | |
100 | BuildRequires: parted-devel >= 1.8.0 | |
101 | BuildRequires: pkgconfig | |
102 | %{?with_polkit:BuildRequires: polkit} | |
103 | %{?with_polkit:BuildRequires: polkit-devel >= 0.90} | |
104 | BuildRequires: readline-devel | |
105 | BuildRequires: rpmbuild(macros) >= 1.627 | |
106 | %{?with_sanlock:BuildRequires: sanlock-devel >= 0.8} | |
107 | BuildRequires: systemd-devel | |
108 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} | |
109 | BuildRequires: udev-devel >= 1:218 | |
110 | %{?with_wireshark:BuildRequires: wireshark-devel >= 1.11.3} | |
111 | %{?with_xen:BuildRequires: xen-devel >= 4.2} | |
112 | %{?with_libxl:BuildRequires: xen-devel >= 4.4} | |
113 | # For disk driver | |
114 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0 | |
115 | BuildRequires: yajl-devel | |
116 | Requires: curl-libs >= 7.18.0 | |
117 | Requires: device-mapper >= 1.0.0 | |
118 | Requires: libcap-ng >= 0.4.0 | |
119 | Requires: libnl >= 3.2 | |
120 | Requires: libpcap >= 1.0.0 | |
121 | Requires: libselinux >= 2.5 | |
122 | Requires: libssh >= 0.7 | |
123 | Requires: libssh2 >= 1.3 | |
124 | Requires: libxml2 >= 1:2.6.0 | |
125 | %{?with_hyperv:Requires: openwsman-libs >= 2.2.3} | |
126 | Obsoletes: libvirt-daemon-esx | |
127 | Obsoletes: libvirt-daemon-hyperv | |
128 | Obsoletes: libvirt-daemon-openvz | |
129 | Obsoletes: libvirt-daemon-phyp | |
130 | Obsoletes: libvirt-daemon-vbox | |
131 | Obsoletes: libvirt-daemon-vmware | |
132 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
133 | ||
134 | %description | |
135 | Libvirt is a C toolkit to interact with the virtualization | |
136 | capabilities of recent versions of Linux. | |
137 | ||
138 | Virtualization of the Linux Operating System means the ability to run | |
139 | multiple instances of Operating Systems concurently on a single | |
140 | hardware system where the basic resources are driven by a Linux | |
141 | instance. The library aim at providing long term stable C API | |
142 | initially for the Xen paravirtualization but should be able to | |
143 | integrate other virtualization mechanisms if needed. | |
144 | ||
145 | This package contains the base libraries and configuration file. | |
146 | ||
147 | %description -l pl.UTF-8 | |
148 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji | |
149 | obecnych wersji Linuksa. | |
150 | ||
151 | Wirtualizacja w systemie operacyjnym Linux oznacza możliwość | |
152 | jednoczesnego uruchamiania wielu instancji systemu operacyjnego na | |
153 | pojedynczym systemie sprzętowym, którego podstawowe zasoby są | |
154 | zarządzane przez instancję Linuksa. Celem biblioteki jest zapewnienie | |
155 | długotrwale stabilnego API C, początkowo do parawirtualizacji Xen, ale | |
156 | dającej się zintegrować w razie potrzeby z innymi mechanizmami | |
157 | wirtualizacji. | |
158 | ||
159 | Ten pakiet zawiera podstawowe biblioteki oraz plik konfiguracyjny. | |
160 | ||
161 | %package -n bash-completion-%{name} | |
162 | Summary: bash-completion for libvirt | |
163 | Group: Applications/Shells | |
164 | Requires: bash-completion | |
165 | %if "%{_rpmversion}" >= "5" | |
166 | BuildArch: noarch | |
167 | %endif | |
168 | ||
169 | %description -n bash-completion-%{name} | |
170 | This package provides bash-completion for libvirt. | |
171 | ||
172 | %package devel | |
173 | Summary: Development files for programs using libvirt | |
174 | Summary(pl.UTF-8): Pliki programistyczne do programów wykorzystujących libvirt | |
175 | Group: Development/Libraries | |
176 | Requires: %{name} = %{version}-%{release} | |
177 | Requires: audit-libs-devel | |
178 | Requires: curl-devel >= 7.18.0 | |
179 | Requires: dbus-devel >= 1.0.0 | |
180 | Requires: device-mapper-devel >= 1.0.0 | |
181 | Requires: gnutls-devel >= 2.2.0 | |
182 | Requires: libapparmor-devel | |
183 | Requires: libcap-ng-devel >= 0.4.0 | |
184 | Requires: libgcrypt-devel | |
185 | Requires: libnl-devel >= 3.2 | |
186 | Requires: libpcap-devel >= 1.0.0 | |
187 | Requires: libselinux-devel >= 2.5 | |
188 | Requires: libxml2-devel >= 1:2.6.0 | |
189 | Requires: numactl-devel | |
190 | %{?with_hyperv:Requires: openwsman-devel >= 2.2.3} | |
191 | %{?with_xen:Requires: xen-devel >= 4.2} | |
192 | Requires: yajl-devel | |
193 | ||
194 | %description devel | |
195 | Libvirt is a C toolkit to interact with the virtualization | |
196 | capabilities of recent versions of Linux. | |
197 | ||
198 | This package contains the header files needed for developing programs | |
199 | using the libvirt library. | |
200 | ||
201 | %description devel -l pl.UTF-8 | |
202 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji | |
203 | obecnych wersji Linuksa. | |
204 | ||
205 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
206 | wykorzystujących bibliotekę libvirt. | |
207 | ||
208 | %package static | |
209 | Summary: Development static libraries for programs using libvirt | |
210 | Summary(pl.UTF-8): Statyczne biblioteki programistyczne do programów wykorzystujących libvirt | |
211 | Group: Development/Libraries | |
212 | Requires: %{name}-devel = %{version}-%{release} | |
213 | ||
214 | %description static | |
215 | Libvirt is a C toolkit to interact with the virtualization | |
216 | capabilities of recent versions of Linux. | |
217 | ||
218 | This package contains the static libraries for developing programs | |
219 | using the libvirt library. | |
220 | ||
221 | %description static -l pl.UTF-8 | |
222 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji | |
223 | obecnych wersji Linuksa. | |
224 | ||
225 | Ten pakiet zawiera biblioteki statyczne do tworzenia programów | |
226 | wykorzystujących bibliotekę libvirt. | |
227 | ||
228 | %package lock-sanlock | |
229 | Summary: Sanlock lock manager plugin for libvirt | |
230 | Summary(pl.UTF-8): Zarządca blokad sanlock dla biblioteki libvirt | |
231 | Group: Libraries | |
232 | Requires: %{name}-daemon = %{version}-%{release} | |
233 | ||
234 | %description lock-sanlock | |
235 | Sanlock lock manager plugin for libvirt. | |
236 | ||
237 | %description lock-sanlock -l pl.UTF-8 | |
238 | Zarządca blokad sanlock dla biblioteki libvirt. | |
239 | ||
240 | %package daemon | |
241 | Summary: Server side daemon and supporting files for libvirt library | |
242 | Summary(pl.UTF-8): Demon działający po stronie serwera oraz pliki wspierające dla biblioteki libvirt | |
243 | Group: Applications/System | |
244 | Requires: %{name} = %{version}-%{release} | |
245 | Requires: avahi-libs >= 0.6.0 | |
246 | Requires: iproute2 | |
247 | Requires: libblkid >= 2.17 | |
248 | %{?with_netcf:Requires: netcf >= 0.2.0} | |
249 | Requires: parted-libs >= 1.8.0 | |
250 | Requires: rc-scripts | |
251 | # Needed for probing the power management features of the host. | |
252 | Requires: pm-utils | |
253 | Requires: systemd-units >= 37-0.10 | |
254 | Requires: udev-libs >= 1:218 | |
255 | Requires: util-linux | |
256 | Requires: virtual(module-tools) | |
257 | Requires: xorg-lib-libpciaccess >= 0.10.0 | |
258 | Requires(post): systemd-units | |
259 | Requires(post,preun): /sbin/chkconfig | |
260 | Requires(postun): systemd-units | |
261 | Requires(preun): systemd-units | |
262 | Suggests: bridge-utils | |
263 | Suggests: cyrus-sasl | |
264 | Suggests: cyrus-sasl-digest-md5 | |
265 | Suggests: dmidecode | |
266 | Suggests: dnsmasq >= 2.41 | |
267 | Suggests: ebtables | |
268 | Suggests: gawk | |
269 | Suggests: glusterfs-client >= 2.0.1 | |
270 | Suggests: iptables | |
271 | Suggests: iptables | |
272 | Suggests: libcgroup | |
273 | Suggests: lvm2 | |
274 | Suggests: numad | |
275 | Suggests: open-iscsi | |
276 | Suggests: parted >= 1.8.0 | |
277 | Suggests: polkit >= 0.93 | |
278 | #Suggests: radvd | |
279 | Suggests: scrub | |
280 | #Suggests: sheepdog | |
281 | Provides: libvirt(hypervisor) | |
282 | ||
283 | %description daemon | |
284 | Server side daemon required to manage the virtualization capabilities | |
285 | of recent versions of Linux. Requires a hypervisor specific sub-RPM | |
286 | for specific drivers. | |
287 | ||
288 | %description daemon -l pl.UTF-8 | |
289 | Demon działający po stronie serwera wymagany do zarządzania funkcjami | |
290 | wirtualizacji nowych wersji Linuksa. Wymaga podpakietu specyficznego | |
291 | dla hipernadzorcy. | |
292 | ||
293 | %package daemon-storage-gluster | |
294 | Summary: Storage driver plugin for GlusterFS | |
295 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca GlusterFS | |
296 | Group: Libraries | |
297 | Requires: %{name}-daemon = %{version}-%{release} | |
298 | Requires: glusterfs-libs >= 3.4.1 | |
299 | ||
300 | %description daemon-storage-gluster | |
301 | Storage driver plugin for GlusterFS. | |
302 | ||
303 | %description daemon-storage-gluster -l pl.UTF-8 | |
304 | Wtyczka składowania danych wykorzystująca system plików GlusterFS. | |
305 | ||
306 | %package daemon-storage-rbd | |
307 | Summary: Storage driver plugin for Ceph RADOS Block Device | |
308 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS (Ceph) | |
309 | Group: Libraries | |
310 | Requires: %{name}-daemon = %{version}-%{release} | |
311 | ||
312 | %description daemon-storage-rbd | |
313 | Storage driver plugin for Ceph RADOS Block Device. | |
314 | ||
315 | %description daemon-storage-rbd -l pl.UTF-8 | |
316 | Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS | |
317 | (system plików Ceph). | |
318 | ||
319 | %package daemon-libxl | |
320 | Summary: Server side driver required to run XEN guests (xenlight) | |
321 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości XEN (xenlight) | |
322 | Group: Libraries | |
323 | Requires: %{name}-daemon = %{version}-%{release} | |
324 | Requires: /usr/sbin/qcow-create | |
325 | Requires: xen >= 4.4 | |
326 | Provides: libvirt(hypervisor) | |
327 | ||
328 | %description daemon-libxl | |
329 | Server side driver required to manage the virtualization capabilities | |
330 | of XEN via xenlight interface. | |
331 | ||
332 | %description daemon-libxl -l pl.UTF-8 | |
333 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
334 | wirtualizacji XEN poprzez interfejs xenlight. | |
335 | ||
336 | %package daemon-lxc | |
337 | Summary: Server side driver required to run LXC guests | |
338 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości LXC | |
339 | Group: Libraries | |
340 | Requires: %{name}-daemon = %{version}-%{release} | |
341 | Requires: libfuse >= 2.8.6 | |
342 | Provides: libvirt(hypervisor) | |
343 | ||
344 | %description daemon-lxc | |
345 | Server side driver required to manage the virtualization capabilities | |
346 | of LXC. | |
347 | ||
348 | %description daemon-lxc -l pl.UTF-8 | |
349 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
350 | wirtualizacji LXC. | |
351 | ||
352 | %package daemon-qemu | |
353 | Summary: Server side driver required to run QEMU guests | |
354 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości QEMU | |
355 | Group: Libraries | |
356 | Requires: %{name}-daemon = %{version}-%{release} | |
357 | Requires: /usr/bin/qemu-img | |
358 | Requires: bzip2 | |
359 | Requires: gzip | |
360 | Requires: lzop | |
361 | Requires: qemu-system-x86 | |
362 | Requires: xz | |
363 | Provides: libvirt(hypervisor) | |
364 | ||
365 | %description daemon-qemu | |
366 | Server side driver required to manage the virtualization capabilities | |
367 | of the QEMU emulators. | |
368 | ||
369 | %description daemon-qemu -l pl.UTF-8 | |
370 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
371 | wirtualizacji emulatora QEMU. | |
372 | ||
373 | %package daemon-uml | |
374 | Summary: Server side driver required to run UML guests | |
375 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości UML | |
376 | Group: Libraries | |
377 | Requires: %{name}-daemon = %{version}-%{release} | |
378 | Provides: libvirt(hypervisor) | |
379 | ||
380 | %description daemon-uml | |
381 | Server side driver required to manage the virtualization capabilities | |
382 | of UML. | |
383 | ||
384 | %description daemon-uml -l pl.UTF-8 | |
385 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
386 | wirtualizacji UML. | |
387 | ||
388 | %package daemon-xen | |
389 | Summary: Server side driver required to run XEN guests | |
390 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości XEN | |
391 | Group: Libraries | |
392 | Requires: %{name}-daemon = %{version}-%{release} | |
393 | Requires: /usr/sbin/qcow-create | |
394 | Requires: xen | |
395 | Provides: libvirt(hypervisor) | |
396 | ||
397 | %description daemon-xen | |
398 | Server side driver required to manage the virtualization capabilities | |
399 | of XEN. | |
400 | ||
401 | %description daemon-xen -l pl.UTF-8 | |
402 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
403 | wirtualizacji XEN. | |
404 | ||
405 | %package client | |
406 | Summary: Client side utilities of the libvirt library | |
407 | Summary(pl.UTF-8): Narzędzia klienckie do biblioteki libvirt | |
408 | Group: Applications/System | |
409 | Requires: %{name} = %{version}-%{release} | |
410 | Requires: gettext >= 0.18.1.1-6 | |
411 | Requires: gnutls >= 2.2.0 | |
412 | Requires: netcat-openbsd | |
413 | Requires: rc-scripts | |
414 | Requires(post): systemd-units | |
415 | Requires(post,preun): /sbin/chkconfig | |
416 | Requires(postun): systemd-units | |
417 | Requires(preun): systemd-units | |
418 | ||
419 | %description client | |
420 | Client binaries needed to access to the virtualization capabilities of | |
421 | recent versions of Linux (and other OSes). | |
422 | ||
423 | %description client -l pl.UTF-8 | |
424 | Programy klienckie potrzebne do funkcji wirtualizacji nowych wersji | |
425 | Linuksa (oraz innych systemów operacyjnych). | |
426 | ||
427 | %package utils | |
428 | Summary: Tools to interact with virtualization capabilities (metapackage) | |
429 | Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi (metapakiet) | |
430 | Group: Applications/System | |
431 | Requires: %{name}-client = %{version}-%{release} | |
432 | Requires: %{name}-daemon = %{version}-%{release} | |
433 | %{?with_libxl:Requires: %{name}-daemon-libxl = %{version}-%{release}} | |
434 | Requires: %{name}-daemon-lxc = %{version}-%{release} | |
435 | Requires: %{name}-daemon-qemu = %{version}-%{release} | |
436 | %{?with_uml:Requires: %{name}-daemon-uml = %{version}-%{release}} | |
437 | Requires: %{name}-daemon-xen = %{version}-%{release} | |
438 | ||
439 | %description utils | |
440 | Libvirt is a C toolkit to interact with the virtualization | |
441 | capabilities of recent versions of Linux. | |
442 | ||
443 | This is metapackage gathering all tools for the libvirt library. | |
444 | ||
445 | %description utils -l pl.UTF-8 | |
446 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji | |
447 | obecnych wersji Linuksa. | |
448 | ||
449 | To jest metapakiet zbierający wszystkie narzędzia przeznaczone dla | |
450 | biblioteki libvirt. | |
451 | ||
452 | %package -n systemtap-libvirt | |
453 | Summary: systemtap/dtrace probes for libvirt | |
454 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla libvirt | |
455 | Group: Development/Tools | |
456 | Requires: %{name} = %{version}-%{release} | |
457 | Requires: systemtap-client | |
458 | ||
459 | %description -n systemtap-libvirt | |
460 | systemtap/dtrace probes for libvirt. | |
461 | ||
462 | %description -n systemtap-libvirt -l pl.UTF-8 | |
463 | Sondy systemtap/dtrace dla libvirt. | |
464 | ||
465 | %package -n wireshark-libvirt | |
466 | Summary: Wireshark dissector module for libvirt packets | |
467 | Summary(pl.UTF-8): Moduł sekcji Wiresharka do pakietów libvirt | |
468 | Group: Libraries | |
469 | Requires: wireshark >= 1.11.3 | |
470 | ||
471 | %description -n wireshark-libvirt | |
472 | Wireshark dissector module for libvirt packets. | |
473 | ||
474 | %description -n wireshark-libvirt -l pl.UTF-8 | |
475 | Moduł sekcji Wiresharka do pakietów libvirt. | |
476 | ||
477 | %prep | |
478 | %setup -q | |
479 | %patch0 -p1 | |
480 | %patch2 -p1 | |
481 | %patch3 -p1 | |
482 | %patch4 -p1 | |
483 | %{?with_vserver:%patch5 -p1} | |
484 | %patch6 -p1 | |
485 | %patch7 -p1 | |
486 | ||
487 | %build | |
488 | %{__libtoolize} | |
489 | %{__aclocal} -I m4 | |
490 | %{__autoconf} | |
491 | %{__autoheader} | |
492 | %{__automake} | |
493 | ||
494 | %configure \ | |
495 | PVCREATE=/sbin/pvcreate \ | |
496 | VGCREATE=/sbin/vgcreate \ | |
497 | LVCREATE=/sbin/lvcreate \ | |
498 | PVREMOVE=/sbin/pvremove \ | |
499 | VGREMOVE=/sbin/vgremove \ | |
500 | LVREMOVE=/sbin/lvremove \ | |
501 | VGCHANGE=/sbin/vgchange \ | |
502 | LVCHANGE=/sbin/lvchange \ | |
503 | VGSCAN=/sbin/vgscan \ | |
504 | PVS=/sbin/pvs \ | |
505 | VGS=/sbin/vgs \ | |
506 | LVS=/sbin/lvs \ | |
507 | TC=/sbin/tc \ | |
508 | BRCTL=/sbin/brctl \ | |
509 | ISCSIADM=/sbin/iscsiadm \ | |
510 | SHOWMOUNT=/usr/sbin/showmount \ | |
511 | MOUNT=/bin/mount \ | |
512 | UMOUNT=/bin/umount \ | |
513 | MKFS=/sbin/mkfs \ | |
514 | SHOWMOUNT=/usr/sbin/showmount \ | |
515 | IPTABLES_PATH=/usr/sbin/iptables \ | |
516 | IP6TABLES_PATH=/usr/sbin/ip6tables \ | |
517 | EBTABLES_PATH=/usr/sbin/ebtables \ | |
518 | ISCSIADM=/sbin/iscsiadm \ | |
519 | DNSMASQ=/usr/sbin/dnsmasq \ | |
520 | RADVD=/usr/sbin/radvd \ | |
521 | UDEVADM=/sbin/udevadm \ | |
522 | MODPROBE=/sbin/modprobe \ | |
523 | SCRUB=/usr/bin/scrub \ | |
524 | OVSVSCTL=/usr/bin/ovs-vsctl \ | |
525 | NUMAD=/usr/bin/numad \ | |
526 | SHEEPDOGCLI=/usr/sbin/collie \ | |
527 | ZFS=/usr/sbin/zfs \ | |
528 | ZPOOL=/usr/sbin/zpool \ | |
529 | --disable-silent-rules \ | |
530 | %{?with_static_libs:--enable-static} \ | |
531 | --with-bash-completion \ | |
532 | --with-bash-completions-dir=/etc/bash_completion.d \ | |
533 | --with-html-dir=%{_gtkdocdir} \ | |
534 | --with-html-subdir=%{name} \ | |
535 | --with-init-script=systemd+redhat \ | |
536 | --with-packager="PLD-Linux" \ | |
537 | --with-packager-version="%{name}-%{version}-%{release}.%{_target_cpu}" \ | |
538 | --with-qemu-user=qemu \ | |
539 | --with-qemu-group=qemu \ | |
540 | --with-storage-disk \ | |
541 | --with-storage-fs \ | |
542 | --with-storage-gluster%{!?with_glusterfs:=no} \ | |
543 | --with-storage-iscsi \ | |
544 | --with-storage-lvm \ | |
545 | --with-storage-mpath \ | |
546 | --with-storage-rbd%{!?with_ceph:=no} \ | |
547 | --with-storage-scsi \ | |
548 | --with-storage-sheepdog \ | |
549 | --with-apparmor \ | |
550 | --with-audit \ | |
551 | --with-avahi \ | |
552 | %{__with_without systemtap dtrace} \ | |
553 | %{__with_without esx} \ | |
554 | --with-driver-modules \ | |
555 | --without-hal \ | |
556 | %{__with_without hyperv} \ | |
557 | --with-blkid \ | |
558 | --with-ssh2 \ | |
559 | %{__with_without libxl} \ | |
560 | %{__with_without lxc} \ | |
561 | --with-macvtap \ | |
562 | %{__with_without netcf} \ | |
563 | --with-numactl \ | |
564 | --with-numad \ | |
565 | %{__with_without openvz} \ | |
566 | %{__with_without phyp} \ | |
567 | %{__with_without polkit} \ | |
568 | %{__with_without qemu} \ | |
569 | %{__with_without sanlock} \ | |
570 | --with-sasl \ | |
571 | --with-selinux \ | |
572 | --with-udev \ | |
573 | %{__with_without uml} \ | |
574 | %{__with_without vbox vbox %{_libdir}/VirtualBox} \ | |
575 | --with-virtualport \ | |
576 | %{__with_without vmware} \ | |
577 | %{!?with_wireshark:--without-wireshark-dissector} \ | |
578 | %{__with_without xen} \ | |
579 | %{__with_without xenapi} \ | |
580 | --with-yajl \ | |
581 | --x-libraries=%{_libdir} | |
582 | ||
583 | %{__make} \ | |
584 | AWK=gawk | |
585 | ||
586 | %install | |
587 | rm -rf $RPM_BUILD_ROOT | |
588 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ | |
589 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} | |
590 | ||
591 | %{__make} install \ | |
592 | DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \ | |
593 | SYSTEMD_UNIT_DIR=%{systemdunitdir} \ | |
594 | DESTDIR=$RPM_BUILD_ROOT | |
595 | ||
596 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd | |
597 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
598 | ||
599 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
600 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la \ | |
601 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a} | |
602 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/storage-backend/*.la \ | |
603 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/storage-backend/*.a} | |
604 | ||
605 | %if %{with sanlock} | |
606 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la \ | |
607 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a} | |
608 | %endif | |
609 | %if %{with wireshark} | |
610 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.la \ | |
611 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/libvirt.a} \ | |
612 | %endif | |
613 | ||
614 | %find_lang %{name} | |
615 | ||
616 | %clean | |
617 | rm -rf $RPM_BUILD_ROOT | |
618 | ||
619 | %post -p /sbin/ldconfig | |
620 | %postun -p /sbin/ldconfig | |
621 | ||
622 | %post daemon | |
623 | /sbin/chkconfig --add libvirtd | |
624 | %service libvirtd restart | |
625 | %systemd_post libvirtd.service | |
626 | ||
627 | %preun daemon | |
628 | if [ "$1" = "0" ]; then | |
629 | %service -q libvirtd stop | |
630 | /sbin/chkconfig --del libvirtd | |
631 | fi | |
632 | %systemd_preun libvirtd.service | |
633 | ||
634 | %postun daemon | |
635 | %systemd_reload | |
636 | ||
637 | %post client | |
638 | /sbin/chkconfig --add libvirt-guests | |
639 | %service -n libvirt-guests restart | |
640 | NORESTART=1 | |
641 | %systemd_post libvirt-guests.service | |
642 | ||
643 | %preun client | |
644 | %systemd_preun libvirt-guests.service | |
645 | if [ "$1" = "0" ]; then | |
646 | %service -q libvirt-guests stop | |
647 | /sbin/chkconfig --del libvirt-guests | |
648 | fi | |
649 | ||
650 | %postun client | |
651 | %systemd_reload | |
652 | ||
653 | %files -f %{name}.lang | |
654 | %defattr(644,root,root,755) | |
655 | %doc AUTHORS ChangeLog NEWS README.md | |
656 | %dir %{_sysconfdir}/libvirt | |
657 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf | |
658 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* | |
659 | %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 | |
660 | %attr(755,root,root) %{_libdir}/libvirt-admin.so.*.*.* | |
661 | %attr(755,root,root) %ghost %{_libdir}/libvirt-admin.so.0 | |
662 | %if %{with lxc} | |
663 | %attr(755,root,root) %{_libdir}/libvirt-lxc.so.*.*.* | |
664 | %attr(755,root,root) %ghost %{_libdir}/libvirt-lxc.so.0 | |
665 | %endif | |
666 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* | |
667 | %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 | |
668 | ||
669 | # NSS modules | |
670 | %attr(755,root,root) %{_libdir}/libnss_libvirt.so.2 | |
671 | %attr(755,root,root) %{_libdir}/libnss_libvirt_guest.so.2 | |
672 | ||
673 | %dir %{_libdir}/libvirt | |
674 | %dir %{_datadir}/libvirt | |
675 | ||
676 | %files -n bash-completion-%{name} | |
677 | %defattr(644,root,root,755) | |
678 | /etc/bash_completion.d/virsh | |
679 | /etc/bash_completion.d/virt-admin | |
680 | /etc/bash_completion.d/vsh | |
681 | ||
682 | %files devel | |
683 | %defattr(644,root,root,755) | |
684 | %attr(755,root,root) %{_libdir}/libvirt.so | |
685 | %attr(755,root,root) %{_libdir}/libvirt-admin.so | |
686 | %{?with_lxc:%attr(755,root,root) %{_libdir}/libvirt-lxc.so} | |
687 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so | |
688 | %{_datadir}/%{name}/api | |
689 | %{_gtkdocdir}/%{name} | |
690 | %{_includedir}/%{name} | |
691 | %{_pkgconfigdir}/libvirt.pc | |
692 | %{_pkgconfigdir}/libvirt-admin.pc | |
693 | %{?with_lxc:%{_pkgconfigdir}/libvirt-lxc.pc} | |
694 | %{_pkgconfigdir}/libvirt-qemu.pc | |
695 | %{_mandir}/man7/virkeycode-*.7* | |
696 | %{_mandir}/man7/virkeyname-*.7* | |
697 | ||
698 | %files static | |
699 | %defattr(644,root,root,755) | |
700 | %{_libdir}/libvirt.a | |
701 | %{_libdir}/libvirt-admin.a | |
702 | %{?with_lxc:%{_libdir}/libvirt-lxc.a} | |
703 | %{_libdir}/libvirt-qemu.a | |
704 | ||
705 | %if %{with sanlock} | |
706 | %files lock-sanlock | |
707 | %defattr(644,root,root,755) | |
708 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
709 | %attr(755,root,root) %{_libexecdir}/libvirt_sanlock_helper | |
710 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so | |
711 | %{_datadir}/augeas/lenses/libvirt_sanlock.aug | |
712 | %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug | |
713 | %dir /var/lib/libvirt/sanlock | |
714 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
715 | %endif | |
716 | ||
717 | %files daemon | |
718 | %defattr(644,root,root,755) | |
719 | %doc docs/*.xml | |
720 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter | |
721 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu | |
722 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks | |
723 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart | |
724 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf | |
725 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlockd.conf | |
726 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt-admin.conf | |
727 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlogd.conf | |
728 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml | |
729 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml | |
730 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml | |
731 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf | |
732 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd | |
733 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/virtlockd | |
734 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/virtlogd | |
735 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd | |
736 | %attr(754,root,root) /etc/rc.d/init.d/virtlockd | |
737 | %attr(754,root,root) /etc/rc.d/init.d/virtlogd | |
738 | %{systemdunitdir}/libvirtd.service | |
739 | %{systemdunitdir}/virt-guest-shutdown.target | |
740 | %{systemdunitdir}/virtlockd.service | |
741 | %{systemdunitdir}/virtlockd.socket | |
742 | %{systemdunitdir}/virtlockd-admin.socket | |
743 | %{systemdunitdir}/virtlogd.service | |
744 | %{systemdunitdir}/virtlogd.socket | |
745 | %{systemdunitdir}/virtlogd-admin.socket | |
746 | %config(noreplace) %verify(not md5 mtime size) /usr/lib/sysctl.d/60-libvirtd.conf | |
747 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd | |
748 | %attr(755,root,root) %{_libexecdir}/libvirt_iohelper | |
749 | %attr(755,root,root) %{_libexecdir}/libvirt_parthelper | |
750 | %attr(755,root,root) %{_libexecdir}/virt-aa-helper | |
751 | %attr(755,root,root) %{_sbindir}/libvirtd | |
752 | %attr(755,root,root) %{_sbindir}/virtlockd | |
753 | %attr(755,root,root) %{_sbindir}/virtlogd | |
754 | %{_datadir}/augeas/lenses/libvirtd.aug | |
755 | %{_datadir}/augeas/lenses/libvirt_lockd.aug | |
756 | %{_datadir}/augeas/lenses/virtlockd.aug | |
757 | %{_datadir}/augeas/lenses/virtlogd.aug | |
758 | %{_datadir}/augeas/lenses/tests/test_libvirtd.aug | |
759 | %{?with_qemu:%{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug} | |
760 | %{_datadir}/augeas/lenses/tests/test_virtlockd.aug | |
761 | %{_datadir}/augeas/lenses/tests/test_virtlogd.aug | |
762 | %if %{with polkit} | |
763 | %{_datadir}/polkit-1/actions/org.libvirt.api.policy | |
764 | %{_datadir}/polkit-1/actions/org.libvirt.unix.policy | |
765 | %{_datadir}/polkit-1/rules.d/50-libvirt.rules | |
766 | %endif | |
767 | %{_mandir}/man8/libvirtd.8* | |
768 | %{_mandir}/man8/virtlockd.8* | |
769 | %{_mandir}/man8/virtlogd.8* | |
770 | %dir /var/lib/libvirt | |
771 | %dir /var/lib/libvirt/dnsmasq | |
772 | %attr(711,root,root) %dir /var/lib/libvirt/boot | |
773 | %attr(700,root,root) %dir /var/lib/libvirt/network | |
774 | %attr(711,root,root) %dir /var/lib/libvirt/images | |
775 | %attr(711,root,root) %dir /var/lib/libvirt/filesystems | |
776 | %attr(700,root,root) %dir /var/log/libvirt | |
777 | %attr(711,root,root) %dir /var/cache/libvirt | |
778 | %dir /var/run/libvirt | |
779 | %dir /var/run/libvirt/network | |
780 | %{systemdtmpfilesdir}/%{name}.conf | |
781 | %attr(755,root,root) %{_libexecdir}/libvirt_leaseshelper | |
782 | %dir %{_libdir}/libvirt/connection-driver | |
783 | %{_datadir}/libvirt/cpu_map.xml | |
784 | %{?with_netcf:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so} | |
785 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so | |
786 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so | |
787 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so | |
788 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so | |
789 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so | |
790 | %{?with_vbox:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so} | |
791 | %dir %{_libdir}/libvirt/lock-driver | |
792 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so | |
793 | %dir %{_libdir}/libvirt/storage-backend | |
794 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_disk.so | |
795 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_fs.so | |
796 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi.so | |
797 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_logical.so | |
798 | # mpath requires libdevmapper, but libvirt itself requires it too | |
799 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_mpath.so | |
800 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_scsi.so | |
801 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_sheepdog.so | |
802 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_zfs.so | |
803 | ||
804 | %if %{with glusterfs} | |
805 | %files daemon-storage-gluster | |
806 | %defattr(644,root,root,755) | |
807 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so | |
808 | %endif | |
809 | ||
810 | %if %{with ceph} | |
811 | %files daemon-storage-rbd | |
812 | %defattr(644,root,root,755) | |
813 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_rbd.so | |
814 | %endif | |
815 | ||
816 | %if %{with libxl} | |
817 | %files daemon-libxl | |
818 | %defattr(644,root,root,755) | |
819 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl.conf | |
820 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-lockd.conf | |
821 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-sanlock.conf} | |
822 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.libxl | |
823 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so | |
824 | %{_datadir}/augeas/lenses/libvirtd_libxl.aug | |
825 | %{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug | |
826 | %attr(700,root,root) %dir /var/lib/libvirt/libxl | |
827 | %attr(700,root,root) %dir /var/run/libvirt/libxl | |
828 | %attr(700,root,root) %dir /var/log/libvirt/libxl | |
829 | %endif | |
830 | ||
831 | %if %{with lxc} | |
832 | %files daemon-lxc | |
833 | %defattr(644,root,root,755) | |
834 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf | |
835 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc | |
836 | %attr(700,root,root) %dir /var/lib/libvirt/lxc | |
837 | %attr(700,root,root) %dir /var/run/libvirt/lxc | |
838 | %attr(700,root,root) %dir /var/log/libvirt/lxc | |
839 | %{_datadir}/augeas/lenses/libvirtd_lxc.aug | |
840 | %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug | |
841 | %attr(755,root,root) %{_libexecdir}/libvirt_lxc | |
842 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so | |
843 | %endif | |
844 | ||
845 | %if %{with qemu} | |
846 | %files daemon-qemu | |
847 | %defattr(644,root,root,755) | |
848 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf | |
849 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-lockd.conf | |
850 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf} | |
851 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu | |
852 | %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu | |
853 | %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu | |
854 | %attr(700,root,root) %dir /var/log/libvirt/qemu | |
855 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
856 | %{_datadir}/augeas/lenses/libvirtd_qemu.aug | |
857 | %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug | |
858 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so | |
859 | %endif | |
860 | ||
861 | %if %{with uml} | |
862 | %files daemon-uml | |
863 | %defattr(644,root,root,755) | |
864 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_uml.so | |
865 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.uml | |
866 | %attr(700,root,root) %dir /var/lib/libvirt/uml | |
867 | %attr(700,root,root) %dir /var/run/libvirt/uml | |
868 | %attr(700,root,root) %dir /var/log/libvirt/uml | |
869 | %endif | |
870 | ||
871 | %if %{with xen} | |
872 | %files daemon-xen | |
873 | %defattr(644,root,root,755) | |
874 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_xen.so | |
875 | %endif | |
876 | ||
877 | %files client | |
878 | %defattr(644,root,root,755) | |
879 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests | |
880 | %attr(754,root,root) /etc/rc.d/init.d/libvirt-guests | |
881 | %{systemdunitdir}/libvirt-guests.service | |
882 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virt-login-shell.conf | |
883 | %attr(755,root,root) %{_bindir}/virsh | |
884 | %attr(755,root,root) %{_bindir}/virt-admin | |
885 | %attr(755,root,root) %{_bindir}/virt-host-validate | |
886 | %attr(4755,root,root) %{_bindir}/virt-login-shell | |
887 | %attr(755,root,root) %{_bindir}/virt-xml-validate | |
888 | %attr(755,root,root) %{_bindir}/virt-pki-validate | |
889 | %attr(754,root,root) %{_libexecdir}/libvirt-guests.sh | |
890 | %{_mandir}/man1/virsh.1* | |
891 | %{_mandir}/man1/virt-admin.1* | |
892 | %{_mandir}/man1/virt-host-validate.1* | |
893 | %{_mandir}/man1/virt-login-shell.1* | |
894 | %{_mandir}/man1/virt-xml-validate.1* | |
895 | %{_mandir}/man1/virt-pki-validate.1* | |
896 | %dir %{_datadir}/libvirt/schemas | |
897 | %{_datadir}/libvirt/schemas/basictypes.rng | |
898 | %{_datadir}/libvirt/schemas/capability.rng | |
899 | %{_datadir}/libvirt/schemas/cputypes.rng | |
900 | %{_datadir}/libvirt/schemas/domain.rng | |
901 | %{_datadir}/libvirt/schemas/domaincaps.rng | |
902 | %{_datadir}/libvirt/schemas/domaincommon.rng | |
903 | %{_datadir}/libvirt/schemas/domainsnapshot.rng | |
904 | %{_datadir}/libvirt/schemas/interface.rng | |
905 | %{_datadir}/libvirt/schemas/network.rng | |
906 | %{_datadir}/libvirt/schemas/networkcommon.rng | |
907 | %{_datadir}/libvirt/schemas/nodedev.rng | |
908 | %{_datadir}/libvirt/schemas/nwfilter.rng | |
909 | %{_datadir}/libvirt/schemas/secret.rng | |
910 | %{_datadir}/libvirt/schemas/storagecommon.rng | |
911 | %{_datadir}/libvirt/schemas/storagepool.rng | |
912 | %{_datadir}/libvirt/schemas/storagevol.rng | |
913 | # for test driver (built into libvirt) | |
914 | %{_datadir}/libvirt/test-screenshot.png | |
915 | ||
916 | %files utils | |
917 | %defattr(644,root,root,755) | |
918 | ||
919 | %if %{with systemtap} | |
920 | %files -n systemtap-libvirt | |
921 | %defattr(644,root,root,755) | |
922 | %{_datadir}/systemtap/tapset/libvirt_functions.stp | |
923 | %{_datadir}/systemtap/tapset/libvirt_probes.stp | |
924 | %{?with_qemu:%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp} | |
925 | %endif | |
926 | ||
927 | %if %{with wireshark} | |
928 | %files -n wireshark-libvirt | |
929 | %defattr(644,root,root,755) | |
930 | %attr(755,root,root) %{_libdir}/wireshark/plugins/*/libvirt.so | |
931 | %endif |