]>
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 vbox # VirtualBox support |
17 | %bcond_without vmware # VMware Workstation/Player support | |
eb319e62 | 18 | %bcond_with vserver # Support for Linux-VServer guests |
6865448d | 19 | %bcond_without xenapi # Xen API (Citrix XenServer) support |
af7f943c JB |
20 | # - storage |
21 | %bcond_without ceph # RADOS BD (Ceph) storage support | |
22 | %bcond_without glusterfs # GlusterFS storage support | |
23 | # - storage locking | |
24 | %bcond_without sanlock # sanlock storage lock manager | |
25 | # - other | |
26 | %bcond_without netcf # host interfaces support | |
27 | %bcond_without polkit # PolicyKit support | |
28 | %bcond_without systemtap # systemtap/dtrace probes | |
29 | %bcond_without wireshark # wireshark dissector module | |
c4db1ab9 | 30 | %bcond_without static_libs # static libraries build |
94462445 | 31 | |
148a9af3 JB |
32 | # qemu available only on x86 and ppc |
33 | %ifnarch %{ix86} %{x8664} ppc | |
34 | %undefine with_qemu | |
35 | %endif | |
96de3a81 | 36 | |
bc484957 | 37 | # Xen is available only on x86 and ia64 |
94462445 | 38 | %ifnarch %{ix86} %{x8664} ia64 |
5c892098 JR |
39 | %undefine with_xenapi |
40 | %undefine with_libxl | |
94462445 | 41 | %endif |
6d974b69 | 42 | |
94462445 | 43 | Summary: Toolkit to interact with virtualization capabilities |
148a9af3 | 44 | Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji |
94462445 | 45 | Name: libvirt |
51dab576 | 46 | Version: 5.1.0 |
73f27cf5 | 47 | Release: 2 |
148a9af3 | 48 | License: LGPL v2.1+ |
423a0b96 | 49 | Group: Libraries |
c25279f9 | 50 | Source0: http://libvirt.org/sources/libvirt-%{version}.tar.xz |
51dab576 | 51 | # Source0-md5: 74c6c2e90ca9c94d9255eec338615a0c |
e285e5e5 | 52 | Source1: %{name}.init |
ed4dd5b7 | 53 | Source2: %{name}.tmpfiles |
5296d739 | 54 | Patch0: %{name}-sasl.patch |
423a0b96 | 55 | Patch2: %{name}-qemu-acl.patch |
be8dc440 JK |
56 | Patch3: virtlockd.init.patch |
57 | Patch4: %{name}-udevadm-settle.patch | |
58 | Patch5: vserver.patch | |
59 | Patch6: bashisms.patch | |
60 | Patch7: %{name}-guests.init.patch | |
5296d739 | 61 | URL: http://www.libvirt.org/ |
fb415d8b JB |
62 | BuildRequires: acl-devel |
63 | BuildRequires: attr-devel | |
7ce5923d | 64 | BuildRequires: audit-libs-devel |
fa080175 | 65 | BuildRequires: augeas-devel |
148a9af3 | 66 | BuildRequires: autoconf >= 2.50 |
69187f5d | 67 | BuildRequires: automake |
4e034fd2 | 68 | BuildRequires: avahi-devel >= 0.6.0 |
9e13efd7 | 69 | BuildRequires: bash-completion >= 2.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 |
7ce5923d JB |
112 | Requires: curl-libs >= 7.18.0 |
113 | Requires: device-mapper >= 1.0.0 | |
7ce5923d | 114 | Requires: libcap-ng >= 0.4.0 |
54247c34 | 115 | Requires: libnl >= 3.2 |
7ce5923d | 116 | Requires: libpcap >= 1.0.0 |
fb415d8b JB |
117 | Requires: libselinux >= 2.5 |
118 | Requires: libssh >= 0.7 | |
e9ea35db | 119 | Requires: libssh2 >= 1.3 |
7ce5923d | 120 | Requires: libxml2 >= 1:2.6.0 |
b842fe72 | 121 | %{?with_hyperv:Requires: openwsman-libs >= 2.2.3} |
bf3e9ac8 JB |
122 | Obsoletes: libvirt-daemon-esx |
123 | Obsoletes: libvirt-daemon-hyperv | |
124 | Obsoletes: libvirt-daemon-openvz | |
125 | Obsoletes: libvirt-daemon-phyp | |
af9d78d5 | 126 | Obsoletes: libvirt-daemon-uml |
bf3e9ac8 JB |
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 | 368 | |
423a0b96 | 369 | %package client |
cf4bec93 JB |
370 | Summary: Client side utilities of the libvirt library |
371 | Summary(pl.UTF-8): Narzędzia klienckie do biblioteki libvirt | |
423a0b96 | 372 | Group: Applications/System |
62e11f33 | 373 | Requires: %{name} = %{version}-%{release} |
423a0b96 | 374 | Requires: gettext >= 0.18.1.1-6 |
fb415d8b | 375 | Requires: gnutls >= 2.2.0 |
423a0b96 | 376 | Requires: netcat-openbsd |
8b51fd22 | 377 | Requires: rc-scripts |
423a0b96 | 378 | Requires(post): systemd-units |
8b51fd22 | 379 | Requires(post,preun): /sbin/chkconfig |
423a0b96 | 380 | Requires(postun): systemd-units |
8b51fd22 | 381 | Requires(preun): systemd-units |
423a0b96 JR |
382 | |
383 | %description client | |
cf4bec93 JB |
384 | Client binaries needed to access to the virtualization capabilities of |
385 | recent versions of Linux (and other OSes). | |
386 | ||
387 | %description client -l pl.UTF-8 | |
388 | Programy klienckie potrzebne do funkcji wirtualizacji nowych wersji | |
389 | Linuksa (oraz innych systemów operacyjnych). | |
423a0b96 JR |
390 | |
391 | %package utils | |
cf4bec93 JB |
392 | Summary: Tools to interact with virtualization capabilities (metapackage) |
393 | Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi (metapakiet) | |
423a0b96 JR |
394 | Group: Applications/System |
395 | Requires: %{name}-client = %{version}-%{release} | |
396 | Requires: %{name}-daemon = %{version}-%{release} | |
40e7715f | 397 | %{?with_libxl:Requires: %{name}-daemon-libxl = %{version}-%{release}} |
423a0b96 | 398 | Requires: %{name}-daemon-lxc = %{version}-%{release} |
423a0b96 | 399 | Requires: %{name}-daemon-qemu = %{version}-%{release} |
423a0b96 | 400 | |
94462445 ER |
401 | %description utils |
402 | Libvirt is a C toolkit to interact with the virtualization | |
403 | capabilities of recent versions of Linux. | |
404 | ||
cf4bec93 | 405 | This is metapackage gathering all tools for the libvirt library. |
94462445 | 406 | |
148a9af3 | 407 | %description utils -l pl.UTF-8 |
423a0b96 JR |
408 | Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji |
409 | obecnych wersji Linuksa. | |
148a9af3 | 410 | |
cf4bec93 JB |
411 | To jest metapakiet zbierający wszystkie narzędzia przeznaczone dla |
412 | biblioteki libvirt. | |
148a9af3 | 413 | |
3e5ed185 JB |
414 | %package -n systemtap-libvirt |
415 | Summary: systemtap/dtrace probes for libvirt | |
416 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla libvirt | |
417 | Group: Development/Tools | |
418 | Requires: %{name} = %{version}-%{release} | |
419 | Requires: systemtap-client | |
420 | ||
421 | %description -n systemtap-libvirt | |
422 | systemtap/dtrace probes for libvirt. | |
423 | ||
424 | %description -n systemtap-libvirt -l pl.UTF-8 | |
425 | Sondy systemtap/dtrace dla libvirt. | |
426 | ||
af7f943c JB |
427 | %package -n wireshark-libvirt |
428 | Summary: Wireshark dissector module for libvirt packets | |
429 | Summary(pl.UTF-8): Moduł sekcji Wiresharka do pakietów libvirt | |
430 | Group: Libraries | |
431 | Requires: wireshark >= 1.11.3 | |
432 | ||
433 | %description -n wireshark-libvirt | |
434 | Wireshark dissector module for libvirt packets. | |
435 | ||
436 | %description -n wireshark-libvirt -l pl.UTF-8 | |
437 | Moduł sekcji Wiresharka do pakietów libvirt. | |
438 | ||
94462445 ER |
439 | %prep |
440 | %setup -q | |
be8dc440 | 441 | %patch0 -p1 |
be8dc440 JK |
442 | %patch2 -p1 |
443 | %patch3 -p1 | |
8357fab1 | 444 | %patch4 -p1 |
be8dc440 JK |
445 | %{?with_vserver:%patch5 -p1} |
446 | %patch6 -p1 | |
6d974b69 | 447 | %patch7 -p1 |
5296d739 | 448 | |
94462445 | 449 | %build |
4e034fd2 | 450 | %{__libtoolize} |
cc890e50 | 451 | %{__aclocal} -I m4 |
4e034fd2 | 452 | %{__autoconf} |
7ce5923d | 453 | %{__autoheader} |
4e034fd2 AF |
454 | %{__automake} |
455 | ||
456 | %configure \ | |
624d0ccc | 457 | PVCREATE=/sbin/pvcreate \ |
458 | VGCREATE=/sbin/vgcreate \ | |
459 | LVCREATE=/sbin/lvcreate \ | |
460 | PVREMOVE=/sbin/pvremove \ | |
461 | VGREMOVE=/sbin/vgremove \ | |
462 | LVREMOVE=/sbin/lvremove \ | |
463 | VGCHANGE=/sbin/vgchange \ | |
a1550d89 | 464 | LVCHANGE=/sbin/lvchange \ |
624d0ccc | 465 | VGSCAN=/sbin/vgscan \ |
466 | PVS=/sbin/pvs \ | |
467 | VGS=/sbin/vgs \ | |
468 | LVS=/sbin/lvs \ | |
7ce5923d | 469 | TC=/sbin/tc \ |
624d0ccc | 470 | BRCTL=/sbin/brctl \ |
5cbe4501 | 471 | ISCSIADM=/sbin/iscsiadm \ |
472 | SHOWMOUNT=/usr/sbin/showmount \ | |
7ce5923d JB |
473 | MOUNT=/bin/mount \ |
474 | UMOUNT=/bin/umount \ | |
475 | MKFS=/sbin/mkfs \ | |
36a3330a | 476 | SHOWMOUNT=/usr/sbin/showmount \ |
477 | IPTABLES_PATH=/usr/sbin/iptables \ | |
478 | IP6TABLES_PATH=/usr/sbin/ip6tables \ | |
d9fa538f | 479 | EBTABLES_PATH=/usr/sbin/ebtables \ |
7ce5923d JB |
480 | ISCSIADM=/sbin/iscsiadm \ |
481 | DNSMASQ=/usr/sbin/dnsmasq \ | |
482 | RADVD=/usr/sbin/radvd \ | |
483 | UDEVADM=/sbin/udevadm \ | |
621ed3d1 | 484 | MODPROBE=/sbin/modprobe \ |
bf949ec1 | 485 | SCRUB=/usr/bin/scrub \ |
f4fa2857 | 486 | OVSVSCTL=/usr/bin/ovs-vsctl \ |
423a0b96 | 487 | NUMAD=/usr/bin/numad \ |
b2ff1d91 | 488 | SHEEPDOGCLI=/usr/sbin/collie \ |
fb415d8b JB |
489 | ZFS=/usr/sbin/zfs \ |
490 | ZPOOL=/usr/sbin/zpool \ | |
621ed3d1 | 491 | --disable-silent-rules \ |
c4db1ab9 | 492 | %{?with_static_libs:--enable-static} \ |
842a4333 JP |
493 | --with-bash-completion \ |
494 | --with-bash-completions-dir=/etc/bash_completion.d \ | |
621ed3d1 JB |
495 | --with-html-dir=%{_gtkdocdir} \ |
496 | --with-html-subdir=%{name} \ | |
4ef34a20 JB |
497 | --with-init-script=systemd+redhat \ |
498 | --with-packager="PLD-Linux" \ | |
499 | --with-packager-version="%{name}-%{version}-%{release}.%{_target_cpu}" \ | |
3e5ed185 JB |
500 | --with-qemu-user=qemu \ |
501 | --with-qemu-group=qemu \ | |
c2a00b8b | 502 | --with-storage-disk \ |
bf949ec1 | 503 | --with-storage-fs \ |
6dcba5af | 504 | --with-storage-gluster%{!?with_glusterfs:=no} \ |
bf949ec1 | 505 | --with-storage-iscsi \ |
c2a00b8b | 506 | --with-storage-lvm \ |
bf949ec1 | 507 | --with-storage-mpath \ |
c2a00b8b JB |
508 | --with-storage-rbd%{!?with_ceph:=no} \ |
509 | --with-storage-scsi \ | |
57a80ac3 | 510 | --with-storage-sheepdog \ |
423a0b96 | 511 | --with-apparmor \ |
3e5ed185 JB |
512 | --with-audit \ |
513 | --with-avahi \ | |
514 | %{__with_without systemtap dtrace} \ | |
423a0b96 | 515 | %{__with_without esx} \ |
3e5ed185 JB |
516 | --with-driver-modules \ |
517 | --without-hal \ | |
423a0b96 | 518 | %{__with_without hyperv} \ |
06e0315c | 519 | --with-blkid \ |
a73385df | 520 | --with-ssh2 \ |
423a0b96 JR |
521 | %{__with_without libxl} \ |
522 | %{__with_without lxc} \ | |
3e5ed185 | 523 | --with-macvtap \ |
423a0b96 | 524 | %{__with_without netcf} \ |
3e5ed185 JB |
525 | --with-numactl \ |
526 | --with-numad \ | |
423a0b96 JR |
527 | %{__with_without openvz} \ |
528 | %{__with_without phyp} \ | |
3e5ed185 | 529 | %{__with_without polkit} \ |
423a0b96 JR |
530 | %{__with_without qemu} \ |
531 | %{__with_without sanlock} \ | |
3e5ed185 JB |
532 | --with-sasl \ |
533 | --with-selinux \ | |
534 | --with-udev \ | |
423a0b96 | 535 | %{__with_without vbox vbox %{_libdir}/VirtualBox} \ |
3e5ed185 | 536 | --with-virtualport \ |
423a0b96 | 537 | %{__with_without vmware} \ |
af7f943c | 538 | %{!?with_wireshark:--without-wireshark-dissector} \ |
423a0b96 | 539 | %{__with_without xenapi} \ |
4ef34a20 | 540 | --x-libraries=%{_libdir} |
7ce5923d JB |
541 | |
542 | %{__make} \ | |
543 | AWK=gawk | |
94462445 ER |
544 | |
545 | %install | |
546 | rm -rf $RPM_BUILD_ROOT | |
ed4dd5b7 | 547 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ |
423a0b96 | 548 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
ed4dd5b7 | 549 | |
94462445 | 550 | %{__make} install \ |
46ab7552 | 551 | DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \ |
be0b143b | 552 | SYSTEMD_UNIT_DIR=%{systemdunitdir} \ |
94462445 ER |
553 | DESTDIR=$RPM_BUILD_ROOT |
554 | ||
96de3a81 ER |
555 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd |
556 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
e285e5e5 | 557 | |
423a0b96 | 558 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
c4db1ab9 JB |
559 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la \ |
560 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a} | |
fb415d8b JB |
561 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/storage-backend/*.la \ |
562 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/storage-backend/*.a} | |
c9fcc2fd JP |
563 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/storage-file/*.la \ |
564 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/storage-file/*.a} | |
423a0b96 | 565 | |
621ed3d1 | 566 | %if %{with sanlock} |
c4db1ab9 JB |
567 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la \ |
568 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a} | |
621ed3d1 | 569 | %endif |
af7f943c | 570 | %if %{with wireshark} |
51dab576 JP |
571 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/epan/libvirt.la \ |
572 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/wireshark/plugins/*/epan/libvirt.a} \ | |
af7f943c | 573 | %endif |
621ed3d1 | 574 | |
94462445 ER |
575 | %find_lang %{name} |
576 | ||
577 | %clean | |
578 | rm -rf $RPM_BUILD_ROOT | |
579 | ||
5296d739 JB |
580 | %post -p /sbin/ldconfig |
581 | %postun -p /sbin/ldconfig | |
94462445 | 582 | |
423a0b96 | 583 | %post daemon |
8b51fd22 ER |
584 | /sbin/chkconfig --add libvirtd |
585 | %service libvirtd restart | |
bf949ec1 | 586 | %systemd_post libvirtd.service |
423a0b96 JR |
587 | |
588 | %preun daemon | |
8b51fd22 ER |
589 | if [ "$1" = "0" ]; then |
590 | %service -q libvirtd stop | |
591 | /sbin/chkconfig --del libvirtd | |
592 | fi | |
423a0b96 JR |
593 | %systemd_preun libvirtd.service |
594 | ||
595 | %postun daemon | |
596 | %systemd_reload | |
597 | ||
598 | %post client | |
8b51fd22 ER |
599 | /sbin/chkconfig --add libvirt-guests |
600 | %service -n libvirt-guests restart | |
bf949ec1 JR |
601 | NORESTART=1 |
602 | %systemd_post libvirt-guests.service | |
603 | ||
423a0b96 | 604 | %preun client |
bf949ec1 | 605 | %systemd_preun libvirt-guests.service |
8b51fd22 ER |
606 | if [ "$1" = "0" ]; then |
607 | %service -q libvirt-guests stop | |
608 | /sbin/chkconfig --del libvirt-guests | |
609 | fi | |
bf949ec1 | 610 | |
423a0b96 | 611 | %postun client |
bf949ec1 JR |
612 | %systemd_reload |
613 | ||
94462445 ER |
614 | %files -f %{name}.lang |
615 | %defattr(644,root,root,755) | |
ac5bb455 | 616 | %doc AUTHORS ChangeLog NEWS README.md |
cf4bec93 | 617 | %dir %{_sysconfdir}/libvirt |
423a0b96 | 618 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf |
5296d739 JB |
619 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* |
620 | %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 | |
b2ff1d91 JB |
621 | %attr(755,root,root) %{_libdir}/libvirt-admin.so.*.*.* |
622 | %attr(755,root,root) %ghost %{_libdir}/libvirt-admin.so.0 | |
bf7aa31b JB |
623 | %if %{with lxc} |
624 | %attr(755,root,root) %{_libdir}/libvirt-lxc.so.*.*.* | |
625 | %attr(755,root,root) %ghost %{_libdir}/libvirt-lxc.so.0 | |
626 | %endif | |
5296d739 JB |
627 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* |
628 | %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 | |
fb415d8b JB |
629 | |
630 | # NSS modules | |
631 | %attr(755,root,root) %{_libdir}/libnss_libvirt.so.2 | |
632 | %attr(755,root,root) %{_libdir}/libnss_libvirt_guest.so.2 | |
bf7aa31b | 633 | |
423a0b96 | 634 | %dir %{_libdir}/libvirt |
c47719f5 | 635 | %dir %{_datadir}/libvirt |
3ac3cd0c | 636 | |
842a4333 JP |
637 | %files -n bash-completion-%{name} |
638 | %defattr(644,root,root,755) | |
a7243fbe JP |
639 | /etc/bash_completion.d/virsh |
640 | /etc/bash_completion.d/virt-admin | |
842a4333 JP |
641 | /etc/bash_completion.d/vsh |
642 | ||
94462445 ER |
643 | %files devel |
644 | %defattr(644,root,root,755) | |
5296d739 | 645 | %attr(755,root,root) %{_libdir}/libvirt.so |
b2ff1d91 | 646 | %attr(755,root,root) %{_libdir}/libvirt-admin.so |
bf7aa31b | 647 | %{?with_lxc:%attr(755,root,root) %{_libdir}/libvirt-lxc.so} |
b842fe72 | 648 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so |
f4fa2857 | 649 | %{_datadir}/%{name}/api |
5296d739 JB |
650 | %{_gtkdocdir}/%{name} |
651 | %{_includedir}/%{name} | |
771a9acb | 652 | %{_pkgconfigdir}/libvirt.pc |
c25279f9 | 653 | %{_pkgconfigdir}/libvirt-admin.pc |
771a9acb | 654 | %{?with_lxc:%{_pkgconfigdir}/libvirt-lxc.pc} |
b842fe72 | 655 | %{_pkgconfigdir}/libvirt-qemu.pc |
fb415d8b JB |
656 | %{_mandir}/man7/virkeycode-*.7* |
657 | %{_mandir}/man7/virkeyname-*.7* | |
94462445 ER |
658 | |
659 | %files static | |
660 | %defattr(644,root,root,755) | |
5296d739 | 661 | %{_libdir}/libvirt.a |
b2ff1d91 | 662 | %{_libdir}/libvirt-admin.a |
bf7aa31b | 663 | %{?with_lxc:%{_libdir}/libvirt-lxc.a} |
b842fe72 | 664 | %{_libdir}/libvirt-qemu.a |
94462445 | 665 | |
cf4bec93 JB |
666 | %if %{with sanlock} |
667 | %files lock-sanlock | |
668 | %defattr(644,root,root,755) | |
669 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
cf5c6c57 | 670 | %attr(755,root,root) %{_libexecdir}/libvirt_sanlock_helper |
cf4bec93 JB |
671 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so |
672 | %{_datadir}/augeas/lenses/libvirt_sanlock.aug | |
fef7eb20 | 673 | %if %{with qemu} |
cf4bec93 | 674 | %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug |
fef7eb20 | 675 | %endif |
cf4bec93 JB |
676 | %dir /var/lib/libvirt/sanlock |
677 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
cf4bec93 JB |
678 | %endif |
679 | ||
423a0b96 | 680 | %files daemon |
94462445 | 681 | %defattr(644,root,root,755) |
423a0b96 | 682 | %doc docs/*.xml |
423a0b96 JR |
683 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter |
684 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu | |
685 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks | |
686 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart | |
687 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf | |
62e11f33 | 688 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlockd.conf |
c25279f9 MM |
689 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt-admin.conf |
690 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlogd.conf | |
423a0b96 JR |
691 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml |
692 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml | |
693 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml | |
72b1baa0 | 694 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf |
e285e5e5 | 695 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd |
4ef34a20 | 696 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/virtlockd |
c25279f9 | 697 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/virtlogd |
bf949ec1 | 698 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd |
4ef34a20 | 699 | %attr(754,root,root) /etc/rc.d/init.d/virtlockd |
c25279f9 | 700 | %attr(754,root,root) /etc/rc.d/init.d/virtlogd |
bf949ec1 | 701 | %{systemdunitdir}/libvirtd.service |
2114e9b8 | 702 | %{systemdunitdir}/virt-guest-shutdown.target |
4ef34a20 JB |
703 | %{systemdunitdir}/virtlockd.service |
704 | %{systemdunitdir}/virtlockd.socket | |
a7243fbe | 705 | %{systemdunitdir}/virtlockd-admin.socket |
c25279f9 MM |
706 | %{systemdunitdir}/virtlogd.service |
707 | %{systemdunitdir}/virtlogd.socket | |
a7243fbe | 708 | %{systemdunitdir}/virtlogd-admin.socket |
9e91fdad | 709 | %config(noreplace) %verify(not md5 mtime size) /usr/lib/sysctl.d/60-libvirtd.conf |
423a0b96 | 710 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd |
cf5c6c57 JP |
711 | %attr(755,root,root) %{_libexecdir}/libvirt_iohelper |
712 | %attr(755,root,root) %{_libexecdir}/libvirt_parthelper | |
713 | %attr(755,root,root) %{_libexecdir}/virt-aa-helper | |
423a0b96 | 714 | %attr(755,root,root) %{_sbindir}/libvirtd |
4ef34a20 | 715 | %attr(755,root,root) %{_sbindir}/virtlockd |
c25279f9 | 716 | %attr(755,root,root) %{_sbindir}/virtlogd |
423a0b96 | 717 | %{_datadir}/augeas/lenses/libvirtd.aug |
4ef34a20 | 718 | %{_datadir}/augeas/lenses/libvirt_lockd.aug |
62e11f33 | 719 | %{_datadir}/augeas/lenses/virtlockd.aug |
c25279f9 | 720 | %{_datadir}/augeas/lenses/virtlogd.aug |
423a0b96 | 721 | %{_datadir}/augeas/lenses/tests/test_libvirtd.aug |
b842fe72 | 722 | %{?with_qemu:%{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug} |
62e11f33 | 723 | %{_datadir}/augeas/lenses/tests/test_virtlockd.aug |
c25279f9 | 724 | %{_datadir}/augeas/lenses/tests/test_virtlogd.aug |
3e5ed185 JB |
725 | %if %{with polkit} |
726 | %{_datadir}/polkit-1/actions/org.libvirt.api.policy | |
727 | %{_datadir}/polkit-1/actions/org.libvirt.unix.policy | |
9e91fdad | 728 | %{_datadir}/polkit-1/rules.d/50-libvirt.rules |
3e5ed185 | 729 | %endif |
e4177f0c | 730 | %{_mandir}/man8/libvirtd.8* |
62e11f33 | 731 | %{_mandir}/man8/virtlockd.8* |
c25279f9 | 732 | %{_mandir}/man8/virtlogd.8* |
d5a575f6 | 733 | %dir /var/lib/libvirt |
621ed3d1 | 734 | %dir /var/lib/libvirt/dnsmasq |
423a0b96 | 735 | %attr(711,root,root) %dir /var/lib/libvirt/boot |
621ed3d1 | 736 | %attr(700,root,root) %dir /var/lib/libvirt/network |
423a0b96 JR |
737 | %attr(711,root,root) %dir /var/lib/libvirt/images |
738 | %attr(711,root,root) %dir /var/lib/libvirt/filesystems | |
739 | %attr(700,root,root) %dir /var/log/libvirt | |
740 | %attr(711,root,root) %dir /var/cache/libvirt | |
621ed3d1 | 741 | %dir /var/run/libvirt |
423a0b96 JR |
742 | %dir /var/run/libvirt/network |
743 | %{systemdtmpfilesdir}/%{name}.conf | |
771a9acb | 744 | %attr(755,root,root) %{_libexecdir}/libvirt_leaseshelper |
423a0b96 | 745 | %dir %{_libdir}/libvirt/connection-driver |
3acd6fc5 | 746 | %{_datadir}/libvirt/cpu_map |
273917b1 JR |
747 | %{?with_netcf:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so} |
748 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so | |
749 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so | |
750 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so | |
751 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so | |
752 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so | |
94cd9d8a | 753 | %{?with_vbox:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so} |
4ef34a20 JB |
754 | %dir %{_libdir}/libvirt/lock-driver |
755 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so | |
fb415d8b JB |
756 | %dir %{_libdir}/libvirt/storage-backend |
757 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_disk.so | |
758 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_fs.so | |
759 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_iscsi.so | |
760 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_logical.so | |
761 | # mpath requires libdevmapper, but libvirt itself requires it too | |
762 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_mpath.so | |
763 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_scsi.so | |
764 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_sheepdog.so | |
765 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_zfs.so | |
c9fcc2fd JP |
766 | %dir %{_libdir}/libvirt/storage-file |
767 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_fs.so | |
fb415d8b JB |
768 | |
769 | %if %{with glusterfs} | |
770 | %files daemon-storage-gluster | |
771 | %defattr(644,root,root,755) | |
772 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_gluster.so | |
c9fcc2fd | 773 | %attr(755,root,root) %{_libdir}/libvirt/storage-file/libvirt_storage_file_gluster.so |
fb415d8b JB |
774 | %endif |
775 | ||
776 | %if %{with ceph} | |
777 | %files daemon-storage-rbd | |
778 | %defattr(644,root,root,755) | |
779 | %attr(755,root,root) %{_libdir}/libvirt/storage-backend/libvirt_storage_backend_rbd.so | |
780 | %endif | |
423a0b96 | 781 | |
eae1555f | 782 | %if %{with libxl} |
423a0b96 JR |
783 | %files daemon-libxl |
784 | %defattr(644,root,root,755) | |
9e91fdad JB |
785 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl.conf |
786 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-lockd.conf | |
787 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-sanlock.conf} | |
788 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.libxl | |
273917b1 | 789 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so |
9e91fdad JB |
790 | %{_datadir}/augeas/lenses/libvirtd_libxl.aug |
791 | %{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug | |
423a0b96 JR |
792 | %attr(700,root,root) %dir /var/lib/libvirt/libxl |
793 | %attr(700,root,root) %dir /var/run/libvirt/libxl | |
794 | %attr(700,root,root) %dir /var/log/libvirt/libxl | |
795 | %endif | |
796 | ||
eae1555f | 797 | %if %{with lxc} |
423a0b96 JR |
798 | %files daemon-lxc |
799 | %defattr(644,root,root,755) | |
800 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf | |
801 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc | |
802 | %attr(700,root,root) %dir /var/lib/libvirt/lxc | |
621ed3d1 | 803 | %attr(700,root,root) %dir /var/run/libvirt/lxc |
423a0b96 JR |
804 | %attr(700,root,root) %dir /var/log/libvirt/lxc |
805 | %{_datadir}/augeas/lenses/libvirtd_lxc.aug | |
806 | %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug | |
cf5c6c57 | 807 | %attr(755,root,root) %{_libexecdir}/libvirt_lxc |
273917b1 | 808 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so |
423a0b96 JR |
809 | %endif |
810 | ||
621ed3d1 | 811 | %if %{with qemu} |
423a0b96 JR |
812 | %files daemon-qemu |
813 | %defattr(644,root,root,755) | |
814 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf | |
9e91fdad JB |
815 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-lockd.conf |
816 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf} | |
423a0b96 JR |
817 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu |
818 | %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu | |
819 | %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu | |
621ed3d1 JB |
820 | %attr(700,root,root) %dir /var/log/libvirt/qemu |
821 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
423a0b96 JR |
822 | %{_datadir}/augeas/lenses/libvirtd_qemu.aug |
823 | %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug | |
273917b1 | 824 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so |
423a0b96 JR |
825 | %endif |
826 | ||
423a0b96 JR |
827 | %files client |
828 | %defattr(644,root,root,755) | |
829 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests | |
830 | %attr(754,root,root) /etc/rc.d/init.d/libvirt-guests | |
831 | %{systemdunitdir}/libvirt-guests.service | |
62e11f33 | 832 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virt-login-shell.conf |
423a0b96 | 833 | %attr(755,root,root) %{_bindir}/virsh |
c25279f9 | 834 | %attr(755,root,root) %{_bindir}/virt-admin |
423a0b96 | 835 | %attr(755,root,root) %{_bindir}/virt-host-validate |
62e11f33 | 836 | %attr(4755,root,root) %{_bindir}/virt-login-shell |
423a0b96 JR |
837 | %attr(755,root,root) %{_bindir}/virt-xml-validate |
838 | %attr(755,root,root) %{_bindir}/virt-pki-validate | |
4ef34a20 | 839 | %attr(754,root,root) %{_libexecdir}/libvirt-guests.sh |
423a0b96 | 840 | %{_mandir}/man1/virsh.1* |
c25279f9 | 841 | %{_mandir}/man1/virt-admin.1* |
423a0b96 | 842 | %{_mandir}/man1/virt-host-validate.1* |
62e11f33 | 843 | %{_mandir}/man1/virt-login-shell.1* |
423a0b96 JR |
844 | %{_mandir}/man1/virt-xml-validate.1* |
845 | %{_mandir}/man1/virt-pki-validate.1* | |
423a0b96 JR |
846 | %dir %{_datadir}/libvirt/schemas |
847 | %{_datadir}/libvirt/schemas/basictypes.rng | |
848 | %{_datadir}/libvirt/schemas/capability.rng | |
2114e9b8 | 849 | %{_datadir}/libvirt/schemas/cputypes.rng |
423a0b96 | 850 | %{_datadir}/libvirt/schemas/domain.rng |
3958e395 | 851 | %{_datadir}/libvirt/schemas/domaincaps.rng |
423a0b96 JR |
852 | %{_datadir}/libvirt/schemas/domaincommon.rng |
853 | %{_datadir}/libvirt/schemas/domainsnapshot.rng | |
854 | %{_datadir}/libvirt/schemas/interface.rng | |
855 | %{_datadir}/libvirt/schemas/network.rng | |
856 | %{_datadir}/libvirt/schemas/networkcommon.rng | |
857 | %{_datadir}/libvirt/schemas/nodedev.rng | |
858 | %{_datadir}/libvirt/schemas/nwfilter.rng | |
c9fcc2fd JP |
859 | %{_datadir}/libvirt/schemas/nwfilter_params.rng |
860 | %{_datadir}/libvirt/schemas/nwfilterbinding.rng | |
423a0b96 | 861 | %{_datadir}/libvirt/schemas/secret.rng |
521fc25f | 862 | %{_datadir}/libvirt/schemas/storagecommon.rng |
423a0b96 JR |
863 | %{_datadir}/libvirt/schemas/storagepool.rng |
864 | %{_datadir}/libvirt/schemas/storagevol.rng | |
fb415d8b JB |
865 | # for test driver (built into libvirt) |
866 | %{_datadir}/libvirt/test-screenshot.png | |
423a0b96 JR |
867 | |
868 | %files utils | |
869 | %defattr(644,root,root,755) | |
3e5ed185 JB |
870 | |
871 | %if %{with systemtap} | |
872 | %files -n systemtap-libvirt | |
873 | %defattr(644,root,root,755) | |
874 | %{_datadir}/systemtap/tapset/libvirt_functions.stp | |
875 | %{_datadir}/systemtap/tapset/libvirt_probes.stp | |
4238dfc2 | 876 | %{?with_qemu:%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp} |
3e5ed185 | 877 | %endif |
af7f943c JB |
878 | |
879 | %if %{with wireshark} | |
880 | %files -n wireshark-libvirt | |
881 | %defattr(644,root,root,755) | |
51dab576 | 882 | %attr(755,root,root) %{_libdir}/wireshark/plugins/*/epan/libvirt.so |
af7f943c | 883 | %endif |