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