]>
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 |
9c616e1f | 48 | Version: 8.8.0 |
e8aae7dd | 49 | Release: 1 |
148a9af3 | 50 | License: LGPL v2.1+ |
423a0b96 | 51 | Group: Libraries |
04ecdedc | 52 | Source0: https://libvirt.org/sources/%{name}-%{version}.tar.xz |
9c616e1f | 53 | # Source0-md5: c20121ef8c9297a982dd1f2e529159f3 |
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 |
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} |
9c616e1f | 117 | %{?with_libxl:BuildRequires: xen-devel >= 4.9} |
94462445 | 118 | # For disk driver |
7ce5923d | 119 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0 |
1c850183 | 120 | BuildRequires: yajl-devel >= 2.0.3 |
9c616e1f | 121 | Requires: curl-libs >= 7.19.1 |
1c850183 JB |
122 | Requires: cyrus-sasl-libs >= 2.1.26 |
123 | Requires: device-mapper-libs >= 1.0.0 | |
9c616e1f JB |
124 | Requires: glib2 >= 1:2.56.0 |
125 | Requires: gnutls-libs >= 3.6.0 | |
7ce5923d | 126 | Requires: libcap-ng >= 0.4.0 |
54247c34 | 127 | Requires: libnl >= 3.2 |
1c850183 | 128 | Requires: libpcap >= 1.5.0 |
fb415d8b | 129 | Requires: libselinux >= 2.5 |
9c616e1f | 130 | Requires: libssh >= 0.8.1 |
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 | 173 | Group: Applications/Shells |
9c616e1f | 174 | Requires: bash-completion >= 1: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 |
8b51fd22 | 290 | Provides: libvirt(hypervisor) |
94462445 | 291 | |
423a0b96 JR |
292 | %description daemon |
293 | Server side daemon required to manage the virtualization capabilities | |
294 | of recent versions of Linux. Requires a hypervisor specific sub-RPM | |
295 | for specific drivers. | |
296 | ||
cf4bec93 JB |
297 | %description daemon -l pl.UTF-8 |
298 | Demon działający po stronie serwera wymagany do zarządzania funkcjami | |
299 | wirtualizacji nowych wersji Linuksa. Wymaga podpakietu specyficznego | |
300 | dla hipernadzorcy. | |
301 | ||
fb415d8b JB |
302 | %package daemon-storage-gluster |
303 | Summary: Storage driver plugin for GlusterFS | |
304 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca GlusterFS | |
305 | Group: Libraries | |
306 | Requires: %{name}-daemon = %{version}-%{release} | |
307 | Requires: glusterfs-libs >= 3.4.1 | |
308 | ||
309 | %description daemon-storage-gluster | |
310 | Storage driver plugin for GlusterFS. | |
311 | ||
312 | %description daemon-storage-gluster -l pl.UTF-8 | |
313 | Wtyczka składowania danych wykorzystująca system plików GlusterFS. | |
314 | ||
315 | %package daemon-storage-rbd | |
316 | Summary: Storage driver plugin for Ceph RADOS Block Device | |
317 | Summary(pl.UTF-8): Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS (Ceph) | |
318 | Group: Libraries | |
319 | Requires: %{name}-daemon = %{version}-%{release} | |
320 | ||
321 | %description daemon-storage-rbd | |
322 | Storage driver plugin for Ceph RADOS Block Device. | |
323 | ||
324 | %description daemon-storage-rbd -l pl.UTF-8 | |
325 | Wtyczka składowania danych wykorzystująca urządzenie blokowe RADOS | |
326 | (system plików Ceph). | |
327 | ||
423a0b96 | 328 | %package daemon-libxl |
cf4bec93 JB |
329 | Summary: Server side driver required to run XEN guests (xenlight) |
330 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości XEN (xenlight) | |
331 | Group: Libraries | |
423a0b96 | 332 | Requires: %{name}-daemon = %{version}-%{release} |
9c616e1f | 333 | Requires: xen >= 4.9 |
423a0b96 | 334 | Provides: libvirt(hypervisor) |
be03a776 | 335 | Obsoletes: libvirt-daemon-xen < 4.3.0 |
423a0b96 JR |
336 | |
337 | %description daemon-libxl | |
cf4bec93 JB |
338 | Server side driver required to manage the virtualization capabilities |
339 | of XEN via xenlight interface. | |
340 | ||
341 | %description daemon-libxl -l pl.UTF-8 | |
342 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
343 | wirtualizacji XEN poprzez interfejs xenlight. | |
423a0b96 JR |
344 | |
345 | %package daemon-lxc | |
cf4bec93 JB |
346 | Summary: Server side driver required to run LXC guests |
347 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości LXC | |
348 | Group: Libraries | |
423a0b96 | 349 | Requires: %{name}-daemon = %{version}-%{release} |
9c616e1f | 350 | Requires: libfuse3 >= 3.1.0 |
423a0b96 JR |
351 | Provides: libvirt(hypervisor) |
352 | ||
353 | %description daemon-lxc | |
cf4bec93 JB |
354 | Server side driver required to manage the virtualization capabilities |
355 | of LXC. | |
356 | ||
357 | %description daemon-lxc -l pl.UTF-8 | |
358 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
359 | wirtualizacji LXC. | |
423a0b96 | 360 | |
423a0b96 | 361 | %package daemon-qemu |
cf4bec93 JB |
362 | Summary: Server side driver required to run QEMU guests |
363 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości QEMU | |
364 | Group: Libraries | |
423a0b96 JR |
365 | Requires: %{name}-daemon = %{version}-%{release} |
366 | Requires: /usr/bin/qemu-img | |
423a0b96 JR |
367 | Requires: bzip2 |
368 | Requires: gzip | |
369 | Requires: lzop | |
9c616e1f | 370 | Requires: qemu-system-x86 >= 4.2 |
423a0b96 JR |
371 | Requires: xz |
372 | Provides: libvirt(hypervisor) | |
373 | ||
374 | %description daemon-qemu | |
cf4bec93 JB |
375 | Server side driver required to manage the virtualization capabilities |
376 | of the QEMU emulators. | |
377 | ||
378 | %description daemon-qemu -l pl.UTF-8 | |
379 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
380 | wirtualizacji emulatora QEMU. | |
423a0b96 | 381 | |
1c850183 JB |
382 | %package daemon-vbox |
383 | Summary: Server side driver required to run VirtalBox guests | |
384 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości VirtalBox | |
385 | Group: Libraries | |
386 | Requires: %{name}-daemon = %{version}-%{release} | |
387 | Requires: VirtualBox >= 5.2 | |
388 | Provides: libvirt(hypervisor) | |
389 | ||
390 | %description daemon-vbox | |
391 | Server side driver required to manage the virtualization capabilities | |
392 | of VirtualBox. | |
393 | ||
394 | %description daemon-vbox -l pl.UTF-8 | |
395 | Sterownik wymagany po stronie serwera do zarządzania funkcjami | |
396 | wirtualizacji VirtualBoksa. | |
397 | ||
b040b949 JR |
398 | %package daemon-chd |
399 | Summary: Cloud Hypervisor server side driver | |
55844f4c | 400 | Summary(pl.UTF-8): Sterownik wymagany po stronie serwera do uruchamiania gości Cloud Hypervisor |
b040b949 JR |
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 | ||
55844f4c JB |
414 | %description daemon-chd -l pl.UTF-8 |
415 | Cloud Hypervisor to mający otwarte źródła monitor maszyn wirtualnych | |
416 | (VMM), działający powyżej KVM. Projekt skupia się wyłącznie na | |
417 | uruchamianiu nowoczesnych, chmurowych zadań na ograniczonym zbiorze | |
418 | architektur i platform sprzętowych. Zadania chmurowe to te, które | |
419 | zwykle są uruchamiane przez klientów u dostawców chmurowych. W tym | |
420 | przypadku oznacza to nowoczesne systemy operacyjne z większością | |
421 | we/wy obsługiwaną przez urządzenia parawirtualizowane (np. virtio), | |
422 | bez wymogu tradycyjnych urządzeń, oraz 64-bitowe procesory. | |
423 | ||
423a0b96 | 424 | %package client |
cf4bec93 JB |
425 | Summary: Client side utilities of the libvirt library |
426 | Summary(pl.UTF-8): Narzędzia klienckie do biblioteki libvirt | |
423a0b96 | 427 | Group: Applications/System |
423a0b96 | 428 | Requires(post): systemd-units |
8b51fd22 | 429 | Requires(post,preun): /sbin/chkconfig |
423a0b96 | 430 | Requires(postun): systemd-units |
8b51fd22 | 431 | Requires(preun): systemd-units |
1c850183 JB |
432 | Requires: %{name} = %{version}-%{release} |
433 | Requires: gettext >= 0.18.1.1-6 | |
9c616e1f | 434 | Requires: gnutls >= 3.6.0 |
1c850183 JB |
435 | Requires: netcat-openbsd |
436 | Requires: rc-scripts | |
423a0b96 JR |
437 | |
438 | %description client | |
cf4bec93 JB |
439 | Client binaries needed to access to the virtualization capabilities of |
440 | recent versions of Linux (and other OSes). | |
441 | ||
442 | %description client -l pl.UTF-8 | |
443 | Programy klienckie potrzebne do funkcji wirtualizacji nowych wersji | |
444 | Linuksa (oraz innych systemów operacyjnych). | |
423a0b96 JR |
445 | |
446 | %package utils | |
cf4bec93 JB |
447 | Summary: Tools to interact with virtualization capabilities (metapackage) |
448 | Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi (metapakiet) | |
423a0b96 JR |
449 | Group: Applications/System |
450 | Requires: %{name}-client = %{version}-%{release} | |
451 | Requires: %{name}-daemon = %{version}-%{release} | |
40e7715f | 452 | %{?with_libxl:Requires: %{name}-daemon-libxl = %{version}-%{release}} |
423a0b96 | 453 | Requires: %{name}-daemon-lxc = %{version}-%{release} |
423a0b96 | 454 | Requires: %{name}-daemon-qemu = %{version}-%{release} |
423a0b96 | 455 | |
94462445 ER |
456 | %description utils |
457 | Libvirt is a C toolkit to interact with the virtualization | |
458 | capabilities of recent versions of Linux. | |
459 | ||
cf4bec93 | 460 | This is metapackage gathering all tools for the libvirt library. |
94462445 | 461 | |
148a9af3 | 462 | %description utils -l pl.UTF-8 |
423a0b96 JR |
463 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
464 | obecnych wersji Linuksa. | |
148a9af3 | 465 | |
cf4bec93 JB |
466 | To jest metapakiet zbierający wszystkie narzędzia przeznaczone dla |
467 | biblioteki libvirt. | |
148a9af3 | 468 | |
3e5ed185 JB |
469 | %package -n systemtap-libvirt |
470 | Summary: systemtap/dtrace probes for libvirt | |
471 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla libvirt | |
472 | Group: Development/Tools | |
473 | Requires: %{name} = %{version}-%{release} | |
474 | Requires: systemtap-client | |
475 | ||
476 | %description -n systemtap-libvirt | |
477 | systemtap/dtrace probes for libvirt. | |
478 | ||
479 | %description -n systemtap-libvirt -l pl.UTF-8 | |
480 | Sondy systemtap/dtrace dla libvirt. | |
481 | ||
af7f943c JB |
482 | %package -n wireshark-libvirt |
483 | Summary: Wireshark dissector module for libvirt packets | |
484 | Summary(pl.UTF-8): Moduł sekcji Wiresharka do pakietów libvirt | |
485 | Group: Libraries | |
40a24f8b | 486 | Requires: wireshark >= 2.6.0 |
af7f943c JB |
487 | |
488 | %description -n wireshark-libvirt | |
489 | Wireshark dissector module for libvirt packets. | |
490 | ||
491 | %description -n wireshark-libvirt -l pl.UTF-8 | |
492 | Moduł sekcji Wiresharka do pakietów libvirt. | |
493 | ||
94462445 ER |
494 | %prep |
495 | %setup -q | |
be8dc440 | 496 | %patch0 -p1 |
1c850183 | 497 | %patch1 -p1 |
be8dc440 | 498 | %patch2 -p1 |
40a24f8b | 499 | %patch3 -p1 |
8357fab1 | 500 | %patch4 -p1 |
be8dc440 JK |
501 | %{?with_vserver:%patch5 -p1} |
502 | %patch6 -p1 | |
40a24f8b JB |
503 | |
504 | %if %{with static_libs} | |
505 | %{__sed} -i '/^libvirt\(_admin\|_lxc\|_qemu\)\?_lib = / s/shared_library/library/' src/meson.build | |
506 | %endif | |
5296d739 | 507 | |
94462445 | 508 | %build |
40a24f8b JB |
509 | %meson build \ |
510 | -Dbash_completion=enabled \ | |
511 | -Dbash_completion_dir=%{bash_compdir} \ | |
512 | %{!?with_esx:-Ddriver_esx=disabled} \ | |
513 | %{!?with_hyperv:-Ddriver_hyperv=disabled} \ | |
514 | %{!?with_libxl:-Ddriver_libxl=disabled} \ | |
515 | %{!?with_lxc:-Ddriver_lxc=disabled} \ | |
516 | %{!?with_openvz:-Ddriver_openvz=disabled} \ | |
517 | %{!?with_qemu:-Ddriver_qemu=disabled} \ | |
518 | %{!?with_vbox:-Ddriver_vbox=disabled} \ | |
519 | %{!?with_vmware:-Ddriver_vmware=disabled} \ | |
520 | %{!?with_systemtap:-Ddtrace=disabled} \ | |
521 | %{!?with_glusterfs:-Dglusterfs=disabled} \ | |
522 | -Dinit_script=systemd \ | |
523 | %{!?with_netcf:-Dnetcf=disabled} \ | |
524 | -Dpackager="PLD-Linux" \ | |
525 | -Dpackager_version="%{name}-%{version}-%{release}.%{_target_cpu}" \ | |
526 | %{!?with_polkit:-Dpolkit=disabled} \ | |
527 | -Dqemu_group=qemu \ | |
528 | -Dqemu_user=qemu \ | |
529 | -Drpath=disabled \ | |
530 | %{!?with_sanlock:-Dsanlock=disabled} \ | |
531 | %{!?with_glusterfs:-Dstorage_gluster=disabled} \ | |
532 | %{!?with_ceph:-Dstorage_rbd=disabled} \ | |
533 | %{?with_vbox:-Dvbox_xpcomc_dir=%{_libdir}/VirtualBox} \ | |
534 | %{!?with_wireshark:-Dwireshark_dissector=disabled} \ | |
535 | -Daugparse_path=/usr/bin/augparse \ | |
536 | -Ddmidecode_path=/usr/sbin/dmidecode \ | |
537 | -Ddnsmasq_path=/usr/sbin/dnsmasq \ | |
538 | -Debtables_path=/usr/sbin/ebtables \ | |
539 | -Dip_path=/sbin/ip \ | |
540 | -Dip6tables_path=/usr/sbin/ip6tables \ | |
541 | -Diptables_path=/usr/sbin/iptables \ | |
542 | -Discsiadm_path=/sbin/iscsiadm \ | |
543 | -Dlvchange_path=/sbin/lvchange \ | |
544 | -Dlvcreate_path=/sbin/lvcreate \ | |
545 | -Dlvremove_path=/sbin/lvremove \ | |
546 | -Dlvs_path=/sbin/lvs \ | |
547 | -Dmm_ctl_path=/usr/sbin/mm-ctl \ | |
548 | -Dmkfs_path=/sbin/mkfs \ | |
549 | -Dmodprobe_path=/sbin/modprobe \ | |
550 | -Dmount_path=/bin/mount \ | |
551 | -Dnumad_path=/usr/bin/numad \ | |
552 | -Dovs_vsctl_path=/usr/bin/ovs-vsctl \ | |
553 | -Dparted_path=/usr/sbin/parted \ | |
554 | -Dpvcreate_path=/sbin/pvcreate \ | |
555 | -Dpvremove_path=/sbin/pvremove \ | |
556 | -Dpvs_path=/sbin/pvs \ | |
557 | -Dqemu_bridge_path=%{_libexecdir}/qemu-bridge-helper \ | |
558 | -Dqemu_dbus_daemon_path=/usr/bin/dbus-daemon \ | |
559 | -Dqemu_pr_path=/usr/bin/qemu-pr-helper \ | |
560 | -Dradvd_path=/usr/sbin/radvd \ | |
561 | -Drmmod_path=/sbin/rmmod \ | |
562 | -Dscrub_path=/usr/bin/scrub \ | |
40a24f8b JB |
563 | -Dshowmount_path=/usr/sbin/showmount \ |
564 | -Dtc_path=/sbin/tc \ | |
565 | -Dudevadm_path=/sbin/udevadm \ | |
566 | -Dumount_path=/bin/umount \ | |
567 | -Dvgchange_path=/sbin/vgchange \ | |
568 | -Dvgcreate_path=/sbin/vgcreate \ | |
569 | -Dvgremove_path=/sbin/vgremove \ | |
570 | -Dvgscan_path=/sbin/vgscan \ | |
571 | -Dvgs_path=/sbin/vgs \ | |
572 | -Dzfs_path=/usr/sbin/zfs \ | |
573 | -Dzpool_path=/usr/sbin/zpool | |
574 | ||
575 | # TODO: package and update paths | |
576 | # -Dmdevctl_path=??? | |
577 | # -Dpdwtags=??? | |
578 | # -Dqemu_slirp_path=???/slirp-helper | |
579 | # -Dvstorage_path=???/vstorage | |
580 | # -Dvstorage_mount_path=???/vstorage-mount | |
581 | ||
582 | %ninja_build -C build | |
94462445 ER |
583 | |
584 | %install | |
585 | rm -rf $RPM_BUILD_ROOT | |
663e5db6 | 586 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d \ |
423a0b96 | 587 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
ed4dd5b7 | 588 | |
40a24f8b | 589 | %ninja_install -C build |
94462445 | 590 | |
96de3a81 ER |
591 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd |
592 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
e285e5e5 | 593 | |
94462445 ER |
594 | %find_lang %{name} |
595 | ||
596 | %clean | |
597 | rm -rf $RPM_BUILD_ROOT | |
598 | ||
5296d739 JB |
599 | %post -p /sbin/ldconfig |
600 | %postun -p /sbin/ldconfig | |
94462445 | 601 | |
423a0b96 | 602 | %post daemon |
8b51fd22 ER |
603 | /sbin/chkconfig --add libvirtd |
604 | %service libvirtd restart | |
bf949ec1 | 605 | %systemd_post libvirtd.service |
423a0b96 JR |
606 | |
607 | %preun daemon | |
8b51fd22 ER |
608 | if [ "$1" = "0" ]; then |
609 | %service -q libvirtd stop | |
610 | /sbin/chkconfig --del libvirtd | |
611 | fi | |
423a0b96 JR |
612 | %systemd_preun libvirtd.service |
613 | ||
614 | %postun daemon | |
615 | %systemd_reload | |
616 | ||
617 | %post client | |
8b51fd22 ER |
618 | /sbin/chkconfig --add libvirt-guests |
619 | %service -n libvirt-guests restart | |
bf949ec1 JR |
620 | NORESTART=1 |
621 | %systemd_post libvirt-guests.service | |
622 | ||
423a0b96 | 623 | %preun client |
bf949ec1 | 624 | %systemd_preun libvirt-guests.service |
8b51fd22 ER |
625 | if [ "$1" = "0" ]; then |
626 | %service -q libvirt-guests stop | |
627 | /sbin/chkconfig --del libvirt-guests | |
628 | fi | |
bf949ec1 | 629 | |
423a0b96 | 630 | %postun client |
bf949ec1 JR |
631 | %systemd_reload |
632 | ||
94462445 ER |
633 | %files -f %{name}.lang |
634 | %defattr(644,root,root,755) | |
40a24f8b | 635 | %doc AUTHORS.rst NEWS.rst README.rst |
cf4bec93 | 636 | %dir %{_sysconfdir}/libvirt |
423a0b96 | 637 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf |
5296d739 JB |
638 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* |
639 | %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 | |
b2ff1d91 JB |
640 | %attr(755,root,root) %{_libdir}/libvirt-admin.so.*.*.* |
641 | %attr(755,root,root) %ghost %{_libdir}/libvirt-admin.so.0 | |
bf7aa31b JB |
642 | %if %{with lxc} |
643 | %attr(755,root,root) %{_libdir}/libvirt-lxc.so.*.*.* | |
644 | %attr(755,root,root) %ghost %{_libdir}/libvirt-lxc.so.0 | |
645 | %endif | |
5296d739 JB |
646 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* |
647 | %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 | |
fb415d8b JB |
648 | |
649 | # NSS modules | |
650 | %attr(755,root,root) %{_libdir}/libnss_libvirt.so.2 | |
651 | %attr(755,root,root) %{_libdir}/libnss_libvirt_guest.so.2 | |
bf7aa31b | 652 | |
423a0b96 | 653 | %dir %{_libdir}/libvirt |
c47719f5 | 654 | %dir %{_datadir}/libvirt |
3ac3cd0c | 655 | |
842a4333 JP |
656 | %files -n bash-completion-%{name} |
657 | %defattr(644,root,root,755) | |
1c850183 JB |
658 | %{bash_compdir}/virsh |
659 | %{bash_compdir}/virt-admin | |
842a4333 | 660 | |
94462445 ER |
661 | %files devel |
662 | %defattr(644,root,root,755) | |
5296d739 | 663 | %attr(755,root,root) %{_libdir}/libvirt.so |
b2ff1d91 | 664 | %attr(755,root,root) %{_libdir}/libvirt-admin.so |
bf7aa31b | 665 | %{?with_lxc:%attr(755,root,root) %{_libdir}/libvirt-lxc.so} |
b842fe72 | 666 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so |
f4fa2857 | 667 | %{_datadir}/%{name}/api |
5296d739 | 668 | %{_includedir}/%{name} |
771a9acb | 669 | %{_pkgconfigdir}/libvirt.pc |
c25279f9 | 670 | %{_pkgconfigdir}/libvirt-admin.pc |
771a9acb | 671 | %{?with_lxc:%{_pkgconfigdir}/libvirt-lxc.pc} |
b842fe72 | 672 | %{_pkgconfigdir}/libvirt-qemu.pc |
fb415d8b JB |
673 | %{_mandir}/man7/virkeycode-*.7* |
674 | %{_mandir}/man7/virkeyname-*.7* | |
94462445 | 675 | |
7b850baf | 676 | %if %{with static_libs} |
94462445 ER |
677 | %files static |
678 | %defattr(644,root,root,755) | |
5296d739 | 679 | %{_libdir}/libvirt.a |
bf7aa31b | 680 | %{?with_lxc:%{_libdir}/libvirt-lxc.a} |
b842fe72 | 681 | %{_libdir}/libvirt-qemu.a |
7b850baf | 682 | %endif |
94462445 | 683 | |
1c850183 JB |
684 | %files doc |
685 | %defattr(644,root,root,755) | |
686 | %dir %{_docdir}/libvirt | |
687 | %{_docdir}/libvirt/examples | |
688 | %{_docdir}/libvirt/html | |
689 | ||
cf4bec93 JB |
690 | %if %{with sanlock} |
691 | %files lock-sanlock | |
692 | %defattr(644,root,root,755) | |
693 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
cf5c6c57 | 694 | %attr(755,root,root) %{_libexecdir}/libvirt_sanlock_helper |
cf4bec93 JB |
695 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so |
696 | %{_datadir}/augeas/lenses/libvirt_sanlock.aug | |
fef7eb20 | 697 | %if %{with qemu} |
cf4bec93 | 698 | %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug |
fef7eb20 | 699 | %endif |
cf4bec93 JB |
700 | %dir /var/lib/libvirt/sanlock |
701 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
cf4bec93 JB |
702 | %endif |
703 | ||
423a0b96 | 704 | %files daemon |
94462445 | 705 | %defattr(644,root,root,755) |
9c616e1f JB |
706 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/abstractions/libvirt-lxc |
707 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/abstractions/libvirt-qemu | |
708 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/libvirt | |
709 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/local/usr.lib.libvirt.virt-aa-helper | |
710 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.lib.libvirt.virt-aa-helper | |
711 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.sbin.libvirtd | |
712 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.sbin.virtqemud | |
713 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor.d/usr.sbin.virtxend | |
1c850183 | 714 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt-admin.conf |
423a0b96 | 715 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf |
1c850183 | 716 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtinterfaced.conf |
62e11f33 | 717 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlockd.conf |
c25279f9 | 718 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlogd.conf |
1c850183 JB |
719 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnetworkd.conf |
720 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnodedevd.conf | |
721 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtnwfilterd.conf | |
722 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtproxyd.conf | |
723 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtsecretd.conf | |
724 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtstoraged.conf | |
725 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu | |
726 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks | |
423a0b96 | 727 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml |
1c850183 | 728 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart |
423a0b96 | 729 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml |
1c850183 | 730 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter |
423a0b96 | 731 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml |
72b1baa0 | 732 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf |
1c850183 | 733 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd |
bf949ec1 | 734 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd |
bf949ec1 | 735 | %{systemdunitdir}/libvirtd.service |
538e1954 JP |
736 | %{systemdunitdir}/libvirtd.socket |
737 | %{systemdunitdir}/libvirtd-admin.socket | |
738 | %{systemdunitdir}/libvirtd-ro.socket | |
739 | %{systemdunitdir}/libvirtd-tcp.socket | |
740 | %{systemdunitdir}/libvirtd-tls.socket | |
2114e9b8 | 741 | %{systemdunitdir}/virt-guest-shutdown.target |
1c850183 JB |
742 | %{systemdunitdir}/virtinterfaced.service |
743 | %{systemdunitdir}/virtinterfaced.socket | |
744 | %{systemdunitdir}/virtinterfaced-admin.socket | |
745 | %{systemdunitdir}/virtinterfaced-ro.socket | |
4ef34a20 JB |
746 | %{systemdunitdir}/virtlockd.service |
747 | %{systemdunitdir}/virtlockd.socket | |
a7243fbe | 748 | %{systemdunitdir}/virtlockd-admin.socket |
c25279f9 MM |
749 | %{systemdunitdir}/virtlogd.service |
750 | %{systemdunitdir}/virtlogd.socket | |
a7243fbe | 751 | %{systemdunitdir}/virtlogd-admin.socket |
1c850183 JB |
752 | %{systemdunitdir}/virtnetworkd.service |
753 | %{systemdunitdir}/virtnetworkd.socket | |
754 | %{systemdunitdir}/virtnetworkd-admin.socket | |
755 | %{systemdunitdir}/virtnetworkd-ro.socket | |
756 | %{systemdunitdir}/virtnodedevd.service | |
757 | %{systemdunitdir}/virtnodedevd.socket | |
758 | %{systemdunitdir}/virtnodedevd-admin.socket | |
759 | %{systemdunitdir}/virtnodedevd-ro.socket | |
760 | %{systemdunitdir}/virtnwfilterd.service | |
761 | %{systemdunitdir}/virtnwfilterd.socket | |
762 | %{systemdunitdir}/virtnwfilterd-admin.socket | |
763 | %{systemdunitdir}/virtnwfilterd-ro.socket | |
764 | %{systemdunitdir}/virtproxyd.service | |
765 | %{systemdunitdir}/virtproxyd.socket | |
766 | %{systemdunitdir}/virtproxyd-admin.socket | |
767 | %{systemdunitdir}/virtproxyd-ro.socket | |
768 | %{systemdunitdir}/virtproxyd-tcp.socket | |
769 | %{systemdunitdir}/virtproxyd-tls.socket | |
770 | %{systemdunitdir}/virtsecretd.service | |
771 | %{systemdunitdir}/virtsecretd.socket | |
772 | %{systemdunitdir}/virtsecretd-admin.socket | |
773 | %{systemdunitdir}/virtsecretd-ro.socket | |
774 | %{systemdunitdir}/virtstoraged.service | |
775 | %{systemdunitdir}/virtstoraged.socket | |
776 | %{systemdunitdir}/virtstoraged-admin.socket | |
777 | %{systemdunitdir}/virtstoraged-ro.socket | |
9e91fdad | 778 | %config(noreplace) %verify(not md5 mtime size) /usr/lib/sysctl.d/60-libvirtd.conf |
423a0b96 | 779 | %attr(755,root,root) %{_sbindir}/libvirtd |
1c850183 | 780 | %attr(755,root,root) %{_sbindir}/virtinterfaced |
4ef34a20 | 781 | %attr(755,root,root) %{_sbindir}/virtlockd |
c25279f9 | 782 | %attr(755,root,root) %{_sbindir}/virtlogd |
1c850183 JB |
783 | %attr(755,root,root) %{_sbindir}/virtnetworkd |
784 | %attr(755,root,root) %{_sbindir}/virtnodedevd | |
785 | %attr(755,root,root) %{_sbindir}/virtnwfilterd | |
786 | %attr(755,root,root) %{_sbindir}/virtproxyd | |
787 | %attr(755,root,root) %{_sbindir}/virtsecretd | |
788 | %attr(755,root,root) %{_sbindir}/virtstoraged | |
789 | %attr(755,root,root) %{_libexecdir}/libvirt_iohelper | |
790 | %attr(755,root,root) %{_libexecdir}/libvirt_leaseshelper | |
791 | %attr(755,root,root) %{_libexecdir}/libvirt_parthelper | |
792 | %attr(755,root,root) %{_libexecdir}/virt-aa-helper | |
793 | # TODO: | |
794 | #%{_libdir}/firewalld/zones/libvirt.xml | |
795 | %dir %{_libdir}/libvirt/connection-driver | |
728328ae | 796 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so |
1c850183 JB |
797 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so |
798 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so | |
799 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so | |
800 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so | |
801 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so | |
802 | %dir %{_libdir}/libvirt/lock-driver | |
803 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so | |
804 | %dir %{_libdir}/libvirt/storage-backend | |
805 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_disk.so | |
806 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_fs.so | |
807 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi.so | |
808 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi-direct.so | |
809 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_logical.so | |
810 | # mpath requires libdevmapper, but libvirt itself requires it too | |
811 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_mpath.so | |
812 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_scsi.so | |
b040b949 | 813 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_vstorage.so |
1c850183 JB |
814 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_zfs.so |
815 | %dir %{_libdir}/libvirt/storage-file | |
816 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_fs.so | |
423a0b96 | 817 | %{_datadir}/augeas/lenses/libvirtd.aug |
4ef34a20 | 818 | %{_datadir}/augeas/lenses/libvirt_lockd.aug |
1c850183 | 819 | %{_datadir}/augeas/lenses/virtinterfaced.aug |
62e11f33 | 820 | %{_datadir}/augeas/lenses/virtlockd.aug |
c25279f9 | 821 | %{_datadir}/augeas/lenses/virtlogd.aug |
1c850183 JB |
822 | %{_datadir}/augeas/lenses/virtnetworkd.aug |
823 | %{_datadir}/augeas/lenses/virtnodedevd.aug | |
824 | %{_datadir}/augeas/lenses/virtnwfilterd.aug | |
825 | %{_datadir}/augeas/lenses/virtproxyd.aug | |
826 | %{_datadir}/augeas/lenses/virtsecretd.aug | |
827 | %{_datadir}/augeas/lenses/virtstoraged.aug | |
423a0b96 | 828 | %{_datadir}/augeas/lenses/tests/test_libvirtd.aug |
1c850183 | 829 | %{_datadir}/augeas/lenses/tests/test_virtinterfaced.aug |
62e11f33 | 830 | %{_datadir}/augeas/lenses/tests/test_virtlockd.aug |
c25279f9 | 831 | %{_datadir}/augeas/lenses/tests/test_virtlogd.aug |
1c850183 JB |
832 | %{_datadir}/augeas/lenses/tests/test_virtnetworkd.aug |
833 | %{_datadir}/augeas/lenses/tests/test_virtnodedevd.aug | |
834 | %{_datadir}/augeas/lenses/tests/test_virtnwfilterd.aug | |
835 | %{_datadir}/augeas/lenses/tests/test_virtproxyd.aug | |
836 | %{_datadir}/augeas/lenses/tests/test_virtsecretd.aug | |
837 | %{_datadir}/augeas/lenses/tests/test_virtstoraged.aug | |
838 | %{_datadir}/libvirt/cpu_map | |
3e5ed185 JB |
839 | %if %{with polkit} |
840 | %{_datadir}/polkit-1/actions/org.libvirt.api.policy | |
841 | %{_datadir}/polkit-1/actions/org.libvirt.unix.policy | |
9e91fdad | 842 | %{_datadir}/polkit-1/rules.d/50-libvirt.rules |
3e5ed185 | 843 | %endif |
e4177f0c | 844 | %{_mandir}/man8/libvirtd.8* |
62e11f33 | 845 | %{_mandir}/man8/virtlockd.8* |
c25279f9 | 846 | %{_mandir}/man8/virtlogd.8* |
b040b949 JR |
847 | %{_mandir}/man8/virtinterfaced.8* |
848 | %{_mandir}/man8/virtnetworkd.8* | |
849 | %{_mandir}/man8/virtnodedevd.8* | |
850 | %{_mandir}/man8/virtnwfilterd.8* | |
851 | %{_mandir}/man8/virtproxyd.8* | |
852 | %{_mandir}/man8/virtsecretd.8* | |
853 | %{_mandir}/man8/virtstoraged.8* | |
d5a575f6 | 854 | %dir /var/lib/libvirt |
621ed3d1 | 855 | %dir /var/lib/libvirt/dnsmasq |
423a0b96 | 856 | %attr(711,root,root) %dir /var/lib/libvirt/boot |
621ed3d1 | 857 | %attr(700,root,root) %dir /var/lib/libvirt/network |
423a0b96 JR |
858 | %attr(711,root,root) %dir /var/lib/libvirt/images |
859 | %attr(711,root,root) %dir /var/lib/libvirt/filesystems | |
860 | %attr(700,root,root) %dir /var/log/libvirt | |
861 | %attr(711,root,root) %dir /var/cache/libvirt | |
621ed3d1 | 862 | %dir /var/run/libvirt |
423a0b96 JR |
863 | %dir /var/run/libvirt/network |
864 | %{systemdtmpfilesdir}/%{name}.conf | |
fb415d8b JB |
865 | |
866 | %if %{with glusterfs} | |
867 | %files daemon-storage-gluster | |
868 | %defattr(644,root,root,755) | |
869 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so | |
c9fcc2fd | 870 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_gluster.so |
fb415d8b JB |
871 | %endif |
872 | ||
873 | %if %{with ceph} | |
874 | %files daemon-storage-rbd | |
875 | %defattr(644,root,root,755) | |
876 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_rbd.so | |
877 | %endif | |
423a0b96 | 878 | |
eae1555f | 879 | %if %{with libxl} |
423a0b96 JR |
880 | %files daemon-libxl |
881 | %defattr(644,root,root,755) | |
9e91fdad JB |
882 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl.conf |
883 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-lockd.conf | |
884 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-sanlock.conf} | |
1c850183 | 885 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtxend.conf |
9e91fdad | 886 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.libxl |
1c850183 JB |
887 | %{systemdunitdir}/virtxend.service |
888 | %{systemdunitdir}/virtxend.socket | |
889 | %{systemdunitdir}/virtxend-admin.socket | |
890 | %{systemdunitdir}/virtxend-ro.socket | |
891 | %attr(755,root,root) %{_sbindir}/virtxend | |
273917b1 | 892 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so |
9e91fdad | 893 | %{_datadir}/augeas/lenses/libvirtd_libxl.aug |
1c850183 | 894 | %{_datadir}/augeas/lenses/virtxend.aug |
9e91fdad | 895 | %{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug |
1c850183 | 896 | %{_datadir}/augeas/lenses/tests/test_virtxend.aug |
423a0b96 JR |
897 | %attr(700,root,root) %dir /var/lib/libvirt/libxl |
898 | %attr(700,root,root) %dir /var/run/libvirt/libxl | |
899 | %attr(700,root,root) %dir /var/log/libvirt/libxl | |
b040b949 | 900 | %{_mandir}/man8/virtxend.8* |
423a0b96 JR |
901 | %endif |
902 | ||
eae1555f | 903 | %if %{with lxc} |
423a0b96 JR |
904 | %files daemon-lxc |
905 | %defattr(644,root,root,755) | |
906 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf | |
1c850183 | 907 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlxcd.conf |
423a0b96 | 908 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc |
1c850183 JB |
909 | %{systemdunitdir}/virtlxcd.service |
910 | %{systemdunitdir}/virtlxcd.socket | |
911 | %{systemdunitdir}/virtlxcd-admin.socket | |
912 | %{systemdunitdir}/virtlxcd-ro.socket | |
913 | %attr(755,root,root) %{_sbindir}/virtlxcd | |
914 | %attr(755,root,root) %{_libexecdir}/libvirt_lxc | |
915 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so | |
916 | %{_datadir}/augeas/lenses/libvirtd_lxc.aug | |
917 | %{_datadir}/augeas/lenses/virtlxcd.aug | |
918 | %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug | |
919 | %{_datadir}/augeas/lenses/tests/test_virtlxcd.aug | |
423a0b96 | 920 | %attr(700,root,root) %dir /var/lib/libvirt/lxc |
621ed3d1 | 921 | %attr(700,root,root) %dir /var/run/libvirt/lxc |
423a0b96 | 922 | %attr(700,root,root) %dir /var/log/libvirt/lxc |
b040b949 | 923 | %{_mandir}/man8/virtlxcd.8* |
423a0b96 JR |
924 | %endif |
925 | ||
621ed3d1 | 926 | %if %{with qemu} |
423a0b96 JR |
927 | %files daemon-qemu |
928 | %defattr(644,root,root,755) | |
1c850183 | 929 | %attr(755,root,root) %{_bindir}/virt-qemu-run |
423a0b96 | 930 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf |
9e91fdad | 931 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-lockd.conf |
1c850183 | 932 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtqemud.conf |
9e91fdad | 933 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf} |
423a0b96 | 934 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu |
1c850183 JB |
935 | %{systemdunitdir}/virtqemud.service |
936 | %{systemdunitdir}/virtqemud.socket | |
937 | %{systemdunitdir}/virtqemud-admin.socket | |
938 | %{systemdunitdir}/virtqemud-ro.socket | |
939 | %attr(755,root,root) %{_sbindir}/virtqemud | |
940 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so | |
941 | %{_datadir}/augeas/lenses/libvirtd_qemu.aug | |
942 | %{_datadir}/augeas/lenses/virtqemud.aug | |
943 | %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug | |
944 | %{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug | |
945 | %{_datadir}/augeas/lenses/tests/test_virtqemud.aug | |
946 | %{_mandir}/man1/virt-qemu-run.1* | |
423a0b96 JR |
947 | %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu |
948 | %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu | |
621ed3d1 JB |
949 | %attr(700,root,root) %dir /var/log/libvirt/qemu |
950 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
04ecdedc | 951 | %{_prefix}/lib/sysctl.d/60-qemu-postcopy-migration.conf |
b040b949 | 952 | %{_mandir}/man8/virtqemud.8* |
1c850183 JB |
953 | %endif |
954 | ||
955 | %if %{with vbox} | |
956 | %files daemon-vbox | |
957 | %defattr(644,root,root,755) | |
958 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtvboxd.conf | |
1c850183 JB |
959 | %{systemdunitdir}/virtvboxd.service |
960 | %{systemdunitdir}/virtvboxd.socket | |
961 | %{systemdunitdir}/virtvboxd-admin.socket | |
962 | %{systemdunitdir}/virtvboxd-ro.socket | |
963 | %attr(755,root,root) %{_sbindir}/virtvboxd | |
964 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so | |
965 | %{_datadir}/augeas/lenses/virtvboxd.aug | |
966 | %{_datadir}/augeas/lenses/tests/test_virtvboxd.aug | |
b040b949 | 967 | %{_mandir}/man8/virtvboxd.8* |
423a0b96 JR |
968 | %endif |
969 | ||
1dff3987 | 970 | %ifnarch %{ix86} |
b040b949 JR |
971 | %files daemon-chd |
972 | %defattr(644,root,root,755) | |
973 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtchd.conf | |
974 | %{systemdunitdir}/virtchd.service | |
975 | %{systemdunitdir}/virtchd.socket | |
976 | %{systemdunitdir}/virtchd-admin.socket | |
977 | %{systemdunitdir}/virtchd-ro.socket | |
978 | %attr(755,root,root) %{_sbindir}/virtchd | |
979 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_ch.so | |
980 | %{_datadir}/augeas/lenses/virtchd.aug | |
981 | %{_datadir}/augeas/lenses/tests/test_virtchd.aug | |
1dff3987 | 982 | %endif |
b040b949 | 983 | |
423a0b96 JR |
984 | %files client |
985 | %defattr(644,root,root,755) | |
04ecdedc | 986 | %{systemdunitdir}/libvirt-guests.service |
62e11f33 | 987 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virt-login-shell.conf |
423a0b96 | 988 | %attr(755,root,root) %{_bindir}/virsh |
c25279f9 | 989 | %attr(755,root,root) %{_bindir}/virt-admin |
423a0b96 | 990 | %attr(755,root,root) %{_bindir}/virt-host-validate |
1c850183 | 991 | # TODO: %attr(4754,root,virtlogin) and virtlogin group to access binary |
62e11f33 | 992 | %attr(4755,root,root) %{_bindir}/virt-login-shell |
423a0b96 | 993 | %attr(755,root,root) %{_bindir}/virt-xml-validate |
b040b949 | 994 | %attr(755,root,root) %{_bindir}/virt-pki-query-dn |
423a0b96 | 995 | %attr(755,root,root) %{_bindir}/virt-pki-validate |
40a24f8b | 996 | %attr(755,root,root) %{_bindir}/virt-ssh-helper |
4ef34a20 | 997 | %attr(754,root,root) %{_libexecdir}/libvirt-guests.sh |
1c850183 | 998 | %attr(754,root,root) %{_libexecdir}/virt-login-shell-helper |
423a0b96 | 999 | %{_mandir}/man1/virsh.1* |
c25279f9 | 1000 | %{_mandir}/man1/virt-admin.1* |
423a0b96 | 1001 | %{_mandir}/man1/virt-host-validate.1* |
62e11f33 | 1002 | %{_mandir}/man1/virt-login-shell.1* |
423a0b96 | 1003 | %{_mandir}/man1/virt-xml-validate.1* |
b040b949 | 1004 | %{_mandir}/man1/virt-pki-query-dn.1* |
423a0b96 | 1005 | %{_mandir}/man1/virt-pki-validate.1* |
b040b949 JR |
1006 | %{_mandir}/man8/libvirt-guests.8* |
1007 | %{_mandir}/man8/virt-ssh-helper.8* | |
423a0b96 JR |
1008 | %dir %{_datadir}/libvirt/schemas |
1009 | %{_datadir}/libvirt/schemas/basictypes.rng | |
1010 | %{_datadir}/libvirt/schemas/capability.rng | |
40a24f8b | 1011 | %{_datadir}/libvirt/schemas/cpu.rng |
2114e9b8 | 1012 | %{_datadir}/libvirt/schemas/cputypes.rng |
423a0b96 | 1013 | %{_datadir}/libvirt/schemas/domain.rng |
1c850183 | 1014 | %{_datadir}/libvirt/schemas/domainbackup.rng |
3958e395 | 1015 | %{_datadir}/libvirt/schemas/domaincaps.rng |
1c850183 | 1016 | %{_datadir}/libvirt/schemas/domaincheckpoint.rng |
423a0b96 | 1017 | %{_datadir}/libvirt/schemas/domaincommon.rng |
9c616e1f | 1018 | %{_datadir}/libvirt/schemas/domainoverrides.rng |
423a0b96 | 1019 | %{_datadir}/libvirt/schemas/domainsnapshot.rng |
9c616e1f | 1020 | %{_datadir}/libvirt/schemas/inactiveDomain.rng |
423a0b96 JR |
1021 | %{_datadir}/libvirt/schemas/interface.rng |
1022 | %{_datadir}/libvirt/schemas/network.rng | |
1023 | %{_datadir}/libvirt/schemas/networkcommon.rng | |
bf4e4e30 | 1024 | %{_datadir}/libvirt/schemas/networkport.rng |
423a0b96 JR |
1025 | %{_datadir}/libvirt/schemas/nodedev.rng |
1026 | %{_datadir}/libvirt/schemas/nwfilter.rng | |
c9fcc2fd JP |
1027 | %{_datadir}/libvirt/schemas/nwfilter_params.rng |
1028 | %{_datadir}/libvirt/schemas/nwfilterbinding.rng | |
423a0b96 | 1029 | %{_datadir}/libvirt/schemas/secret.rng |
521fc25f | 1030 | %{_datadir}/libvirt/schemas/storagecommon.rng |
423a0b96 | 1031 | %{_datadir}/libvirt/schemas/storagepool.rng |
549ba196 | 1032 | %{_datadir}/libvirt/schemas/storagepoolcaps.rng |
423a0b96 | 1033 | %{_datadir}/libvirt/schemas/storagevol.rng |
fb415d8b JB |
1034 | # for test driver (built into libvirt) |
1035 | %{_datadir}/libvirt/test-screenshot.png | |
423a0b96 JR |
1036 | |
1037 | %files utils | |
1038 | %defattr(644,root,root,755) | |
3e5ed185 JB |
1039 | |
1040 | %if %{with systemtap} | |
1041 | %files -n systemtap-libvirt | |
1042 | %defattr(644,root,root,755) | |
1043 | %{_datadir}/systemtap/tapset/libvirt_functions.stp | |
1044 | %{_datadir}/systemtap/tapset/libvirt_probes.stp | |
4238dfc2 | 1045 | %{?with_qemu:%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp} |
3e5ed185 | 1046 | %endif |
af7f943c JB |
1047 | |
1048 | %if %{with wireshark} | |
1049 | %files -n wireshark-libvirt | |
1050 | %defattr(644,root,root,755) | |
51dab576 | 1051 | %attr(755,root,root) %{_libdir}/wireshark/plugins/*/epan/libvirt.so |
af7f943c | 1052 | %endif |