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