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