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