]>
Commit | Line | Data |
---|---|---|
b52de85c | 1 | # TODO: |
fb415d8b JB |
2 | # - parallels-sdk >= 7.0.22? |
3 | # - virtuozzo storage? | |
40a24f8b | 4 | # - mdevctl |
1c850183 JB |
5 | # - mm-ctl (https://github.com/tfukushima/mm-ctl ?) |
6 | # - numad (https://pagure.io/numad/ or https://github.com/yhaenggi/numad/releases ?) | |
7 | # - vstorage, vstorage-mount | |
8357fab1 | 8 | # - pldize virtlockd.init |
af7f943c | 9 | # - update vserver patch, if anybody needs it |
1c850183 | 10 | # - package firewalld zone definition (see files) |
e7875b0f | 11 | # |
94462445 | 12 | # Conditional build: |
af7f943c | 13 | # - virtualization |
423a0b96 JR |
14 | %bcond_without esx # VMware ESX support |
15 | %bcond_without hyperv # Hyper-V support | |
ea8a16b2 | 16 | %bcond_without libxl # libxenlight support |
423a0b96 | 17 | %bcond_without lxc # LXC support |
bf949ec1 | 18 | %bcond_without openvz # OpenVZ support |
f2c82f45 | 19 | %bcond_without qemu # Qemu support |
423a0b96 JR |
20 | %bcond_without vbox # VirtualBox support |
21 | %bcond_without vmware # VMware Workstation/Player support | |
eb319e62 | 22 | %bcond_with vserver # Support for Linux-VServer guests |
af7f943c JB |
23 | # - storage |
24 | %bcond_without ceph # RADOS BD (Ceph) storage support | |
25 | %bcond_without glusterfs # GlusterFS storage support | |
26 | # - storage locking | |
27 | %bcond_without sanlock # sanlock storage lock manager | |
28 | # - other | |
29 | %bcond_without netcf # host interfaces support | |
30 | %bcond_without polkit # PolicyKit support | |
31 | %bcond_without systemtap # systemtap/dtrace probes | |
32 | %bcond_without wireshark # wireshark dissector module | |
04ecdedc | 33 | %bcond_without static_libs # static libraries build |
94462445 | 34 | |
148a9af3 JB |
35 | # qemu available only on x86 and ppc |
36 | %ifnarch %{ix86} %{x8664} ppc | |
37 | %undefine with_qemu | |
38 | %endif | |
96de3a81 | 39 | |
1c850183 JB |
40 | # Xen supported architectures |
41 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 | |
5c892098 | 42 | %undefine with_libxl |
94462445 | 43 | %endif |
6d974b69 | 44 | |
94462445 | 45 | Summary: Toolkit to interact with virtualization capabilities |
148a9af3 | 46 | Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji |
94462445 | 47 | Name: libvirt |
927caa3c JR |
48 | Version: 8.4.0 |
49 | Release: 0.1 | |
148a9af3 | 50 | License: LGPL v2.1+ |
423a0b96 | 51 | Group: Libraries |
04ecdedc | 52 | Source0: https://libvirt.org/sources/%{name}-%{version}.tar.xz |
927caa3c | 53 | # Source0-md5: d9ffa11bc1dcbf5aca13271f3248d3f7 |
e285e5e5 | 54 | Source1: %{name}.init |
ed4dd5b7 | 55 | Source2: %{name}.tmpfiles |
5296d739 | 56 | Patch0: %{name}-sasl.patch |
40a24f8b | 57 | Patch1: %{name}-paths.patch |
423a0b96 | 58 | Patch2: %{name}-qemu-acl.patch |
40a24f8b | 59 | Patch3: %{name}-path-options.patch |
be8dc440 JK |
60 | Patch4: %{name}-udevadm-settle.patch |
61 | Patch5: vserver.patch | |
62 | Patch6: bashisms.patch | |
1c850183 | 63 | URL: https://www.libvirt.org/ |
fb415d8b JB |
64 | BuildRequires: acl-devel |
65 | BuildRequires: attr-devel | |
7ce5923d | 66 | BuildRequires: audit-libs-devel |
fa080175 | 67 | BuildRequires: augeas-devel |
83426b5b | 68 | %{?with_ceph:BuildRequires: ceph-devel} |
4e034fd2 | 69 | BuildRequires: curl-devel >= 7.18.0 |
1c850183 | 70 | BuildRequires: cyrus-sasl-devel >= 2.1.26 |
54247c34 | 71 | BuildRequires: dbus-devel >= 1.0.0 |
4e034fd2 | 72 | BuildRequires: device-mapper-devel >= 1.0.0 |
1c850183 JB |
73 | # rst2html5 rst2man |
74 | BuildRequires: docutils | |
5cbe4501 | 75 | BuildRequires: gawk |
0513cc2a | 76 | BuildRequires: gcc >= 6:4.4 |
e9f5f452 | 77 | BuildRequires: gettext-tools >= 0.17 |
1c850183 | 78 | BuildRequires: glib2-devel >= 1:2.48.0 |
6dcba5af | 79 | %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4.1} |
1c850183 | 80 | BuildRequires: gnutls-devel >= 3.2.0 |
69187f5d | 81 | BuildRequires: libapparmor-devel |
7ce5923d JB |
82 | BuildRequires: libblkid-devel >= 2.17 |
83 | BuildRequires: libcap-ng-devel >= 0.4.0 | |
4ef34a20 | 84 | BuildRequires: libfuse-devel >= 2.8.6 |
7ce5923d | 85 | BuildRequires: libgcrypt-devel |
1c850183 | 86 | BuildRequires: libiscsi-devel >= 1.18.0 |
54247c34 | 87 | BuildRequires: libnl-devel >= 3.2 |
1c850183 | 88 | BuildRequires: libpcap-devel >= 1.5.0 |
fb415d8b JB |
89 | BuildRequires: libselinux-devel >= 2.5 |
90 | BuildRequires: libssh-devel >= 0.7 | |
e9ea35db | 91 | BuildRequires: libssh2-devel >= 1.3 |
40a24f8b | 92 | BuildRequires: libtirpc-devel |
1c850183 JB |
93 | BuildRequires: libxml2-devel >= 1:2.9.1 |
94 | BuildRequires: libxml2-progs >= 1:2.9.1 | |
fa080175 | 95 | BuildRequires: libxslt-devel |
1c850183 | 96 | BuildRequires: libxslt-progs |
6c7c6ceb | 97 | BuildRequires: meson >= 0.54.0 |
94462445 | 98 | BuildRequires: ncurses-devel |
0c4e060a | 99 | %{?with_netcf:BuildRequires: netcf-devel >= 0.2.0} |
04ecdedc | 100 | BuildRequires: ninja >= 1.5 |
40a24f8b JB |
101 | BuildRequires: nss-devel >= 3 |
102 | BuildRequires: numactl-devel >= 2.0.6 | |
103 | %{?with_hyperv:BuildRequires: openwsman-devel >= 2.6.3} | |
36a3330a | 104 | BuildRequires: parted-devel >= 1.8.0 |
69187f5d | 105 | BuildRequires: pkgconfig |
8b51fd22 | 106 | %{?with_polkit:BuildRequires: polkit-devel >= 0.90} |
04ecdedc | 107 | %{?with_polkit:BuildRequires: polkit} |
1c850183 | 108 | BuildRequires: python3 >= 1:3.0 |
40a24f8b | 109 | BuildRequires: readline-devel >= 7.0 |
0cbba7f6 | 110 | BuildRequires: rpmbuild(macros) >= 1.752 |
40a24f8b JB |
111 | %{?with_sanlock:BuildRequires: sanlock-devel >= 3.5.0} |
112 | BuildRequires: sed >= 4.0 | |
5bb742b4 | 113 | BuildRequires: systemd-devel |
3e5ed185 | 114 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} |
1c850183 | 115 | BuildRequires: udev-devel >= 1:219 |
40a24f8b | 116 | %{?with_wireshark:BuildRequires: wireshark-devel >= 2.6.0} |
1c850183 | 117 | %{?with_libxl:BuildRequires: xen-devel >= 4.6} |
94462445 | 118 | # For disk driver |
7ce5923d | 119 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0 |
1c850183 | 120 | BuildRequires: yajl-devel >= 2.0.3 |
7ce5923d | 121 | Requires: curl-libs >= 7.18.0 |
1c850183 JB |
122 | Requires: cyrus-sasl-libs >= 2.1.26 |
123 | Requires: device-mapper-libs >= 1.0.0 | |
124 | Requires: glib2 >= 1:2.48.0 | |
be03a776 | 125 | Requires: gnutls-libs >= 3.2.0 |
7ce5923d | 126 | Requires: libcap-ng >= 0.4.0 |
54247c34 | 127 | Requires: libnl >= 3.2 |
1c850183 | 128 | Requires: libpcap >= 1.5.0 |
fb415d8b JB |
129 | Requires: libselinux >= 2.5 |
130 | Requires: libssh >= 0.7 | |
e9ea35db | 131 | Requires: libssh2 >= 1.3 |
1c850183 | 132 | Requires: libxml2 >= 1:2.9.1 |
40a24f8b | 133 | %{?with_hyperv:Requires: openwsman-libs >= 2.6.3} |
1c850183 | 134 | Requires: yajl >= 2.0.3 |
40a24f8b JB |
135 | Obsoletes: libvirt-daemon-esx < 0.9.13 |
136 | Obsoletes: libvirt-daemon-hyperv < 0.9.13 | |
137 | Obsoletes: libvirt-daemon-openvz < 0.9.13 | |
be03a776 JB |
138 | Obsoletes: libvirt-daemon-phyp < 6.0.0 |
139 | Obsoletes: libvirt-daemon-uml < 5.0.0 | |
40a24f8b | 140 | Obsoletes: libvirt-daemon-vmware < 0.9.13 |
94462445 ER |
141 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
142 | ||
94462445 ER |
143 | %description |
144 | Libvirt is a C toolkit to interact with the virtualization | |
145 | capabilities of recent versions of Linux. | |
146 | ||
147 | Virtualization of the Linux Operating System means the ability to run | |
148 | multiple instances of Operating Systems concurently on a single | |
149 | hardware system where the basic resources are driven by a Linux | |
150 | instance. The library aim at providing long term stable C API | |
151 | initially for the Xen paravirtualization but should be able to | |
152 | integrate other virtualization mechanisms if needed. | |
153 | ||
cf4bec93 JB |
154 | This package contains the base libraries and configuration file. |
155 | ||
148a9af3 | 156 | %description -l pl.UTF-8 |
423a0b96 JR |
157 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
158 | obecnych wersji Linuksa. | |
148a9af3 JB |
159 | |
160 | Wirtualizacja w systemie operacyjnym Linux oznacza możliwość | |
161 | jednoczesnego uruchamiania wielu instancji systemu operacyjnego na | |
162 | pojedynczym systemie sprzętowym, którego podstawowe zasoby są | |
163 | zarządzane przez instancję Linuksa. Celem biblioteki jest zapewnienie | |
164 | długotrwale stabilnego API C, początkowo do parawirtualizacji Xen, ale | |
165 | dającej się zintegrować w razie potrzeby z innymi mechanizmami | |
166 | wirtualizacji. | |
167 | ||
cf4bec93 JB |
168 | Ten pakiet zawiera podstawowe biblioteki oraz plik konfiguracyjny. |
169 | ||
842a4333 | 170 | %package -n bash-completion-%{name} |
be03a776 | 171 | Summary: bash-completion for libvirt |
1c850183 | 172 | Summary(pl.UTF-8): Bashowe dopełnianie składni poleceń libvirt |
be03a776 JB |
173 | Group: Applications/Shells |
174 | Requires: bash-completion >= 2.0 | |
5d55cc1a | 175 | BuildArch: noarch |
842a4333 JP |
176 | |
177 | %description -n bash-completion-%{name} | |
178 | This package provides bash-completion for libvirt. | |
179 | ||
1c850183 JB |
180 | %description -n bash-completion-%{name} -l pl.UTF-8 |
181 | Ten pakiet zapewnia bashowe dopełnianie składni dla poleceń libvirt. | |
182 | ||
94462445 | 183 | %package devel |
148a9af3 JB |
184 | Summary: Development files for programs using libvirt |
185 | Summary(pl.UTF-8): Pliki programistyczne do programów wykorzystujących libvirt | |
94462445 ER |
186 | Group: Development/Libraries |
187 | Requires: %{name} = %{version}-%{release} | |
94462445 ER |
188 | |
189 | %description devel | |
190 | Libvirt is a C toolkit to interact with the virtualization | |
191 | capabilities of recent versions of Linux. | |
192 | ||
148a9af3 JB |
193 | This package contains the header files needed for developing programs |
194 | using the libvirt library. | |
195 | ||
196 | %description devel -l pl.UTF-8 | |
423a0b96 JR |
197 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
198 | obecnych wersji Linuksa. | |
148a9af3 JB |
199 | |
200 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
201 | wykorzystujących bibliotekę libvirt. | |
94462445 ER |
202 | |
203 | %package static | |
204 | Summary: Development static libraries for programs using libvirt | |
148a9af3 | 205 | Summary(pl.UTF-8): Statyczne biblioteki programistyczne do programów wykorzystujących libvirt |
94462445 | 206 | Group: Development/Libraries |
148a9af3 | 207 | Requires: %{name}-devel = %{version}-%{release} |
94462445 ER |
208 | |
209 | %description static | |
210 | Libvirt is a C toolkit to interact with the virtualization | |
211 | capabilities of recent versions of Linux. | |
212 | ||
148a9af3 JB |
213 | This package contains the static libraries for developing programs |
214 | using the libvirt library. | |
215 | ||
216 | %description static -l pl.UTF-8 | |
423a0b96 JR |
217 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
218 | obecnych wersji Linuksa. | |
148a9af3 JB |
219 | |
220 | Ten pakiet zawiera biblioteki statyczne do tworzenia programów | |
221 | wykorzystujących bibliotekę libvirt. | |
94462445 | 222 | |
1c850183 JB |
223 | %package doc |
224 | Summary: Documentation for libvirt | |
225 | Summary(pl.UTF-8): Dokumentacja do libvirt | |
226 | Group: Documentation | |
5d55cc1a | 227 | BuildArch: noarch |
1c850183 JB |
228 | |
229 | %description doc | |
230 | Documentation for libvirt. | |
231 | ||
232 | %description doc -l pl.UTF-8 | |
233 | Dokumentacja do libvirt. | |
234 | ||
423a0b96 JR |
235 | %package lock-sanlock |
236 | Summary: Sanlock lock manager plugin for libvirt | |
237 | Summary(pl.UTF-8): Zarządca blokad sanlock dla biblioteki libvirt | |
238 | Group: Libraries | |
4ef34a20 | 239 | Requires: %{name}-daemon = %{version}-%{release} |
40a24f8b | 240 | Requires: sanlock-libs >= 3.5.0 |
423a0b96 JR |
241 | |
242 | %description lock-sanlock | |
243 | Sanlock lock manager plugin for libvirt. | |
244 | ||
245 | %description lock-sanlock -l pl.UTF-8 | |
246 | Zarządca blokad sanlock dla biblioteki libvirt. | |
247 | ||
248 | %package daemon | |
249 | Summary: Server side daemon and supporting files for libvirt library | |
cf4bec93 | 250 | Summary(pl.UTF-8): Demon działający po stronie serwera oraz pliki wspierające dla biblioteki libvirt |
423a0b96 | 251 | Group: Applications/System |
1c850183 JB |
252 | Requires(post): systemd-units |
253 | Requires(post,preun): /sbin/chkconfig | |
254 | Requires(postun): systemd-units | |
255 | Requires(preun): systemd-units | |
94462445 | 256 | Requires: %{name} = %{version}-%{release} |
1c850183 | 257 | Requires: device-mapper >= 1.0.0 |
423a0b96 | 258 | Requires: iproute2 |
7ce5923d | 259 | Requires: libblkid >= 2.17 |
1c850183 JB |
260 | # iscsi-direct driver |
261 | Requires: libiscsi >= 1.18.0 | |
0c4e060a | 262 | %{?with_netcf:Requires: netcf >= 0.2.0} |
7ce5923d | 263 | Requires: parted-libs >= 1.8.0 |
8b51fd22 | 264 | Requires: rc-scripts |
423a0b96 JR |
265 | # Needed for probing the power management features of the host. |
266 | Requires: pm-utils | |
bf949ec1 | 267 | Requires: systemd-units >= 37-0.10 |
1c850183 | 268 | Requires: udev-libs >= 1:219 |
423a0b96 JR |
269 | Requires: util-linux |
270 | Requires: virtual(module-tools) | |
7ce5923d | 271 | Requires: xorg-lib-libpciaccess >= 0.10.0 |
624d0ccc | 272 | Suggests: bridge-utils |
1c850183 JB |
273 | Suggests: cyrus-sasl >= 2.1.26 |
274 | Suggests: cyrus-sasl-digest-md5 >= 2.1.26 | |
8a8149a9 | 275 | Suggests: dmidecode |
423a0b96 | 276 | Suggests: dnsmasq >= 2.41 |
8a8149a9 JR |
277 | Suggests: ebtables |
278 | Suggests: gawk | |
1c850183 | 279 | Suggests: glusterfs-client >= 3.4.1 |
8a8149a9 | 280 | Suggests: iptables |
423a0b96 JR |
281 | Suggests: iptables |
282 | Suggests: libcgroup | |
624d0ccc | 283 | Suggests: lvm2 |
423a0b96 JR |
284 | Suggests: numad |
285 | Suggests: open-iscsi | |
54247c34 | 286 | Suggests: parted >= 1.8.0 |
423a0b96 | 287 | Suggests: polkit >= 0.93 |
cdcb191c | 288 | #Suggests: radvd |
bf949ec1 | 289 | Suggests: scrub |
57a80ac3 | 290 | #Suggests: sheepdog |
8b51fd22 | 291 | Provides: libvirt(hypervisor) |
94462445 | 292 | |
423a0b96 JR |
293 | %description daemon |
294 | Server side daemon required to manage the virtualization capabilities | |
295 | of recent versions of Linux. Requires a hypervisor specific sub-RPM | |
296 | for specific drivers. | |
297 | ||
cf4bec93 JB |
298 | %description daemon -l pl.UTF-8 |
299 | Demon działający po stronie serwera wymagany do zarządzania funkcjami | |
300 | wirtualizacji nowych wersji Linuksa. Wymaga podpakietu specyficznego | |
301 | dla hipernadzorcy. | |
302 | ||
fb415d8b JB |
303 | %package daemon-storage-gluster |
304 | Summary: Storage driver plugin for GlusterFS | |
305 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca GlusterFS | |
306 | Group: Libraries | |
307 | Requires: %{name}-daemon = %{version}-%{release} | |
308 | Requires: glusterfs-libs >= 3.4.1 | |
309 | ||
310 | %description daemon-storage-gluster | |
311 | Storage driver plugin for GlusterFS. | |
312 | ||
313 | %description daemon-storage-gluster -l pl.UTF-8 | |
314 | Wtyczka składowania danych wykorzystująca system plików GlusterFS. | |
315 | ||
316 | %package daemon-storage-rbd | |
317 | Summary: Storage driver plugin for Ceph RADOS Block Device | |
318 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS (Ceph) | |
319 | Group: Libraries | |
320 | Requires: %{name}-daemon = %{version}-%{release} | |
321 | ||
322 | %description daemon-storage-rbd | |
323 | Storage driver plugin for Ceph RADOS Block Device. | |
324 | ||
325 | %description daemon-storage-rbd -l pl.UTF-8 | |
326 | Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS | |
327 | (system plików Ceph). | |
328 | ||
423a0b96 | 329 | %package daemon-libxl |
cf4bec93 JB |
330 | Summary: Server side driver required to run XEN guests (xenlight) |
331 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości XEN (xenlight) | |
332 | Group: Libraries | |
423a0b96 | 333 | Requires: %{name}-daemon = %{version}-%{release} |
1c850183 | 334 | Requires: xen >= 4.6 |
423a0b96 | 335 | Provides: libvirt(hypervisor) |
be03a776 | 336 | Obsoletes: libvirt-daemon-xen < 4.3.0 |
423a0b96 JR |
337 | |
338 | %description daemon-libxl | |
cf4bec93 JB |
339 | Server side driver required to manage the virtualization capabilities |
340 | of XEN via xenlight interface. | |
341 | ||
342 | %description daemon-libxl -l pl.UTF-8 | |
343 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
344 | wirtualizacji XEN poprzez interfejs xenlight. | |
423a0b96 JR |
345 | |
346 | %package daemon-lxc | |
cf4bec93 JB |
347 | Summary: Server side driver required to run LXC guests |
348 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości LXC | |
349 | Group: Libraries | |
423a0b96 | 350 | Requires: %{name}-daemon = %{version}-%{release} |
4ef34a20 | 351 | Requires: libfuse >= 2.8.6 |
423a0b96 JR |
352 | Provides: libvirt(hypervisor) |
353 | ||
354 | %description daemon-lxc | |
cf4bec93 JB |
355 | Server side driver required to manage the virtualization capabilities |
356 | of LXC. | |
357 | ||
358 | %description daemon-lxc -l pl.UTF-8 | |
359 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
360 | wirtualizacji LXC. | |
423a0b96 | 361 | |
423a0b96 | 362 | %package daemon-qemu |
cf4bec93 JB |
363 | Summary: Server side driver required to run QEMU guests |
364 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości QEMU | |
365 | Group: Libraries | |
423a0b96 JR |
366 | Requires: %{name}-daemon = %{version}-%{release} |
367 | Requires: /usr/bin/qemu-img | |
423a0b96 JR |
368 | Requires: bzip2 |
369 | Requires: gzip | |
370 | Requires: lzop | |
96de3a81 | 371 | Requires: qemu-system-x86 |
423a0b96 JR |
372 | Requires: xz |
373 | Provides: libvirt(hypervisor) | |
374 | ||
375 | %description daemon-qemu | |
cf4bec93 JB |
376 | Server side driver required to manage the virtualization capabilities |
377 | of the QEMU emulators. | |
378 | ||
379 | %description daemon-qemu -l pl.UTF-8 | |
380 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
381 | wirtualizacji emulatora QEMU. | |
423a0b96 | 382 | |
1c850183 JB |
383 | %package daemon-vbox |
384 | Summary: Server side driver required to run VirtalBox guests | |
385 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości VirtalBox | |
386 | Group: Libraries | |
387 | Requires: %{name}-daemon = %{version}-%{release} | |
388 | Requires: VirtualBox >= 5.2 | |
389 | Provides: libvirt(hypervisor) | |
390 | ||
391 | %description daemon-vbox | |
392 | Server side driver required to manage the virtualization capabilities | |
393 | of VirtualBox. | |
394 | ||
395 | %description daemon-vbox -l pl.UTF-8 | |
396 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
397 | wirtualizacji VirtualBoksa. | |
398 | ||
b040b949 JR |
399 | %package daemon-chd |
400 | Summary: Cloud Hypervisor server side driver | |
401 | Group: Libraries | |
402 | Requires: %{name}-daemon = %{version}-%{release} | |
403 | Provides: libvirt(hypervisor) | |
404 | ||
405 | %description daemon-chd | |
406 | Cloud Hypervisor is an open source Virtual Machine Monitor (VMM) that | |
407 | runs on top of KVM. The project focuses on exclusively running modern, | |
408 | cloud workloads, on top of a limited set of hardware architectures and | |
409 | platforms. Cloud workloads refers to those that are usually run by | |
410 | customers inside a cloud provider. For our purposes this means modern | |
411 | operating systems with most I/O handled by paravirtualised devices | |
412 | (i.e. virtio), no requirement for legacy devices, and 64-bit CPUs. | |
413 | ||
423a0b96 | 414 | %package client |
cf4bec93 JB |
415 | Summary: Client side utilities of the libvirt library |
416 | Summary(pl.UTF-8): Narzędzia klienckie do biblioteki libvirt | |
423a0b96 | 417 | Group: Applications/System |
423a0b96 | 418 | Requires(post): systemd-units |
8b51fd22 | 419 | Requires(post,preun): /sbin/chkconfig |
423a0b96 | 420 | Requires(postun): systemd-units |
8b51fd22 | 421 | Requires(preun): systemd-units |
1c850183 JB |
422 | Requires: %{name} = %{version}-%{release} |
423 | Requires: gettext >= 0.18.1.1-6 | |
424 | Requires: gnutls >= 3.2.0 | |
425 | Requires: netcat-openbsd | |
426 | Requires: rc-scripts | |
423a0b96 JR |
427 | |
428 | %description client | |
cf4bec93 JB |
429 | Client binaries needed to access to the virtualization capabilities of |
430 | recent versions of Linux (and other OSes). | |
431 | ||
432 | %description client -l pl.UTF-8 | |
433 | Programy klienckie potrzebne do funkcji wirtualizacji nowych wersji | |
434 | Linuksa (oraz innych systemów operacyjnych). | |
423a0b96 JR |
435 | |
436 | %package utils | |
cf4bec93 JB |
437 | Summary: Tools to interact with virtualization capabilities (metapackage) |
438 | Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi (metapakiet) | |
423a0b96 JR |
439 | Group: Applications/System |
440 | Requires: %{name}-client = %{version}-%{release} | |
441 | Requires: %{name}-daemon = %{version}-%{release} | |
40e7715f | 442 | %{?with_libxl:Requires: %{name}-daemon-libxl = %{version}-%{release}} |
423a0b96 | 443 | Requires: %{name}-daemon-lxc = %{version}-%{release} |
423a0b96 | 444 | Requires: %{name}-daemon-qemu = %{version}-%{release} |
423a0b96 | 445 | |
94462445 ER |
446 | %description utils |
447 | Libvirt is a C toolkit to interact with the virtualization | |
448 | capabilities of recent versions of Linux. | |
449 | ||
cf4bec93 | 450 | This is metapackage gathering all tools for the libvirt library. |
94462445 | 451 | |
148a9af3 | 452 | %description utils -l pl.UTF-8 |
423a0b96 JR |
453 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
454 | obecnych wersji Linuksa. | |
148a9af3 | 455 | |
cf4bec93 JB |
456 | To jest metapakiet zbierający wszystkie narzędzia przeznaczone dla |
457 | biblioteki libvirt. | |
148a9af3 | 458 | |
3e5ed185 JB |
459 | %package -n systemtap-libvirt |
460 | Summary: systemtap/dtrace probes for libvirt | |
461 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla libvirt | |
462 | Group: Development/Tools | |
463 | Requires: %{name} = %{version}-%{release} | |
464 | Requires: systemtap-client | |
465 | ||
466 | %description -n systemtap-libvirt | |
467 | systemtap/dtrace probes for libvirt. | |
468 | ||
469 | %description -n systemtap-libvirt -l pl.UTF-8 | |
470 | Sondy systemtap/dtrace dla libvirt. | |
471 | ||
af7f943c JB |
472 | %package -n wireshark-libvirt |
473 | Summary: Wireshark dissector module for libvirt packets | |
474 | Summary(pl.UTF-8): Moduł sekcji Wiresharka do pakietów libvirt | |
475 | Group: Libraries | |
40a24f8b | 476 | Requires: wireshark >= 2.6.0 |
af7f943c JB |
477 | |
478 | %description -n wireshark-libvirt | |
479 | Wireshark dissector module for libvirt packets. | |
480 | ||
481 | %description -n wireshark-libvirt -l pl.UTF-8 | |
482 | Moduł sekcji Wiresharka do pakietów libvirt. | |
483 | ||
94462445 ER |
484 | %prep |
485 | %setup -q | |
be8dc440 | 486 | %patch0 -p1 |
1c850183 | 487 | %patch1 -p1 |
be8dc440 | 488 | %patch2 -p1 |
40a24f8b | 489 | %patch3 -p1 |
8357fab1 | 490 | %patch4 -p1 |
be8dc440 JK |
491 | %{?with_vserver:%patch5 -p1} |
492 | %patch6 -p1 | |
40a24f8b JB |
493 | |
494 | %if %{with static_libs} | |
495 | %{__sed} -i '/^libvirt\(_admin\|_lxc\|_qemu\)\?_lib = / s/shared_library/library/' src/meson.build | |
496 | %endif | |
5296d739 | 497 | |
94462445 | 498 | %build |
40a24f8b JB |
499 | %meson build \ |
500 | -Dbash_completion=enabled \ | |
501 | -Dbash_completion_dir=%{bash_compdir} \ | |
502 | %{!?with_esx:-Ddriver_esx=disabled} \ | |
503 | %{!?with_hyperv:-Ddriver_hyperv=disabled} \ | |
504 | %{!?with_libxl:-Ddriver_libxl=disabled} \ | |
505 | %{!?with_lxc:-Ddriver_lxc=disabled} \ | |
506 | %{!?with_openvz:-Ddriver_openvz=disabled} \ | |
507 | %{!?with_qemu:-Ddriver_qemu=disabled} \ | |
508 | %{!?with_vbox:-Ddriver_vbox=disabled} \ | |
509 | %{!?with_vmware:-Ddriver_vmware=disabled} \ | |
510 | %{!?with_systemtap:-Ddtrace=disabled} \ | |
511 | %{!?with_glusterfs:-Dglusterfs=disabled} \ | |
512 | -Dinit_script=systemd \ | |
513 | %{!?with_netcf:-Dnetcf=disabled} \ | |
514 | -Dpackager="PLD-Linux" \ | |
515 | -Dpackager_version="%{name}-%{version}-%{release}.%{_target_cpu}" \ | |
516 | %{!?with_polkit:-Dpolkit=disabled} \ | |
517 | -Dqemu_group=qemu \ | |
518 | -Dqemu_user=qemu \ | |
519 | -Drpath=disabled \ | |
520 | %{!?with_sanlock:-Dsanlock=disabled} \ | |
521 | %{!?with_glusterfs:-Dstorage_gluster=disabled} \ | |
522 | %{!?with_ceph:-Dstorage_rbd=disabled} \ | |
523 | %{?with_vbox:-Dvbox_xpcomc_dir=%{_libdir}/VirtualBox} \ | |
524 | %{!?with_wireshark:-Dwireshark_dissector=disabled} \ | |
525 | -Daugparse_path=/usr/bin/augparse \ | |
526 | -Ddmidecode_path=/usr/sbin/dmidecode \ | |
527 | -Ddnsmasq_path=/usr/sbin/dnsmasq \ | |
528 | -Debtables_path=/usr/sbin/ebtables \ | |
529 | -Dip_path=/sbin/ip \ | |
530 | -Dip6tables_path=/usr/sbin/ip6tables \ | |
531 | -Diptables_path=/usr/sbin/iptables \ | |
532 | -Discsiadm_path=/sbin/iscsiadm \ | |
533 | -Dlvchange_path=/sbin/lvchange \ | |
534 | -Dlvcreate_path=/sbin/lvcreate \ | |
535 | -Dlvremove_path=/sbin/lvremove \ | |
536 | -Dlvs_path=/sbin/lvs \ | |
537 | -Dmm_ctl_path=/usr/sbin/mm-ctl \ | |
538 | -Dmkfs_path=/sbin/mkfs \ | |
539 | -Dmodprobe_path=/sbin/modprobe \ | |
540 | -Dmount_path=/bin/mount \ | |
541 | -Dnumad_path=/usr/bin/numad \ | |
542 | -Dovs_vsctl_path=/usr/bin/ovs-vsctl \ | |
543 | -Dparted_path=/usr/sbin/parted \ | |
544 | -Dpvcreate_path=/sbin/pvcreate \ | |
545 | -Dpvremove_path=/sbin/pvremove \ | |
546 | -Dpvs_path=/sbin/pvs \ | |
547 | -Dqemu_bridge_path=%{_libexecdir}/qemu-bridge-helper \ | |
548 | -Dqemu_dbus_daemon_path=/usr/bin/dbus-daemon \ | |
549 | -Dqemu_pr_path=/usr/bin/qemu-pr-helper \ | |
550 | -Dradvd_path=/usr/sbin/radvd \ | |
551 | -Drmmod_path=/sbin/rmmod \ | |
552 | -Dscrub_path=/usr/bin/scrub \ | |
553 | -Dsheepdogcli_path=/usr/sbin/collie \ | |
554 | -Dshowmount_path=/usr/sbin/showmount \ | |
555 | -Dtc_path=/sbin/tc \ | |
556 | -Dudevadm_path=/sbin/udevadm \ | |
557 | -Dumount_path=/bin/umount \ | |
558 | -Dvgchange_path=/sbin/vgchange \ | |
559 | -Dvgcreate_path=/sbin/vgcreate \ | |
560 | -Dvgremove_path=/sbin/vgremove \ | |
561 | -Dvgscan_path=/sbin/vgscan \ | |
562 | -Dvgs_path=/sbin/vgs \ | |
563 | -Dzfs_path=/usr/sbin/zfs \ | |
564 | -Dzpool_path=/usr/sbin/zpool | |
565 | ||
566 | # TODO: package and update paths | |
567 | # -Dmdevctl_path=??? | |
568 | # -Dpdwtags=??? | |
569 | # -Dqemu_slirp_path=???/slirp-helper | |
570 | # -Dvstorage_path=???/vstorage | |
571 | # -Dvstorage_mount_path=???/vstorage-mount | |
572 | ||
573 | %ninja_build -C build | |
94462445 ER |
574 | |
575 | %install | |
576 | rm -rf $RPM_BUILD_ROOT | |
663e5db6 | 577 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d \ |
423a0b96 | 578 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
ed4dd5b7 | 579 | |
40a24f8b | 580 | %ninja_install -C build |
94462445 | 581 | |
96de3a81 ER |
582 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd |
583 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
e285e5e5 | 584 | |
94462445 ER |
585 | %find_lang %{name} |
586 | ||
587 | %clean | |
588 | rm -rf $RPM_BUILD_ROOT | |
589 | ||
5296d739 JB |
590 | %post -p /sbin/ldconfig |
591 | %postun -p /sbin/ldconfig | |
94462445 | 592 | |
423a0b96 | 593 | %post daemon |
8b51fd22 ER |
594 | /sbin/chkconfig --add libvirtd |
595 | %service libvirtd restart | |
bf949ec1 | 596 | %systemd_post libvirtd.service |
423a0b96 JR |
597 | |
598 | %preun daemon | |
8b51fd22 ER |
599 | if [ "$1" = "0" ]; then |
600 | %service -q libvirtd stop | |
601 | /sbin/chkconfig --del libvirtd | |
602 | fi | |
423a0b96 JR |
603 | %systemd_preun libvirtd.service |
604 | ||
605 | %postun daemon | |
606 | %systemd_reload | |
607 | ||
608 | %post client | |
8b51fd22 ER |
609 | /sbin/chkconfig --add libvirt-guests |
610 | %service -n libvirt-guests restart | |
bf949ec1 JR |
611 | NORESTART=1 |
612 | %systemd_post libvirt-guests.service | |
613 | ||
423a0b96 | 614 | %preun client |
bf949ec1 | 615 | %systemd_preun libvirt-guests.service |
8b51fd22 ER |
616 | if [ "$1" = "0" ]; then |
617 | %service -q libvirt-guests stop | |
618 | /sbin/chkconfig --del libvirt-guests | |
619 | fi | |
bf949ec1 | 620 | |
423a0b96 | 621 | %postun client |
bf949ec1 JR |
622 | %systemd_reload |
623 | ||
94462445 ER |
624 | %files -f %{name}.lang |
625 | %defattr(644,root,root,755) | |
40a24f8b | 626 | %doc AUTHORS.rst NEWS.rst README.rst |
cf4bec93 | 627 | %dir %{_sysconfdir}/libvirt |
423a0b96 | 628 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf |
5296d739 JB |
629 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* |
630 | %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 | |
b2ff1d91 JB |
631 | %attr(755,root,root) %{_libdir}/libvirt-admin.so.*.*.* |
632 | %attr(755,root,root) %ghost %{_libdir}/libvirt-admin.so.0 | |
bf7aa31b JB |
633 | %if %{with lxc} |
634 | %attr(755,root,root) %{_libdir}/libvirt-lxc.so.*.*.* | |
635 | %attr(755,root,root) %ghost %{_libdir}/libvirt-lxc.so.0 | |
636 | %endif | |
5296d739 JB |
637 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* |
638 | %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 | |
fb415d8b JB |
639 | |
640 | # NSS modules | |
641 | %attr(755,root,root) %{_libdir}/libnss_libvirt.so.2 | |
642 | %attr(755,root,root) %{_libdir}/libnss_libvirt_guest.so.2 | |
bf7aa31b | 643 | |
423a0b96 | 644 | %dir %{_libdir}/libvirt |
c47719f5 | 645 | %dir %{_datadir}/libvirt |
3ac3cd0c | 646 | |
842a4333 JP |
647 | %files -n bash-completion-%{name} |
648 | %defattr(644,root,root,755) | |
1c850183 JB |
649 | %{bash_compdir}/virsh |
650 | %{bash_compdir}/virt-admin | |
842a4333 | 651 | |
94462445 ER |
652 | %files devel |
653 | %defattr(644,root,root,755) | |
5296d739 | 654 | %attr(755,root,root) %{_libdir}/libvirt.so |
b2ff1d91 | 655 | %attr(755,root,root) %{_libdir}/libvirt-admin.so |
bf7aa31b | 656 | %{?with_lxc:%attr(755,root,root) %{_libdir}/libvirt-lxc.so} |
b842fe72 | 657 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so |
f4fa2857 | 658 | %{_datadir}/%{name}/api |
5296d739 | 659 | %{_includedir}/%{name} |
771a9acb | 660 | %{_pkgconfigdir}/libvirt.pc |
c25279f9 | 661 | %{_pkgconfigdir}/libvirt-admin.pc |
771a9acb | 662 | %{?with_lxc:%{_pkgconfigdir}/libvirt-lxc.pc} |
b842fe72 | 663 | %{_pkgconfigdir}/libvirt-qemu.pc |
fb415d8b JB |
664 | %{_mandir}/man7/virkeycode-*.7* |
665 | %{_mandir}/man7/virkeyname-*.7* | |
94462445 | 666 | |
7b850baf | 667 | %if %{with static_libs} |
94462445 ER |
668 | %files static |
669 | %defattr(644,root,root,755) | |
5296d739 | 670 | %{_libdir}/libvirt.a |
bf7aa31b | 671 | %{?with_lxc:%{_libdir}/libvirt-lxc.a} |
b842fe72 | 672 | %{_libdir}/libvirt-qemu.a |
7b850baf | 673 | %endif |
94462445 | 674 | |
1c850183 JB |
675 | %files doc |
676 | %defattr(644,root,root,755) | |
677 | %dir %{_docdir}/libvirt | |
678 | %{_docdir}/libvirt/examples | |
679 | %{_docdir}/libvirt/html | |
680 | ||
cf4bec93 JB |
681 | %if %{with sanlock} |
682 | %files lock-sanlock | |
683 | %defattr(644,root,root,755) | |
684 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
cf5c6c57 | 685 | %attr(755,root,root) %{_libexecdir}/libvirt_sanlock_helper |
cf4bec93 JB |
686 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so |
687 | %{_datadir}/augeas/lenses/libvirt_sanlock.aug | |
fef7eb20 | 688 | %if %{with qemu} |
cf4bec93 | 689 | %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug |
fef7eb20 | 690 | %endif |
cf4bec93 JB |
691 | %dir /var/lib/libvirt/sanlock |
692 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
cf4bec93 JB |
693 | %endif |
694 | ||
423a0b96 | 695 | %files daemon |
94462445 | 696 | %defattr(644,root,root,755) |
1c850183 | 697 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt-admin.conf |
423a0b96 | 698 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf |
1c850183 | 699 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtinterfaced.conf |
62e11f33 | 700 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlockd.conf |
c25279f9 | 701 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlogd.conf |
1c850183 JB |
702 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnetworkd.conf |
703 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnodedevd.conf | |
704 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnwfilterd.conf | |
705 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtproxyd.conf | |
706 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtsecretd.conf | |
707 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtstoraged.conf | |
708 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu | |
709 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks | |
423a0b96 | 710 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml |
1c850183 | 711 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart |
423a0b96 | 712 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml |
1c850183 | 713 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter |
423a0b96 | 714 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml |
72b1baa0 | 715 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf |
1c850183 | 716 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd |
bf949ec1 | 717 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd |
bf949ec1 | 718 | %{systemdunitdir}/libvirtd.service |
538e1954 JP |
719 | %{systemdunitdir}/libvirtd.socket |
720 | %{systemdunitdir}/libvirtd-admin.socket | |
721 | %{systemdunitdir}/libvirtd-ro.socket | |
722 | %{systemdunitdir}/libvirtd-tcp.socket | |
723 | %{systemdunitdir}/libvirtd-tls.socket | |
2114e9b8 | 724 | %{systemdunitdir}/virt-guest-shutdown.target |
1c850183 JB |
725 | %{systemdunitdir}/virtinterfaced.service |
726 | %{systemdunitdir}/virtinterfaced.socket | |
727 | %{systemdunitdir}/virtinterfaced-admin.socket | |
728 | %{systemdunitdir}/virtinterfaced-ro.socket | |
4ef34a20 JB |
729 | %{systemdunitdir}/virtlockd.service |
730 | %{systemdunitdir}/virtlockd.socket | |
a7243fbe | 731 | %{systemdunitdir}/virtlockd-admin.socket |
c25279f9 MM |
732 | %{systemdunitdir}/virtlogd.service |
733 | %{systemdunitdir}/virtlogd.socket | |
a7243fbe | 734 | %{systemdunitdir}/virtlogd-admin.socket |
1c850183 JB |
735 | %{systemdunitdir}/virtnetworkd.service |
736 | %{systemdunitdir}/virtnetworkd.socket | |
737 | %{systemdunitdir}/virtnetworkd-admin.socket | |
738 | %{systemdunitdir}/virtnetworkd-ro.socket | |
739 | %{systemdunitdir}/virtnodedevd.service | |
740 | %{systemdunitdir}/virtnodedevd.socket | |
741 | %{systemdunitdir}/virtnodedevd-admin.socket | |
742 | %{systemdunitdir}/virtnodedevd-ro.socket | |
743 | %{systemdunitdir}/virtnwfilterd.service | |
744 | %{systemdunitdir}/virtnwfilterd.socket | |
745 | %{systemdunitdir}/virtnwfilterd-admin.socket | |
746 | %{systemdunitdir}/virtnwfilterd-ro.socket | |
747 | %{systemdunitdir}/virtproxyd.service | |
748 | %{systemdunitdir}/virtproxyd.socket | |
749 | %{systemdunitdir}/virtproxyd-admin.socket | |
750 | %{systemdunitdir}/virtproxyd-ro.socket | |
751 | %{systemdunitdir}/virtproxyd-tcp.socket | |
752 | %{systemdunitdir}/virtproxyd-tls.socket | |
753 | %{systemdunitdir}/virtsecretd.service | |
754 | %{systemdunitdir}/virtsecretd.socket | |
755 | %{systemdunitdir}/virtsecretd-admin.socket | |
756 | %{systemdunitdir}/virtsecretd-ro.socket | |
757 | %{systemdunitdir}/virtstoraged.service | |
758 | %{systemdunitdir}/virtstoraged.socket | |
759 | %{systemdunitdir}/virtstoraged-admin.socket | |
760 | %{systemdunitdir}/virtstoraged-ro.socket | |
9e91fdad | 761 | %config(noreplace) %verify(not md5 mtime size) /usr/lib/sysctl.d/60-libvirtd.conf |
423a0b96 | 762 | %attr(755,root,root) %{_sbindir}/libvirtd |
1c850183 | 763 | %attr(755,root,root) %{_sbindir}/virtinterfaced |
4ef34a20 | 764 | %attr(755,root,root) %{_sbindir}/virtlockd |
c25279f9 | 765 | %attr(755,root,root) %{_sbindir}/virtlogd |
1c850183 JB |
766 | %attr(755,root,root) %{_sbindir}/virtnetworkd |
767 | %attr(755,root,root) %{_sbindir}/virtnodedevd | |
768 | %attr(755,root,root) %{_sbindir}/virtnwfilterd | |
769 | %attr(755,root,root) %{_sbindir}/virtproxyd | |
770 | %attr(755,root,root) %{_sbindir}/virtsecretd | |
771 | %attr(755,root,root) %{_sbindir}/virtstoraged | |
772 | %attr(755,root,root) %{_libexecdir}/libvirt_iohelper | |
773 | %attr(755,root,root) %{_libexecdir}/libvirt_leaseshelper | |
774 | %attr(755,root,root) %{_libexecdir}/libvirt_parthelper | |
775 | %attr(755,root,root) %{_libexecdir}/virt-aa-helper | |
776 | # TODO: | |
777 | #%{_libdir}/firewalld/zones/libvirt.xml | |
778 | %dir %{_libdir}/libvirt/connection-driver | |
728328ae | 779 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so |
1c850183 JB |
780 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so |
781 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so | |
782 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so | |
783 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so | |
784 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so | |
785 | %dir %{_libdir}/libvirt/lock-driver | |
786 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so | |
787 | %dir %{_libdir}/libvirt/storage-backend | |
788 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_disk.so | |
789 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_fs.so | |
790 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi.so | |
791 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi-direct.so | |
792 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_logical.so | |
793 | # mpath requires libdevmapper, but libvirt itself requires it too | |
794 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_mpath.so | |
795 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_scsi.so | |
796 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_sheepdog.so | |
b040b949 | 797 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_vstorage.so |
1c850183 JB |
798 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_zfs.so |
799 | %dir %{_libdir}/libvirt/storage-file | |
800 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_fs.so | |
423a0b96 | 801 | %{_datadir}/augeas/lenses/libvirtd.aug |
4ef34a20 | 802 | %{_datadir}/augeas/lenses/libvirt_lockd.aug |
1c850183 | 803 | %{_datadir}/augeas/lenses/virtinterfaced.aug |
62e11f33 | 804 | %{_datadir}/augeas/lenses/virtlockd.aug |
c25279f9 | 805 | %{_datadir}/augeas/lenses/virtlogd.aug |
1c850183 JB |
806 | %{_datadir}/augeas/lenses/virtnetworkd.aug |
807 | %{_datadir}/augeas/lenses/virtnodedevd.aug | |
808 | %{_datadir}/augeas/lenses/virtnwfilterd.aug | |
809 | %{_datadir}/augeas/lenses/virtproxyd.aug | |
810 | %{_datadir}/augeas/lenses/virtsecretd.aug | |
811 | %{_datadir}/augeas/lenses/virtstoraged.aug | |
423a0b96 | 812 | %{_datadir}/augeas/lenses/tests/test_libvirtd.aug |
1c850183 | 813 | %{_datadir}/augeas/lenses/tests/test_virtinterfaced.aug |
62e11f33 | 814 | %{_datadir}/augeas/lenses/tests/test_virtlockd.aug |
c25279f9 | 815 | %{_datadir}/augeas/lenses/tests/test_virtlogd.aug |
1c850183 JB |
816 | %{_datadir}/augeas/lenses/tests/test_virtnetworkd.aug |
817 | %{_datadir}/augeas/lenses/tests/test_virtnodedevd.aug | |
818 | %{_datadir}/augeas/lenses/tests/test_virtnwfilterd.aug | |
819 | %{_datadir}/augeas/lenses/tests/test_virtproxyd.aug | |
820 | %{_datadir}/augeas/lenses/tests/test_virtsecretd.aug | |
821 | %{_datadir}/augeas/lenses/tests/test_virtstoraged.aug | |
822 | %{_datadir}/libvirt/cpu_map | |
3e5ed185 JB |
823 | %if %{with polkit} |
824 | %{_datadir}/polkit-1/actions/org.libvirt.api.policy | |
825 | %{_datadir}/polkit-1/actions/org.libvirt.unix.policy | |
9e91fdad | 826 | %{_datadir}/polkit-1/rules.d/50-libvirt.rules |
3e5ed185 | 827 | %endif |
e4177f0c | 828 | %{_mandir}/man8/libvirtd.8* |
62e11f33 | 829 | %{_mandir}/man8/virtlockd.8* |
c25279f9 | 830 | %{_mandir}/man8/virtlogd.8* |
b040b949 JR |
831 | %{_mandir}/man8/virtinterfaced.8* |
832 | %{_mandir}/man8/virtnetworkd.8* | |
833 | %{_mandir}/man8/virtnodedevd.8* | |
834 | %{_mandir}/man8/virtnwfilterd.8* | |
835 | %{_mandir}/man8/virtproxyd.8* | |
836 | %{_mandir}/man8/virtsecretd.8* | |
837 | %{_mandir}/man8/virtstoraged.8* | |
d5a575f6 | 838 | %dir /var/lib/libvirt |
621ed3d1 | 839 | %dir /var/lib/libvirt/dnsmasq |
423a0b96 | 840 | %attr(711,root,root) %dir /var/lib/libvirt/boot |
621ed3d1 | 841 | %attr(700,root,root) %dir /var/lib/libvirt/network |
423a0b96 JR |
842 | %attr(711,root,root) %dir /var/lib/libvirt/images |
843 | %attr(711,root,root) %dir /var/lib/libvirt/filesystems | |
844 | %attr(700,root,root) %dir /var/log/libvirt | |
845 | %attr(711,root,root) %dir /var/cache/libvirt | |
621ed3d1 | 846 | %dir /var/run/libvirt |
423a0b96 JR |
847 | %dir /var/run/libvirt/network |
848 | %{systemdtmpfilesdir}/%{name}.conf | |
fb415d8b JB |
849 | |
850 | %if %{with glusterfs} | |
851 | %files daemon-storage-gluster | |
852 | %defattr(644,root,root,755) | |
853 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so | |
c9fcc2fd | 854 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_gluster.so |
fb415d8b JB |
855 | %endif |
856 | ||
857 | %if %{with ceph} | |
858 | %files daemon-storage-rbd | |
859 | %defattr(644,root,root,755) | |
860 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_rbd.so | |
861 | %endif | |
423a0b96 | 862 | |
eae1555f | 863 | %if %{with libxl} |
423a0b96 JR |
864 | %files daemon-libxl |
865 | %defattr(644,root,root,755) | |
9e91fdad JB |
866 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl.conf |
867 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-lockd.conf | |
868 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-sanlock.conf} | |
1c850183 | 869 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtxend.conf |
9e91fdad | 870 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.libxl |
1c850183 JB |
871 | %{systemdunitdir}/virtxend.service |
872 | %{systemdunitdir}/virtxend.socket | |
873 | %{systemdunitdir}/virtxend-admin.socket | |
874 | %{systemdunitdir}/virtxend-ro.socket | |
875 | %attr(755,root,root) %{_sbindir}/virtxend | |
273917b1 | 876 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so |
9e91fdad | 877 | %{_datadir}/augeas/lenses/libvirtd_libxl.aug |
1c850183 | 878 | %{_datadir}/augeas/lenses/virtxend.aug |
9e91fdad | 879 | %{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug |
1c850183 | 880 | %{_datadir}/augeas/lenses/tests/test_virtxend.aug |
423a0b96 JR |
881 | %attr(700,root,root) %dir /var/lib/libvirt/libxl |
882 | %attr(700,root,root) %dir /var/run/libvirt/libxl | |
883 | %attr(700,root,root) %dir /var/log/libvirt/libxl | |
b040b949 | 884 | %{_mandir}/man8/virtxend.8* |
423a0b96 JR |
885 | %endif |
886 | ||
eae1555f | 887 | %if %{with lxc} |
423a0b96 JR |
888 | %files daemon-lxc |
889 | %defattr(644,root,root,755) | |
890 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf | |
1c850183 | 891 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlxcd.conf |
423a0b96 | 892 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc |
1c850183 JB |
893 | %{systemdunitdir}/virtlxcd.service |
894 | %{systemdunitdir}/virtlxcd.socket | |
895 | %{systemdunitdir}/virtlxcd-admin.socket | |
896 | %{systemdunitdir}/virtlxcd-ro.socket | |
897 | %attr(755,root,root) %{_sbindir}/virtlxcd | |
898 | %attr(755,root,root) %{_libexecdir}/libvirt_lxc | |
899 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so | |
900 | %{_datadir}/augeas/lenses/libvirtd_lxc.aug | |
901 | %{_datadir}/augeas/lenses/virtlxcd.aug | |
902 | %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug | |
903 | %{_datadir}/augeas/lenses/tests/test_virtlxcd.aug | |
423a0b96 | 904 | %attr(700,root,root) %dir /var/lib/libvirt/lxc |
621ed3d1 | 905 | %attr(700,root,root) %dir /var/run/libvirt/lxc |
423a0b96 | 906 | %attr(700,root,root) %dir /var/log/libvirt/lxc |
b040b949 | 907 | %{_mandir}/man8/virtlxcd.8* |
423a0b96 JR |
908 | %endif |
909 | ||
621ed3d1 | 910 | %if %{with qemu} |
423a0b96 JR |
911 | %files daemon-qemu |
912 | %defattr(644,root,root,755) | |
1c850183 | 913 | %attr(755,root,root) %{_bindir}/virt-qemu-run |
423a0b96 | 914 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf |
9e91fdad | 915 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-lockd.conf |
1c850183 | 916 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtqemud.conf |
9e91fdad | 917 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf} |
423a0b96 | 918 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu |
1c850183 JB |
919 | %{systemdunitdir}/virtqemud.service |
920 | %{systemdunitdir}/virtqemud.socket | |
921 | %{systemdunitdir}/virtqemud-admin.socket | |
922 | %{systemdunitdir}/virtqemud-ro.socket | |
923 | %attr(755,root,root) %{_sbindir}/virtqemud | |
924 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so | |
925 | %{_datadir}/augeas/lenses/libvirtd_qemu.aug | |
926 | %{_datadir}/augeas/lenses/virtqemud.aug | |
927 | %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug | |
928 | %{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug | |
929 | %{_datadir}/augeas/lenses/tests/test_virtqemud.aug | |
930 | %{_mandir}/man1/virt-qemu-run.1* | |
423a0b96 JR |
931 | %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu |
932 | %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu | |
621ed3d1 JB |
933 | %attr(700,root,root) %dir /var/log/libvirt/qemu |
934 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
04ecdedc | 935 | %{_prefix}/lib/sysctl.d/60-qemu-postcopy-migration.conf |
b040b949 | 936 | %{_mandir}/man8/virtqemud.8* |
1c850183 JB |
937 | %endif |
938 | ||
939 | %if %{with vbox} | |
940 | %files daemon-vbox | |
941 | %defattr(644,root,root,755) | |
942 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtvboxd.conf | |
1c850183 JB |
943 | %{systemdunitdir}/virtvboxd.service |
944 | %{systemdunitdir}/virtvboxd.socket | |
945 | %{systemdunitdir}/virtvboxd-admin.socket | |
946 | %{systemdunitdir}/virtvboxd-ro.socket | |
947 | %attr(755,root,root) %{_sbindir}/virtvboxd | |
948 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so | |
949 | %{_datadir}/augeas/lenses/virtvboxd.aug | |
950 | %{_datadir}/augeas/lenses/tests/test_virtvboxd.aug | |
b040b949 | 951 | %{_mandir}/man8/virtvboxd.8* |
423a0b96 JR |
952 | %endif |
953 | ||
b040b949 JR |
954 | %files daemon-chd |
955 | %defattr(644,root,root,755) | |
956 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtchd.conf | |
957 | %{systemdunitdir}/virtchd.service | |
958 | %{systemdunitdir}/virtchd.socket | |
959 | %{systemdunitdir}/virtchd-admin.socket | |
960 | %{systemdunitdir}/virtchd-ro.socket | |
961 | %attr(755,root,root) %{_sbindir}/virtchd | |
962 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_ch.so | |
963 | %{_datadir}/augeas/lenses/virtchd.aug | |
964 | %{_datadir}/augeas/lenses/tests/test_virtchd.aug | |
965 | ||
423a0b96 JR |
966 | %files client |
967 | %defattr(644,root,root,755) | |
04ecdedc | 968 | %{systemdunitdir}/libvirt-guests.service |
62e11f33 | 969 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virt-login-shell.conf |
423a0b96 | 970 | %attr(755,root,root) %{_bindir}/virsh |
c25279f9 | 971 | %attr(755,root,root) %{_bindir}/virt-admin |
423a0b96 | 972 | %attr(755,root,root) %{_bindir}/virt-host-validate |
1c850183 | 973 | # TODO: %attr(4754,root,virtlogin) and virtlogin group to access binary |
62e11f33 | 974 | %attr(4755,root,root) %{_bindir}/virt-login-shell |
423a0b96 | 975 | %attr(755,root,root) %{_bindir}/virt-xml-validate |
b040b949 | 976 | %attr(755,root,root) %{_bindir}/virt-pki-query-dn |
423a0b96 | 977 | %attr(755,root,root) %{_bindir}/virt-pki-validate |
40a24f8b | 978 | %attr(755,root,root) %{_bindir}/virt-ssh-helper |
4ef34a20 | 979 | %attr(754,root,root) %{_libexecdir}/libvirt-guests.sh |
1c850183 | 980 | %attr(754,root,root) %{_libexecdir}/virt-login-shell-helper |
423a0b96 | 981 | %{_mandir}/man1/virsh.1* |
c25279f9 | 982 | %{_mandir}/man1/virt-admin.1* |
423a0b96 | 983 | %{_mandir}/man1/virt-host-validate.1* |
62e11f33 | 984 | %{_mandir}/man1/virt-login-shell.1* |
423a0b96 | 985 | %{_mandir}/man1/virt-xml-validate.1* |
b040b949 | 986 | %{_mandir}/man1/virt-pki-query-dn.1* |
423a0b96 | 987 | %{_mandir}/man1/virt-pki-validate.1* |
b040b949 JR |
988 | %{_mandir}/man8/libvirt-guests.8* |
989 | %{_mandir}/man8/virt-ssh-helper.8* | |
423a0b96 JR |
990 | %dir %{_datadir}/libvirt/schemas |
991 | %{_datadir}/libvirt/schemas/basictypes.rng | |
992 | %{_datadir}/libvirt/schemas/capability.rng | |
40a24f8b | 993 | %{_datadir}/libvirt/schemas/cpu.rng |
2114e9b8 | 994 | %{_datadir}/libvirt/schemas/cputypes.rng |
423a0b96 | 995 | %{_datadir}/libvirt/schemas/domain.rng |
1c850183 | 996 | %{_datadir}/libvirt/schemas/domainbackup.rng |
3958e395 | 997 | %{_datadir}/libvirt/schemas/domaincaps.rng |
1c850183 | 998 | %{_datadir}/libvirt/schemas/domaincheckpoint.rng |
423a0b96 JR |
999 | %{_datadir}/libvirt/schemas/domaincommon.rng |
1000 | %{_datadir}/libvirt/schemas/domainsnapshot.rng | |
1001 | %{_datadir}/libvirt/schemas/interface.rng | |
1002 | %{_datadir}/libvirt/schemas/network.rng | |
1003 | %{_datadir}/libvirt/schemas/networkcommon.rng | |
bf4e4e30 | 1004 | %{_datadir}/libvirt/schemas/networkport.rng |
423a0b96 JR |
1005 | %{_datadir}/libvirt/schemas/nodedev.rng |
1006 | %{_datadir}/libvirt/schemas/nwfilter.rng | |
c9fcc2fd JP |
1007 | %{_datadir}/libvirt/schemas/nwfilter_params.rng |
1008 | %{_datadir}/libvirt/schemas/nwfilterbinding.rng | |
423a0b96 | 1009 | %{_datadir}/libvirt/schemas/secret.rng |
521fc25f | 1010 | %{_datadir}/libvirt/schemas/storagecommon.rng |
423a0b96 | 1011 | %{_datadir}/libvirt/schemas/storagepool.rng |
549ba196 | 1012 | %{_datadir}/libvirt/schemas/storagepoolcaps.rng |
423a0b96 | 1013 | %{_datadir}/libvirt/schemas/storagevol.rng |
fb415d8b JB |
1014 | # for test driver (built into libvirt) |
1015 | %{_datadir}/libvirt/test-screenshot.png | |
423a0b96 JR |
1016 | |
1017 | %files utils | |
1018 | %defattr(644,root,root,755) | |
3e5ed185 JB |
1019 | |
1020 | %if %{with systemtap} | |
1021 | %files -n systemtap-libvirt | |
1022 | %defattr(644,root,root,755) | |
1023 | %{_datadir}/systemtap/tapset/libvirt_functions.stp | |
1024 | %{_datadir}/systemtap/tapset/libvirt_probes.stp | |
4238dfc2 | 1025 | %{?with_qemu:%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp} |
3e5ed185 | 1026 | %endif |
af7f943c JB |
1027 | |
1028 | %if %{with wireshark} | |
1029 | %files -n wireshark-libvirt | |
1030 | %defattr(644,root,root,755) | |
51dab576 | 1031 | %attr(755,root,root) %{_libdir}/wireshark/plugins/*/epan/libvirt.so |
af7f943c | 1032 | %endif |