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