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