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