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