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