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