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