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