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