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