]>
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 |
94462445 | 27 | |
148a9af3 JB |
28 | # qemu available only on x86 and ppc |
29 | %ifnarch %{ix86} %{x8664} ppc | |
30 | %undefine with_qemu | |
31 | %endif | |
96de3a81 | 32 | |
bc484957 | 33 | # Xen is available only on x86 and ia64 |
94462445 ER |
34 | %ifnarch %{ix86} %{x8664} ia64 |
35 | %undefine with_xen | |
5c892098 JR |
36 | %undefine with_xenapi |
37 | %undefine with_libxl | |
94462445 | 38 | %endif |
6d974b69 | 39 | |
94462445 | 40 | Summary: Toolkit to interact with virtualization capabilities |
148a9af3 | 41 | Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji |
94462445 | 42 | Name: libvirt |
9e91fdad JB |
43 | Version: 1.2.16 |
44 | Release: 1 | |
148a9af3 | 45 | License: LGPL v2.1+ |
423a0b96 | 46 | Group: Libraries |
21f7b4fc | 47 | Source0: ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz |
9e91fdad | 48 | # Source0-md5: 015b0aa29c7868916f7b32c9ee70ef60 |
e285e5e5 | 49 | Source1: %{name}.init |
ed4dd5b7 | 50 | Source2: %{name}.tmpfiles |
5296d739 | 51 | Patch0: %{name}-sasl.patch |
a5db73fd | 52 | Patch1: %{name}-lxc.patch |
423a0b96 JR |
53 | Patch2: %{name}-qemu-acl.patch |
54 | Patch3: %{name}-xend.patch | |
8357fab1 | 55 | Patch4: virtlockd.init.patch |
7448c7c9 | 56 | Patch5: %{name}-udevadm-settle.patch |
eb319e62 | 57 | Patch6: vserver.patch |
6d974b69 | 58 | Patch7: bashisms.patch |
96de3a81 | 59 | Patch8: %{name}-guests.init.patch |
5296d739 | 60 | URL: http://www.libvirt.org/ |
7ce5923d | 61 | BuildRequires: audit-libs-devel |
fa080175 | 62 | BuildRequires: augeas-devel |
148a9af3 | 63 | BuildRequires: autoconf >= 2.50 |
69187f5d | 64 | BuildRequires: automake |
4e034fd2 | 65 | BuildRequires: avahi-devel >= 0.6.0 |
83426b5b | 66 | %{?with_ceph:BuildRequires: ceph-devel} |
4e034fd2 | 67 | BuildRequires: curl-devel >= 7.18.0 |
69187f5d | 68 | BuildRequires: cyrus-sasl-devel |
54247c34 | 69 | BuildRequires: dbus-devel >= 1.0.0 |
4e034fd2 | 70 | BuildRequires: device-mapper-devel >= 1.0.0 |
5cbe4501 | 71 | BuildRequires: gawk |
e9f5f452 | 72 | BuildRequires: gettext-tools >= 0.17 |
6dcba5af | 73 | %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4.1} |
4e034fd2 | 74 | BuildRequires: gnutls-devel >= 1.0.25 |
69187f5d | 75 | BuildRequires: libapparmor-devel |
7ce5923d JB |
76 | BuildRequires: libblkid-devel >= 2.17 |
77 | BuildRequires: libcap-ng-devel >= 0.4.0 | |
4ef34a20 | 78 | BuildRequires: libfuse-devel >= 2.8.6 |
7ce5923d | 79 | BuildRequires: libgcrypt-devel |
54247c34 | 80 | BuildRequires: libnl-devel >= 3.2 |
7ce5923d JB |
81 | BuildRequires: libpcap-devel >= 1.0.0 |
82 | BuildRequires: libselinux-devel >= 2.0.82 | |
e9ea35db | 83 | BuildRequires: libssh2-devel >= 1.3 |
69187f5d | 84 | BuildRequires: libtool |
6865448d | 85 | %{?with_xenapi:BuildRequires: libxenserver-devel} |
7ce5923d | 86 | BuildRequires: libxml2-devel >= 1:2.6.0 |
fa080175 | 87 | BuildRequires: libxslt-devel |
94462445 | 88 | BuildRequires: ncurses-devel |
0c4e060a | 89 | %{?with_netcf:BuildRequires: netcf-devel >= 0.2.0} |
69187f5d | 90 | BuildRequires: numactl-devel |
423a0b96 | 91 | BuildRequires: openldap-devel |
b842fe72 | 92 | %{?with_hyperv:BuildRequires: openwsman-devel >= 2.2.3} |
36a3330a | 93 | BuildRequires: parted-devel >= 1.8.0 |
69187f5d | 94 | BuildRequires: pkgconfig |
5bb742b4 | 95 | BuildRequires: polkit |
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 | |
348 | Requires: xen-xend | |
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 JR |
389 | Requires: %{name}-daemon-qemu = %{version}-%{release} |
390 | 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 | |
5296d739 | 421 | %patch0 -p1 |
2d6e7f7e JB |
422 | # TODO |
423 | #patch1 -p1 | |
d6de3d6a | 424 | %patch2 -p1 |
c8f65936 | 425 | %patch3 -p1 |
8357fab1 | 426 | %patch4 -p1 |
7448c7c9 | 427 | %patch5 -p1 |
eb319e62 | 428 | %{?with_vserver:%patch6 -p1} |
6d974b69 | 429 | %patch7 -p1 |
5acc77ca | 430 | %patch8 -p1 |
5296d739 | 431 | |
94462445 | 432 | %build |
4e034fd2 | 433 | %{__libtoolize} |
cc890e50 | 434 | %{__aclocal} -I m4 |
4e034fd2 | 435 | %{__autoconf} |
7ce5923d | 436 | %{__autoheader} |
4e034fd2 AF |
437 | %{__automake} |
438 | ||
439 | %configure \ | |
624d0ccc | 440 | PVCREATE=/sbin/pvcreate \ |
441 | VGCREATE=/sbin/vgcreate \ | |
442 | LVCREATE=/sbin/lvcreate \ | |
443 | PVREMOVE=/sbin/pvremove \ | |
444 | VGREMOVE=/sbin/vgremove \ | |
445 | LVREMOVE=/sbin/lvremove \ | |
446 | VGCHANGE=/sbin/vgchange \ | |
a1550d89 | 447 | LVCHANGE=/sbin/lvchange \ |
624d0ccc | 448 | VGSCAN=/sbin/vgscan \ |
449 | PVS=/sbin/pvs \ | |
450 | VGS=/sbin/vgs \ | |
451 | LVS=/sbin/lvs \ | |
7ce5923d | 452 | TC=/sbin/tc \ |
624d0ccc | 453 | BRCTL=/sbin/brctl \ |
5cbe4501 | 454 | ISCSIADM=/sbin/iscsiadm \ |
455 | SHOWMOUNT=/usr/sbin/showmount \ | |
7ce5923d JB |
456 | MOUNT=/bin/mount \ |
457 | UMOUNT=/bin/umount \ | |
458 | MKFS=/sbin/mkfs \ | |
36a3330a | 459 | SHOWMOUNT=/usr/sbin/showmount \ |
460 | IPTABLES_PATH=/usr/sbin/iptables \ | |
461 | IP6TABLES_PATH=/usr/sbin/ip6tables \ | |
d9fa538f | 462 | EBTABLES_PATH=/usr/sbin/ebtables \ |
7ce5923d JB |
463 | ISCSIADM=/sbin/iscsiadm \ |
464 | DNSMASQ=/usr/sbin/dnsmasq \ | |
465 | RADVD=/usr/sbin/radvd \ | |
466 | UDEVADM=/sbin/udevadm \ | |
621ed3d1 | 467 | MODPROBE=/sbin/modprobe \ |
bf949ec1 | 468 | SCRUB=/usr/bin/scrub \ |
f4fa2857 | 469 | OVSVSCTL=/usr/bin/ovs-vsctl \ |
423a0b96 | 470 | NUMAD=/usr/bin/numad \ |
57a80ac3 | 471 | COLLIE=/usr/sbin/collie \ |
621ed3d1 | 472 | --disable-silent-rules \ |
c4db1ab9 | 473 | %{?with_static_libs:--enable-static} \ |
621ed3d1 JB |
474 | --with-html-dir=%{_gtkdocdir} \ |
475 | --with-html-subdir=%{name} \ | |
4ef34a20 JB |
476 | --with-init-script=systemd+redhat \ |
477 | --with-packager="PLD-Linux" \ | |
478 | --with-packager-version="%{name}-%{version}-%{release}.%{_target_cpu}" \ | |
3e5ed185 JB |
479 | --with-qemu-user=qemu \ |
480 | --with-qemu-group=qemu \ | |
c2a00b8b | 481 | --with-storage-disk \ |
bf949ec1 | 482 | --with-storage-fs \ |
6dcba5af | 483 | --with-storage-gluster%{!?with_glusterfs:=no} \ |
bf949ec1 | 484 | --with-storage-iscsi \ |
c2a00b8b | 485 | --with-storage-lvm \ |
bf949ec1 | 486 | --with-storage-mpath \ |
c2a00b8b JB |
487 | --with-storage-rbd%{!?with_ceph:=no} \ |
488 | --with-storage-scsi \ | |
57a80ac3 | 489 | --with-storage-sheepdog \ |
423a0b96 | 490 | --with-apparmor \ |
3e5ed185 JB |
491 | --with-audit \ |
492 | --with-avahi \ | |
493 | %{__with_without systemtap dtrace} \ | |
423a0b96 | 494 | %{__with_without esx} \ |
3e5ed185 JB |
495 | --with-driver-modules \ |
496 | --without-hal \ | |
423a0b96 | 497 | %{__with_without hyperv} \ |
06e0315c | 498 | --with-blkid \ |
a73385df | 499 | --with-ssh2 \ |
423a0b96 JR |
500 | %{__with_without libxl} \ |
501 | %{__with_without lxc} \ | |
3e5ed185 | 502 | --with-macvtap \ |
423a0b96 | 503 | %{__with_without netcf} \ |
3e5ed185 JB |
504 | --with-numactl \ |
505 | --with-numad \ | |
423a0b96 JR |
506 | %{__with_without openvz} \ |
507 | %{__with_without phyp} \ | |
3e5ed185 | 508 | %{__with_without polkit} \ |
423a0b96 JR |
509 | %{__with_without qemu} \ |
510 | %{__with_without sanlock} \ | |
3e5ed185 JB |
511 | --with-sasl \ |
512 | --with-selinux \ | |
513 | --with-udev \ | |
423a0b96 JR |
514 | %{__with_without uml} \ |
515 | %{__with_without vbox vbox %{_libdir}/VirtualBox} \ | |
3e5ed185 | 516 | --with-virtualport \ |
423a0b96 JR |
517 | %{__with_without vmware} \ |
518 | %{__with_without xen} \ | |
519 | %{__with_without xenapi} \ | |
3e5ed185 | 520 | --with-yajl \ |
4ef34a20 | 521 | --x-libraries=%{_libdir} |
7ce5923d JB |
522 | |
523 | %{__make} \ | |
524 | AWK=gawk | |
94462445 ER |
525 | |
526 | %install | |
527 | rm -rf $RPM_BUILD_ROOT | |
ed4dd5b7 | 528 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ |
423a0b96 | 529 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
ed4dd5b7 | 530 | |
94462445 | 531 | %{__make} install \ |
46ab7552 | 532 | DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \ |
be0b143b | 533 | SYSTEMD_UNIT_DIR=%{systemdunitdir} \ |
94462445 ER |
534 | DESTDIR=$RPM_BUILD_ROOT |
535 | ||
96de3a81 ER |
536 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd |
537 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf | |
e285e5e5 | 538 | |
423a0b96 | 539 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
c4db1ab9 JB |
540 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la \ |
541 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a} | |
423a0b96 | 542 | |
621ed3d1 | 543 | %if %{with sanlock} |
c4db1ab9 JB |
544 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la \ |
545 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a} | |
621ed3d1 JB |
546 | %endif |
547 | ||
94462445 ER |
548 | %find_lang %{name} |
549 | ||
550 | %clean | |
551 | rm -rf $RPM_BUILD_ROOT | |
552 | ||
5296d739 JB |
553 | %post -p /sbin/ldconfig |
554 | %postun -p /sbin/ldconfig | |
94462445 | 555 | |
423a0b96 | 556 | %post daemon |
8b51fd22 ER |
557 | /sbin/chkconfig --add libvirtd |
558 | %service libvirtd restart | |
bf949ec1 | 559 | %systemd_post libvirtd.service |
423a0b96 JR |
560 | |
561 | %preun daemon | |
8b51fd22 ER |
562 | if [ "$1" = "0" ]; then |
563 | %service -q libvirtd stop | |
564 | /sbin/chkconfig --del libvirtd | |
565 | fi | |
423a0b96 JR |
566 | %systemd_preun libvirtd.service |
567 | ||
568 | %postun daemon | |
569 | %systemd_reload | |
570 | ||
571 | %post client | |
8b51fd22 ER |
572 | /sbin/chkconfig --add libvirt-guests |
573 | %service -n libvirt-guests restart | |
bf949ec1 JR |
574 | NORESTART=1 |
575 | %systemd_post libvirt-guests.service | |
576 | ||
423a0b96 | 577 | %preun client |
bf949ec1 | 578 | %systemd_preun libvirt-guests.service |
8b51fd22 ER |
579 | if [ "$1" = "0" ]; then |
580 | %service -q libvirt-guests stop | |
581 | /sbin/chkconfig --del libvirt-guests | |
582 | fi | |
bf949ec1 | 583 | |
423a0b96 | 584 | %postun client |
bf949ec1 JR |
585 | %systemd_reload |
586 | ||
94462445 ER |
587 | %files -f %{name}.lang |
588 | %defattr(644,root,root,755) | |
589 | %doc ChangeLog README TODO NEWS | |
cf4bec93 | 590 | %dir %{_sysconfdir}/libvirt |
423a0b96 | 591 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf |
5296d739 JB |
592 | %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* |
593 | %attr(755,root,root) %ghost %{_libdir}/libvirt.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 | |
bf7aa31b | 600 | |
423a0b96 | 601 | %dir %{_libdir}/libvirt |
c47719f5 | 602 | %dir %{_datadir}/libvirt |
c4db1ab9 | 603 | %{_datadir}/libvirt/libvirtLogo.png |
3ac3cd0c | 604 | |
94462445 ER |
605 | %files devel |
606 | %defattr(644,root,root,755) | |
5296d739 | 607 | %attr(755,root,root) %{_libdir}/libvirt.so |
bf7aa31b | 608 | %{?with_lxc:%attr(755,root,root) %{_libdir}/libvirt-lxc.so} |
b842fe72 | 609 | %attr(755,root,root) %{_libdir}/libvirt-qemu.so |
f4fa2857 | 610 | %{_datadir}/%{name}/api |
5296d739 JB |
611 | %{_gtkdocdir}/%{name} |
612 | %{_includedir}/%{name} | |
771a9acb JB |
613 | %{_pkgconfigdir}/libvirt.pc |
614 | %{?with_lxc:%{_pkgconfigdir}/libvirt-lxc.pc} | |
b842fe72 | 615 | %{_pkgconfigdir}/libvirt-qemu.pc |
94462445 ER |
616 | |
617 | %files static | |
618 | %defattr(644,root,root,755) | |
5296d739 | 619 | %{_libdir}/libvirt.a |
bf7aa31b | 620 | %{?with_lxc:%{_libdir}/libvirt-lxc.a} |
b842fe72 | 621 | %{_libdir}/libvirt-qemu.a |
94462445 | 622 | |
cf4bec93 JB |
623 | %if %{with sanlock} |
624 | %files lock-sanlock | |
625 | %defattr(644,root,root,755) | |
626 | %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup | |
35ba9435 | 627 | %attr(755,root,root) %{_libdir}/libvirt_sanlock_helper |
cf4bec93 JB |
628 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so |
629 | %{_datadir}/augeas/lenses/libvirt_sanlock.aug | |
630 | %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug | |
631 | %dir /var/lib/libvirt/sanlock | |
632 | %{_mandir}/man8/virt-sanlock-cleanup.8* | |
cf4bec93 JB |
633 | %endif |
634 | ||
423a0b96 | 635 | %files daemon |
94462445 | 636 | %defattr(644,root,root,755) |
423a0b96 | 637 | %doc docs/*.xml |
423a0b96 JR |
638 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter |
639 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu | |
640 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks | |
641 | %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart | |
642 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf | |
62e11f33 | 643 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlockd.conf |
423a0b96 JR |
644 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml |
645 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml | |
646 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml | |
72b1baa0 | 647 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf |
e285e5e5 | 648 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd |
4ef34a20 | 649 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/virtlockd |
bf949ec1 | 650 | %attr(754,root,root) /etc/rc.d/init.d/libvirtd |
4ef34a20 | 651 | %attr(754,root,root) /etc/rc.d/init.d/virtlockd |
bf949ec1 | 652 | %{systemdunitdir}/libvirtd.service |
8f1c337b | 653 | %{systemdunitdir}/libvirtd.socket |
4ef34a20 JB |
654 | %{systemdunitdir}/virtlockd.service |
655 | %{systemdunitdir}/virtlockd.socket | |
9e91fdad | 656 | %config(noreplace) %verify(not md5 mtime size) /usr/lib/sysctl.d/60-libvirtd.conf |
423a0b96 JR |
657 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd |
658 | %attr(755,root,root) %{_libdir}/libvirt_iohelper | |
621ed3d1 | 659 | %attr(755,root,root) %{_libdir}/libvirt_parthelper |
423a0b96 JR |
660 | %attr(755,root,root) %{_libdir}/virt-aa-helper |
661 | %attr(755,root,root) %{_sbindir}/libvirtd | |
4ef34a20 | 662 | %attr(755,root,root) %{_sbindir}/virtlockd |
423a0b96 | 663 | %{_datadir}/augeas/lenses/libvirtd.aug |
4ef34a20 | 664 | %{_datadir}/augeas/lenses/libvirt_lockd.aug |
62e11f33 | 665 | %{_datadir}/augeas/lenses/virtlockd.aug |
423a0b96 | 666 | %{_datadir}/augeas/lenses/tests/test_libvirtd.aug |
b842fe72 | 667 | %{?with_qemu:%{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug} |
62e11f33 | 668 | %{_datadir}/augeas/lenses/tests/test_virtlockd.aug |
3e5ed185 JB |
669 | %if %{with polkit} |
670 | %{_datadir}/polkit-1/actions/org.libvirt.api.policy | |
671 | %{_datadir}/polkit-1/actions/org.libvirt.unix.policy | |
9e91fdad | 672 | %{_datadir}/polkit-1/rules.d/50-libvirt.rules |
3e5ed185 | 673 | %endif |
e4177f0c | 674 | %{_mandir}/man8/libvirtd.8* |
62e11f33 | 675 | %{_mandir}/man8/virtlockd.8* |
d5a575f6 | 676 | %dir /var/lib/libvirt |
621ed3d1 | 677 | %dir /var/lib/libvirt/dnsmasq |
423a0b96 | 678 | %attr(711,root,root) %dir /var/lib/libvirt/boot |
621ed3d1 | 679 | %attr(700,root,root) %dir /var/lib/libvirt/network |
423a0b96 JR |
680 | %attr(711,root,root) %dir /var/lib/libvirt/images |
681 | %attr(711,root,root) %dir /var/lib/libvirt/filesystems | |
682 | %attr(700,root,root) %dir /var/log/libvirt | |
683 | %attr(711,root,root) %dir /var/cache/libvirt | |
621ed3d1 | 684 | %dir /var/run/libvirt |
423a0b96 JR |
685 | %dir /var/run/libvirt/network |
686 | %{systemdtmpfilesdir}/%{name}.conf | |
771a9acb | 687 | %attr(755,root,root) %{_libexecdir}/libvirt_leaseshelper |
423a0b96 | 688 | %dir %{_libdir}/libvirt/connection-driver |
29b6137e | 689 | %{_datadir}/libvirt/cpu_map.xml |
273917b1 JR |
690 | %{?with_netcf:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so} |
691 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so | |
692 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so | |
693 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so | |
694 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so | |
695 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so | |
c4db1ab9 | 696 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so |
4ef34a20 JB |
697 | %dir %{_libdir}/libvirt/lock-driver |
698 | %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so | |
423a0b96 | 699 | |
eae1555f | 700 | %if %{with libxl} |
423a0b96 JR |
701 | %files daemon-libxl |
702 | %defattr(644,root,root,755) | |
9e91fdad JB |
703 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl.conf |
704 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-lockd.conf | |
705 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libxl-sanlock.conf} | |
706 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.libxl | |
273917b1 | 707 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so |
9e91fdad JB |
708 | %{_datadir}/augeas/lenses/libvirtd_libxl.aug |
709 | %{_datadir}/augeas/lenses/tests/test_libvirtd_libxl.aug | |
423a0b96 JR |
710 | %attr(700,root,root) %dir /var/lib/libvirt/libxl |
711 | %attr(700,root,root) %dir /var/run/libvirt/libxl | |
712 | %attr(700,root,root) %dir /var/log/libvirt/libxl | |
713 | %endif | |
714 | ||
eae1555f | 715 | %if %{with lxc} |
423a0b96 JR |
716 | %files daemon-lxc |
717 | %defattr(644,root,root,755) | |
718 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf | |
719 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc | |
720 | %attr(700,root,root) %dir /var/lib/libvirt/lxc | |
621ed3d1 | 721 | %attr(700,root,root) %dir /var/run/libvirt/lxc |
423a0b96 JR |
722 | %attr(700,root,root) %dir /var/log/libvirt/lxc |
723 | %{_datadir}/augeas/lenses/libvirtd_lxc.aug | |
724 | %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug | |
725 | %attr(755,root,root) %{_libdir}/libvirt_lxc | |
273917b1 | 726 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so |
423a0b96 JR |
727 | %endif |
728 | ||
621ed3d1 | 729 | %if %{with qemu} |
423a0b96 JR |
730 | %files daemon-qemu |
731 | %defattr(644,root,root,755) | |
732 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf | |
9e91fdad JB |
733 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-lockd.conf |
734 | %{?with_sanlock:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf} | |
423a0b96 JR |
735 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu |
736 | %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu | |
737 | %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu | |
621ed3d1 JB |
738 | %attr(700,root,root) %dir /var/log/libvirt/qemu |
739 | %attr(700,root,root) %dir /var/run/libvirt/qemu | |
423a0b96 JR |
740 | %{_datadir}/augeas/lenses/libvirtd_qemu.aug |
741 | %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug | |
273917b1 | 742 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so |
423a0b96 JR |
743 | %endif |
744 | ||
eae1555f | 745 | %if %{with uml} |
423a0b96 JR |
746 | %files daemon-uml |
747 | %defattr(644,root,root,755) | |
273917b1 | 748 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_uml.so |
423a0b96 JR |
749 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.uml |
750 | %attr(700,root,root) %dir /var/lib/libvirt/uml | |
751 | %attr(700,root,root) %dir /var/run/libvirt/uml | |
752 | %attr(700,root,root) %dir /var/log/libvirt/uml | |
621ed3d1 | 753 | %endif |
423a0b96 | 754 | |
eae1555f | 755 | %if %{with xen} |
423a0b96 JR |
756 | %files daemon-xen |
757 | %defattr(644,root,root,755) | |
273917b1 | 758 | %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_xen.so |
423a0b96 JR |
759 | %endif |
760 | ||
761 | %files client | |
762 | %defattr(644,root,root,755) | |
763 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests | |
764 | %attr(754,root,root) /etc/rc.d/init.d/libvirt-guests | |
765 | %{systemdunitdir}/libvirt-guests.service | |
62e11f33 | 766 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virt-login-shell.conf |
423a0b96 JR |
767 | %attr(755,root,root) %{_bindir}/virsh |
768 | %attr(755,root,root) %{_bindir}/virt-host-validate | |
62e11f33 | 769 | %attr(4755,root,root) %{_bindir}/virt-login-shell |
423a0b96 JR |
770 | %attr(755,root,root) %{_bindir}/virt-xml-validate |
771 | %attr(755,root,root) %{_bindir}/virt-pki-validate | |
4ef34a20 | 772 | %attr(754,root,root) %{_libexecdir}/libvirt-guests.sh |
423a0b96 JR |
773 | %{_mandir}/man1/virsh.1* |
774 | %{_mandir}/man1/virt-host-validate.1* | |
62e11f33 | 775 | %{_mandir}/man1/virt-login-shell.1* |
423a0b96 JR |
776 | %{_mandir}/man1/virt-xml-validate.1* |
777 | %{_mandir}/man1/virt-pki-validate.1* | |
423a0b96 JR |
778 | %dir %{_datadir}/libvirt/schemas |
779 | %{_datadir}/libvirt/schemas/basictypes.rng | |
780 | %{_datadir}/libvirt/schemas/capability.rng | |
781 | %{_datadir}/libvirt/schemas/domain.rng | |
3958e395 | 782 | %{_datadir}/libvirt/schemas/domaincaps.rng |
423a0b96 JR |
783 | %{_datadir}/libvirt/schemas/domaincommon.rng |
784 | %{_datadir}/libvirt/schemas/domainsnapshot.rng | |
785 | %{_datadir}/libvirt/schemas/interface.rng | |
786 | %{_datadir}/libvirt/schemas/network.rng | |
787 | %{_datadir}/libvirt/schemas/networkcommon.rng | |
788 | %{_datadir}/libvirt/schemas/nodedev.rng | |
789 | %{_datadir}/libvirt/schemas/nwfilter.rng | |
790 | %{_datadir}/libvirt/schemas/secret.rng | |
521fc25f | 791 | %{_datadir}/libvirt/schemas/storagecommon.rng |
423a0b96 JR |
792 | %{_datadir}/libvirt/schemas/storagepool.rng |
793 | %{_datadir}/libvirt/schemas/storagevol.rng | |
794 | ||
795 | %files utils | |
796 | %defattr(644,root,root,755) | |
3e5ed185 JB |
797 | |
798 | %if %{with systemtap} | |
799 | %files -n systemtap-libvirt | |
800 | %defattr(644,root,root,755) | |
801 | %{_datadir}/systemtap/tapset/libvirt_functions.stp | |
802 | %{_datadir}/systemtap/tapset/libvirt_probes.stp | |
803 | %{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp | |
804 | %endif |