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