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