attempt to use 0.10.2.2
[libvirt.git] / libvirt.spec
1 # -*- rpm-spec -*-
2
3 %define mainstream_version 0.10.2.2
4 %define module_version_varname mainstream_version
5 %define taglevel 0
6
7 # If neither fedora nor rhel was defined, try to guess them from %{dist}
8 %if !0%{?rhel} && !0%{?fedora}
9 %{expand:%(echo "%{?dist}" | \
10   sed -ne 's/^\.el\([0-9]\+\).*/%%define rhel \1/p')}
11 %{expand:%(echo "%{?dist}" | \
12   sed -ne 's/^\.fc\?\([0-9]\+\).*/%%define fedora \1/p')}
13 %endif
14
15 # Default to skipping autoreconf.  Distros can change just this one line
16 # (or provide a command-line override) if they backport any patches that
17 # touch configure.ac or Makefile.am.
18 %{!?enable_autotools:%define enable_autotools 0}
19
20 # A client only build will create a libvirt.so only containing
21 # the generic RPC driver, and test driver and no libvirtd
22 # Default to a full server + client build
23 %define client_only        0
24
25 # Now turn off server build in certain cases
26
27 # RHEL-5 builds are client-only for s390, ppc
28 %if 0%{?rhel} == 5
29 %ifnarch %{ix86} x86_64 ia64
30 %define client_only        1
31 %endif
32 %endif
33
34 # Disable all server side drivers if client only build requested
35 %if %{client_only}
36 %define server_drivers     0
37 %else
38 %define server_drivers     1
39 %endif
40
41 # Always build with dlopen'd modules
42 %define with_driver_modules 1
43
44 # Now set the defaults for all the important features, independent
45 # of any particular OS
46
47 # First the daemon itself
48 %define with_libvirtd      0%{!?_without_libvirtd:%{server_drivers}}
49 %define with_avahi         0%{!?_without_avahi:%{server_drivers}}
50
51 # Then the hypervisor drivers that run in libvirtd
52 %define with_xen           0%{!?_without_xen:%{server_drivers}}
53 %define with_qemu          0%{!?_without_qemu:%{server_drivers}}
54 %define with_lxc           0%{!?_without_lxc:%{server_drivers}}
55 %define with_uml           0%{!?_without_uml:%{server_drivers}}
56 %define with_libxl         0%{!?_without_libxl:%{server_drivers}}
57
58 %define with_qemu_tcg      %{with_qemu}
59 # Change if we ever provide qemu-kvm binaries on non-x86 hosts
60 %ifarch %{ix86} x86_64
61 %define with_qemu_kvm      %{with_qemu}
62 %else
63 %define with_qemu_kvm      0
64 %endif
65
66 # Then the hypervisor drivers that run outside libvirtd, in libvirt.so
67 %define with_openvz        0%{!?_without_openvz:1}
68 %define with_vbox          0%{!?_without_vbox:1}
69 %define with_vmware        0%{!?_without_vmware:1}
70 %define with_phyp          0%{!?_without_phyp:1}
71 %define with_esx           0%{!?_without_esx:1}
72 %define with_hyperv        0%{!?_without_hyperv:1}
73 %define with_xenapi        0%{!?_without_xenapi:1}
74 %define with_parallels     0%{!?_without_parallels:1}
75
76 # Then the secondary host drivers, which run inside libvirtd
77 %define with_network          0%{!?_without_network:%{server_drivers}}
78 %define with_storage_fs       0%{!?_without_storage_fs:%{server_drivers}}
79 %define with_storage_lvm      0%{!?_without_storage_lvm:%{server_drivers}}
80 %define with_storage_iscsi    0%{!?_without_storage_iscsi:%{server_drivers}}
81 %define with_storage_disk     0%{!?_without_storage_disk:%{server_drivers}}
82 %define with_storage_mpath    0%{!?_without_storage_mpath:%{server_drivers}}
83 %if 0%{?fedora} >= 16
84 %define with_storage_rbd      0%{!?_without_storage_rbd:%{server_drivers}}
85 %else
86 %define with_storage_rbd      0
87 %endif
88 %if 0%{?fedora} >= 17
89 %define with_storage_sheepdog 0%{!?_without_storage_sheepdog:%{server_drivers}}
90 %else
91 %define with_storage_sheepdog 0
92 %endif
93 %define with_numactl          0%{!?_without_numactl:%{server_drivers}}
94 %define with_selinux          0%{!?_without_selinux:%{server_drivers}}
95
96 # A few optional bits off by default, we enable later
97 %define with_polkit        0%{!?_without_polkit:0}
98 %define with_capng         0%{!?_without_capng:0}
99 %define with_netcf         0%{!?_without_netcf:0}
100 %define with_udev          0%{!?_without_udev:0}
101 %define with_hal           0%{!?_without_hal:0}
102 %define with_yajl          0%{!?_without_yajl:0}
103 %define with_nwfilter      0%{!?_without_nwfilter:0}
104 %define with_libpcap       0%{!?_without_libpcap:0}
105 %define with_macvtap       0%{!?_without_macvtap:0}
106 %define with_libnl         0%{!?_without_libnl:0}
107 %define with_audit         0%{!?_without_audit:0}
108 %define with_dtrace        0%{!?_without_dtrace:0}
109 %define with_cgconfig      0%{!?_without_cgconfig:0}
110 %define with_sanlock       0%{!?_without_sanlock:0}
111 %define with_systemd       0%{!?_without_systemd:0}
112 %define with_numad         0%{!?_without_numad:0}
113 %define with_firewalld     0%{!?_without_firewalld:0}
114
115 # Non-server/HV driver defaults which are always enabled
116 %define with_python        0%{!?_without_python:1}
117 %define with_sasl          0%{!?_without_sasl:1}
118
119
120 # Finally set the OS / architecture specific special cases
121
122 # Xen is available only on i386 x86_64 ia64
123 %ifnarch %{ix86} x86_64 ia64
124 %define with_xen 0
125 %define with_libxl 0
126 %endif
127
128 # Numactl is not available on s390[x] and ARM
129 %ifarch s390 s390x %{arm}
130 %define with_numactl 0
131 %endif
132
133 # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
134 # VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
135 # or HyperV.
136 %if 0%{?rhel}
137 %define with_openvz 0
138 %define with_vbox 0
139 %define with_uml 0
140 %define with_phyp 0
141 %define with_vmware 0
142 %define with_xenapi 0
143 %define with_libxl 0
144 %define with_hyperv 0
145 %define with_parallels 0
146 %endif
147
148 # Fedora 17 / RHEL-7 are first where we use systemd. Although earlier
149 # Fedora has systemd, libvirt still used sysvinit there.
150 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
151 %define with_systemd 1
152 %endif
153
154 # Fedora 18 / RHEL-7 are first where firewalld support is enabled
155 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
156 %define with_firewalld 1
157 %endif
158
159 # RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
160 %if 0%{?rhel} == 5
161 %define with_qemu_tcg 0
162 %ifnarch x86_64
163 %define with_qemu 0
164 %define with_qemu_kvm 0
165 %endif
166 %define with_lxc 0
167 %endif
168
169 # RHEL-6 has restricted QEMU to x86_64 only, stopped including Xen
170 # on all archs. Other archs all have LXC available though
171 %if 0%{?rhel} >= 6
172 %define with_qemu_tcg 0
173 %ifnarch x86_64
174 %define with_qemu 0
175 %define with_qemu_kvm 0
176 %endif
177 %define with_xen 0
178 %endif
179
180 # Fedora doesn't have any QEMU on ppc64 until FC16 - only ppc
181 %if 0%{?fedora} && 0%{?fedora} < 16
182 %ifarch ppc64
183 %define with_qemu 0
184 %endif
185 %endif
186
187 # Fedora doesn't have new enough Xen for libxl until F16
188 %if 0%{?fedora} && 0%{?fedora} < 16
189 %define with_libxl 0
190 %endif
191
192 # PolicyKit was introduced in Fedora 8 / RHEL-6 or newer
193 %if 0%{?fedora} >= 8 || 0%{?rhel} >= 6
194 %define with_polkit    0%{!?_without_polkit:1}
195 %endif
196
197 # libcapng is used to manage capabilities in Fedora 12 / RHEL-6 or newer
198 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
199 %define with_capng     0%{!?_without_capng:1}
200 %endif
201
202 # netcf is used to manage network interfaces in Fedora 12 / RHEL-6 or newer
203 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
204 %define with_netcf     0%{!?_without_netcf:%{server_drivers}}
205 %endif
206
207 # udev is used to manage host devices in Fedora 12 / RHEL-6 or newer
208 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
209 %define with_udev     0%{!?_without_udev:%{server_drivers}}
210 %else
211 %define with_hal       0%{!?_without_hal:%{server_drivers}}
212 %endif
213
214 # Enable yajl library for JSON mode with QEMU
215 %if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
216 %define with_yajl     0%{!?_without_yajl:%{server_drivers}}
217 %endif
218
219 # Enable sanlock library for lock management with QEMU
220 # Sanlock is available only on i686 x86_64 for RHEL
221 %if 0%{?fedora} >= 16
222 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
223 %endif
224 %if 0%{?rhel} >= 6
225 %ifarch %{ix86} x86_64
226 %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
227 %endif
228 %endif
229
230 # Disable some drivers when building without libvirt daemon.
231 # The logic is the same as in configure.ac
232 %if ! %{with_libvirtd}
233 %define with_network 0
234 %define with_qemu 0
235 %define with_lxc 0
236 %define with_uml 0
237 %define with_hal 0
238 %define with_udev 0
239 %define with_storage_fs 0
240 %define with_storage_lvm 0
241 %define with_storage_iscsi 0
242 %define with_storage_mpath 0
243 %define with_storage_rbd 0
244 %define with_storage_sheepdog 0
245 %define with_storage_disk 0
246 %endif
247
248 %if %{with_qemu} || %{with_lxc} || %{with_uml}
249 %define with_nwfilter 0%{!?_without_nwfilter:%{server_drivers}}
250 # Enable libpcap library
251 %define with_libpcap  0%{!?_without_libpcap:%{server_drivers}}
252 %define with_macvtap  0%{!?_without_macvtap:%{server_drivers}}
253
254 # numad is used to manage the CPU and memory placement dynamically,
255 # it's not available on s390[x] and ARM.
256 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
257 %ifnarch s390 s390x %{arm}
258 %define with_numad    0%{!?_without_numad:%{server_drivers}}
259 %endif
260 %endif
261 %endif
262
263 %if %{with_macvtap}
264 %define with_libnl 1
265 %endif
266
267 %if 0%{?fedora} >= 11 || 0%{?rhel} >= 5
268 %define with_audit    0%{!?_without_audit:1}
269 %endif
270
271 %if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
272 %define with_dtrace 1
273 %endif
274
275 # Pull in cgroups config system
276 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
277 %if %{with_qemu} || %{with_lxc}
278 %define with_cgconfig 0%{!?_without_cgconfig:1}
279 %endif
280 %endif
281
282 %if %{with_udev} || %{with_hal}
283 %define with_nodedev 1
284 %else
285 %define with_nodedev 0
286 %endif
287
288 %if %{with_netcf}
289 %define with_interface 1
290 %else
291 %define with_interface 0
292 %endif
293
294 %if %{with_storage_fs} || %{with_storage_mpath} || %{with_storage_iscsi} || %{with_storage_lvm} || %{with_storage_disk}
295 %define with_storage 1
296 %else
297 %define with_storage 0
298 %endif
299
300
301 # Force QEMU to run as non-root
302 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
303 %define qemu_user  qemu
304 %define qemu_group  qemu
305 %else
306 %define qemu_user  root
307 %define qemu_group  root
308 %endif
309
310
311 # The RHEL-5 Xen package has some feature backports. This
312 # flag is set to enable use of those special bits on RHEL-5
313 %if 0%{?rhel} == 5
314 %define with_rhel5  1
315 %else
316 %define with_rhel5  0
317 %endif
318
319 Summary: Library providing a simple virtualization API
320 Name: libvirt
321 Version: %{mainstream_version}
322 Release: %{taglevel}
323 License: LGPLv2+
324 Group: Development/Libraries
325 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
326 URL: http://libvirt.org/
327
328 %if %(echo %{version} | grep -o \\. | wc -l) == 3
329 %define mainturl stable_updates/
330 %endif
331 Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.gz
332
333 %if %{with_libvirtd}
334 Requires: libvirt-daemon = %{version}-%{release}
335 %if %{with_network}
336 Requires: libvirt-daemon-config-network = %{version}-%{release}
337 %endif
338 %if %{with_nwfilter}
339 Requires: libvirt-daemon-config-nwfilter = %{version}-%{release}
340 %endif
341 %if %{with_driver_modules}
342 %if %{with_libxl}
343 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
344 %endif
345 %if %{with_lxc}
346 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
347 %endif
348 %if %{with_qemu}
349 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
350 %endif
351 %if %{with_uml}
352 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
353 %endif
354 %if %{with_xen}
355 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
356 %endif
357
358 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
359 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
360 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
361 Requires: libvirt-daemon-driver-network = %{version}-%{release}
362 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
363 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
364 %endif
365 %endif
366 Requires: libvirt-client = %{version}-%{release}
367
368 # All build-time requirements. Run-time requirements are
369 # listed against each sub-RPM
370 %if 0%{?enable_autotools}
371 BuildRequires: autoconf
372 BuildRequires: automake
373 BuildRequires: gettext-devel
374 BuildRequires: libtool
375 %endif
376 BuildRequires: python-devel
377 %if %{with_systemd}
378 BuildRequires: systemd-units
379 %endif
380 %if %{with_xen}
381 BuildRequires: xen-devel
382 %endif
383 BuildRequires: libxml2-devel
384 BuildRequires: xhtml1-dtds
385 BuildRequires: libxslt
386 BuildRequires: readline-devel
387 BuildRequires: ncurses-devel
388 BuildRequires: gettext
389 BuildRequires: libtasn1-devel
390 BuildRequires: gnutls-devel
391 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
392 # for augparse, optionally used in testing
393 BuildRequires: augeas
394 %endif
395 %if %{with_hal}
396 BuildRequires: hal-devel
397 %endif
398 %if %{with_udev}
399 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
400 BuildRequires: systemd-devel >= 185
401 %else
402 BuildRequires: libudev-devel >= 145
403 %endif
404 BuildRequires: libpciaccess-devel >= 0.10.9
405 %endif
406 %if %{with_yajl}
407 BuildRequires: yajl-devel
408 %endif
409 %if %{with_sanlock}
410 BuildRequires: sanlock-devel >= 1.8
411 %endif
412 %if %{with_libpcap}
413 BuildRequires: libpcap-devel
414 %endif
415 %if %{with_libnl}
416 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
417 BuildRequires: libnl3-devel
418 %else
419 BuildRequires: libnl-devel
420 %endif
421 %endif
422 %if %{with_avahi}
423 BuildRequires: avahi-devel
424 %endif
425 %if %{with_selinux}
426 BuildRequires: libselinux-devel
427 %endif
428 %if %{with_network}
429 BuildRequires: dnsmasq >= 2.41
430 BuildRequires: iptables
431 BuildRequires: iptables-ipv6
432 BuildRequires: radvd
433 %endif
434 %if %{with_nwfilter}
435 BuildRequires: ebtables
436 %endif
437 BuildRequires: module-init-tools
438 %if %{with_sasl}
439 BuildRequires: cyrus-sasl-devel
440 %endif
441 %if %{with_polkit}
442 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
443 # Only need the binary, not -devel
444 BuildRequires: polkit >= 0.93
445 %else
446 BuildRequires: PolicyKit-devel >= 0.6
447 %endif
448 %endif
449 %if %{with_storage_fs}
450 # For mount/umount in FS driver
451 BuildRequires: util-linux
452 %endif
453 %if %{with_qemu}
454 # From QEMU RPMs
455 BuildRequires: /usr/bin/qemu-img
456 %else
457 %if %{with_xen}
458 # From Xen RPMs
459 BuildRequires: /usr/sbin/qcow-create
460 %endif
461 %endif
462 %if %{with_storage_lvm}
463 # For LVM drivers
464 BuildRequires: lvm2
465 %endif
466 %if %{with_storage_iscsi}
467 # For ISCSI driver
468 BuildRequires: iscsi-initiator-utils
469 %endif
470 %if %{with_storage_disk}
471 # For disk driver
472 BuildRequires: parted-devel
473 %if 0%{?rhel} == 5
474 # Broken RHEL-5 parted RPM is missing a dep
475 BuildRequires: e2fsprogs-devel
476 %endif
477 %endif
478 %if %{with_storage_mpath}
479 # For Multipath support
480 %if 0%{?rhel} == 5
481 # Broken RHEL-5 packaging has header files in main RPM :-(
482 BuildRequires: device-mapper
483 %else
484 BuildRequires: device-mapper-devel
485 %endif
486 %if %{with_storage_rbd}
487 BuildRequires: ceph-devel
488 %endif
489 %endif
490 %if %{with_numactl}
491 # For QEMU/LXC numa info
492 BuildRequires: numactl-devel
493 %endif
494 %if %{with_capng}
495 BuildRequires: libcap-ng-devel >= 0.5.0
496 %endif
497 %if %{with_phyp}
498 BuildRequires: libssh2-devel
499 %endif
500
501 %if %{with_netcf}
502 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
503 BuildRequires: netcf-devel >= 0.2.2
504 %else
505 %if 0%{?fedora} >= 16 || 0%{?rhel} >= 6
506 BuildRequires: netcf-devel >= 0.1.8
507 %else
508 BuildRequires: netcf-devel >= 0.1.4
509 %endif
510 %endif
511 %endif
512 %if %{with_esx}
513 %if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
514 BuildRequires: libcurl-devel
515 %else
516 BuildRequires: curl-devel
517 %endif
518 %endif
519 %if %{with_hyperv}
520 BuildRequires: libwsman-devel >= 2.2.3
521 %endif
522 %if %{with_audit}
523 BuildRequires: audit-libs-devel
524 %endif
525 %if %{with_dtrace}
526 # we need /usr/sbin/dtrace
527 BuildRequires: systemtap-sdt-devel
528 %endif
529
530 %if %{with_storage_fs}
531 # For mount/umount in FS driver
532 BuildRequires: util-linux
533 # For showmount in FS driver (netfs discovery)
534 BuildRequires: nfs-utils
535 %endif
536
537 %if %{with_firewalld}
538 # Communication with the firewall daemon uses DBus
539 BuildRequires: dbus-devel
540 %endif
541
542 # Fedora build root suckage
543 BuildRequires: gawk
544
545 # For storage wiping with different algorithms
546 BuildRequires: scrub
547
548 %if %{with_numad}
549 BuildRequires: numad
550 %endif
551
552 Provides: bundled(gnulib)
553
554 %description
555 Libvirt is a C toolkit to interact with the virtualization capabilities
556 of recent versions of Linux (and other OSes). The main package includes
557 the libvirtd server exporting the virtualization support.
558
559 %package docs
560 Summary: API reference and website documentation
561 Group: Development/Libraries
562
563 %description docs
564 Includes the API reference for the libvirt C library, and a complete
565 copy of the libvirt.org website documentation.
566
567 %if %{with_libvirtd}
568 %package daemon
569 Summary: Server side daemon and supporting files for libvirt library
570 Group: Development/Libraries
571
572 # All runtime requirements for the libvirt package (runtime requrements
573 # for subpackages are listed later in those subpackages)
574
575 # The client side, i.e. shared libs and virsh are in a subpackage
576 Requires: %{name}-client = %{version}-%{release}
577
578 # for modprobe of pci devices
579 Requires: module-init-tools
580 # for /sbin/ip & /sbin/tc
581 Requires: iproute
582 %if %{with_avahi}
583 Requires: avahi-libs
584 %endif
585 %if %{with_network}
586 Requires: dnsmasq >= 2.41
587 Requires: radvd
588 %endif
589 %if %{with_network} || %{with_nwfilter}
590 Requires: iptables
591 Requires: iptables-ipv6
592 %endif
593 %if %{with_nwfilter}
594 Requires: ebtables
595 %endif
596 # needed for device enumeration
597 %if %{with_hal}
598 Requires: hal
599 %endif
600 %if %{with_udev}
601 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
602 Requires: systemd >= 185
603 %else
604 Requires: udev >= 145
605 %endif
606 %endif
607 %if %{with_polkit}
608 %if 0%{?fedora} >= 12 || 0%{?rhel} >=6
609 Requires: polkit >= 0.93
610 %else
611 Requires: PolicyKit >= 0.6
612 %endif
613 %endif
614 %if %{with_storage_fs}
615 Requires: nfs-utils
616 # For mkfs
617 Requires: util-linux-ng
618 # For pool-build probing for existing pools
619 BuildRequires: libblkid-devel >= 2.17
620 # For glusterfs
621 %if 0%{?fedora} >= 11
622 Requires: glusterfs-client >= 2.0.1
623 %endif
624 %endif
625 %if %{with_qemu}
626 # From QEMU RPMs
627 Requires: /usr/bin/qemu-img
628 # For image compression
629 Requires: gzip
630 Requires: bzip2
631 Requires: lzop
632 Requires: xz
633 %else
634 %if %{with_xen}
635 # From Xen RPMs
636 Requires: /usr/sbin/qcow-create
637 %endif
638 %endif
639 %if %{with_storage_lvm}
640 # For LVM drivers
641 Requires: lvm2
642 %endif
643 %if %{with_storage_iscsi}
644 # For ISCSI driver
645 Requires: iscsi-initiator-utils
646 %endif
647 %if %{with_storage_disk}
648 # For disk driver
649 Requires: parted
650 Requires: device-mapper
651 %endif
652 %if %{with_storage_mpath}
653 # For multipath support
654 Requires: device-mapper
655 %endif
656 %if %{with_storage_rbd}
657 # For RBD support
658 Requires: ceph
659 %endif
660 %if %{with_storage_sheepdog}
661 # For Sheepdog support
662 Requires: sheepdog
663 %endif
664 %if %{with_cgconfig}
665 Requires: libcgroup
666 %endif
667 %ifarch %{ix86} x86_64 ia64
668 # For virConnectGetSysinfo
669 Requires: dmidecode
670 %endif
671 # For service management
672 %if %{with_systemd}
673 Requires(post): systemd-units
674 Requires(post): systemd-sysv
675 Requires(preun): systemd-units
676 Requires(postun): systemd-units
677 %endif
678 %if %{with_numad}
679 Requires: numad
680 %endif
681
682 %description daemon
683 Server side daemon required to manage the virtualization capabilities
684 of recent versions of Linux. Requires a hypervisor specific sub-RPM
685 for specific drivers.
686
687 %if %{with_network}
688 %package daemon-config-network
689 Summary: Default configuration files for the libvirtd daemon
690 Group: Development/Libraries
691
692 Requires: libvirt-daemon = %{version}-%{release}
693
694 %description daemon-config-network
695 Default configuration files for setting up NAT based networking
696 %endif
697
698 %if %{with_nwfilter}
699 %package daemon-config-nwfilter
700 Summary: Network filter configuration files for the libvirtd daemon
701 Group: Development/Libraries
702
703 Requires: libvirt-daemon = %{version}-%{release}
704
705 %description daemon-config-nwfilter
706 Network filter configuration files for cleaning guest traffic
707 %endif
708
709 %if %{with_driver_modules}
710 %if %{with_network}
711 %package daemon-driver-network
712 Summary: Network driver plugin for the libvirtd daemon
713 Group: Development/Libraries
714 Requires: libvirt-daemon = %{version}-%{release}
715
716 %description daemon-driver-network
717 The network driver plugin for the libvirtd daemon, providing
718 an implementation of the virtual network APIs using the Linux
719 bridge capabilities.
720 %endif
721
722
723 %if %{with_nwfilter}
724 %package daemon-driver-nwfilter
725 Summary: Nwfilter driver plugin for the libvirtd daemon
726 Group: Development/Libraries
727 Requires: libvirt-daemon = %{version}-%{release}
728
729 %description daemon-driver-nwfilter
730 The nwfilter driver plugin for the libvirtd daemon, providing
731 an implementation of the firewall APIs using the ebtables,
732 iptables and ip6tables capabilities
733 %endif
734
735
736 %if %{with_nodedev}
737 %package daemon-driver-nodedev
738 Summary: Nodedev driver plugin for the libvirtd daemon
739 Group: Development/Libraries
740 Requires: libvirt-daemon = %{version}-%{release}
741
742 %description daemon-driver-nodedev
743 The nodedev driver plugin for the libvirtd daemon, providing
744 an implementation of the node device APIs using the udev
745 capabilities.
746 %endif
747
748
749 %if %{with_interface}
750 %package daemon-driver-interface
751 Summary: Interface driver plugin for the libvirtd daemon
752 Group: Development/Libraries
753 Requires: libvirt-daemon = %{version}-%{release}
754
755 %description daemon-driver-interface
756 The interface driver plugin for the libvirtd daemon, providing
757 an implementation of the network interface APIs using the
758 netcf library
759 %endif
760
761
762 %package daemon-driver-secret
763 Summary: Secret driver plugin for the libvirtd daemon
764 Group: Development/Libraries
765 Requires: libvirt-daemon = %{version}-%{release}
766
767 %description daemon-driver-secret
768 The secret driver plugin for the libvirtd daemon, providing
769 an implementation of the secret key APIs.
770
771
772 %if %{with_storage}
773 %package daemon-driver-storage
774 Summary: Storage driver plugin for the libvirtd daemon
775 Group: Development/Libraries
776 Requires: libvirt-daemon = %{version}-%{release}
777
778 %description daemon-driver-storage
779 The storage driver plugin for the libvirtd daemon, providing
780 an implementation of the storage APIs using LVM, iSCSI,
781 parted and more.
782 %endif
783
784
785 %if %{with_qemu}
786 %package daemon-driver-qemu
787 Summary: Qemu driver plugin for the libvirtd daemon
788 Group: Development/Libraries
789 Requires: libvirt-daemon = %{version}-%{release}
790 # There really is a hard cross-driver dependency here
791 %if %{with_driver_modules}
792 Requires: libvirt-daemon-driver-network = %{version}-%{release}
793 %endif
794
795 %description daemon-driver-qemu
796 The qemu driver plugin for the libvirtd daemon, providing
797 an implementation of the hypervisor driver APIs using
798 QEMU
799 %endif
800
801
802 %if %{with_lxc}
803 %package daemon-driver-lxc
804 Summary: LXC driver plugin for the libvirtd daemon
805 Group: Development/Libraries
806 Requires: libvirt-daemon = %{version}-%{release}
807 # There really is a hard cross-driver dependency here
808 %if %{with_driver_modules}
809 Requires: libvirt-daemon-driver-network = %{version}-%{release}
810 %endif
811
812 %description daemon-driver-lxc
813 The LXC driver plugin for the libvirtd daemon, providing
814 an implementation of the hypervisor driver APIs using
815 the Linux kernel
816 %endif
817
818
819 %if %{with_uml}
820 %package daemon-driver-uml
821 Summary: Uml driver plugin for the libvirtd daemon
822 Group: Development/Libraries
823 Requires: libvirt-daemon = %{version}-%{release}
824
825 %description daemon-driver-uml
826 The UML driver plugin for the libvirtd daemon, providing
827 an implementation of the hypervisor driver APIs using
828 User Mode Linux
829 %endif
830
831
832 %if %{with_xen}
833 %package daemon-driver-xen
834 Summary: Xen driver plugin for the libvirtd daemon
835 Group: Development/Libraries
836 Requires: libvirt-daemon = %{version}-%{release}
837
838 %description daemon-driver-xen
839 The Xen driver plugin for the libvirtd daemon, providing
840 an implementation of the hypervisor driver APIs using
841 Xen
842 %endif
843
844
845 %if %{with_libxl}
846 %package daemon-driver-libxl
847 Summary: Libxl driver plugin for the libvirtd daemon
848 Group: Development/Libraries
849 Requires: libvirt-daemon = %{version}-%{release}
850
851 %description daemon-driver-libxl
852 The Libxl driver plugin for the libvirtd daemon, providing
853 an implementation of the hypervisor driver APIs using
854 Libxl
855 %endif
856 %endif
857
858
859
860 %if %{with_qemu_tcg}
861 %package daemon-qemu
862 Summary: Server side daemon & driver required to run QEMU guests
863 Group: Development/Libraries
864
865 Requires: libvirt-daemon = %{version}-%{release}
866 %if %{with_driver_modules}
867 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
868 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
869 Requires: libvirt-daemon-driver-network = %{version}-%{release}
870 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
871 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
872 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
873 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
874 %endif
875 Requires: qemu
876
877 %description daemon-qemu
878 Server side daemon and driver required to manage the virtualization
879 capabilities of the QEMU TCG emulators
880 %endif
881
882
883 %if %{with_qemu_kvm}
884 %package daemon-kvm
885 Summary: Server side daemon & driver required to run KVM guests
886 Group: Development/Libraries
887
888 Requires: libvirt-daemon = %{version}-%{release}
889 %if %{with_driver_modules}
890 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
891 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
892 Requires: libvirt-daemon-driver-network = %{version}-%{release}
893 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
894 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
895 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
896 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
897 %endif
898 Requires: qemu-kvm
899
900 %description daemon-kvm
901 Server side daemon and driver required to manage the virtualization
902 capabilities of the KVM hypervisor
903 %endif
904
905
906 %if %{with_lxc}
907 %package daemon-lxc
908 Summary: Server side daemon & driver required to run LXC guests
909 Group: Development/Libraries
910
911 Requires: libvirt-daemon = %{version}-%{release}
912 %if %{with_driver_modules}
913 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
914 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
915 Requires: libvirt-daemon-driver-network = %{version}-%{release}
916 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
917 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
918 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
919 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
920 %endif
921
922 %description daemon-lxc
923 Server side daemon and driver required to manage the virtualization
924 capabilities of LXC
925 %endif
926
927
928 %if %{with_uml}
929 %package daemon-uml
930 Summary: Server side daemon & driver required to run UML guests
931 Group: Development/Libraries
932
933 Requires: libvirt-daemon = %{version}-%{release}
934 %if %{with_driver_modules}
935 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
936 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
937 Requires: libvirt-daemon-driver-network = %{version}-%{release}
938 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
939 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
940 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
941 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
942 %endif
943 # There are no UML kernel RPMs in Fedora/RHEL to depend on.
944
945 %description daemon-uml
946 Server side daemon and driver required to manage the virtualization
947 capabilities of UML
948 %endif
949
950
951 %if %{with_xen} || %{with_libxl}
952 %package daemon-xen
953 Summary: Server side daemon & driver required to run XEN guests
954 Group: Development/Libraries
955
956 Requires: libvirt-daemon = %{version}-%{release}
957 %if %{with_driver_modules}
958 %if %{with_xen}
959 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
960 %endif
961 %if %{with_libxl}
962 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
963 %endif
964 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
965 Requires: libvirt-daemon-driver-network = %{version}-%{release}
966 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
967 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
968 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
969 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
970 %endif
971 Requires: xen
972
973 %description daemon-xen
974 Server side daemon and driver required to manage the virtualization
975 capabilities of XEN
976 %endif
977 %endif
978
979 %package client
980 Summary: Client side library and utilities of the libvirt library
981 Group: Development/Libraries
982 Requires: readline
983 Requires: ncurses
984 # So remote clients can access libvirt over SSH tunnel
985 # (client invokes 'nc' against the UNIX socket on the server)
986 Requires: nc
987 # Needed by libvirt-guests init script.
988 Requires: gettext
989 # Needed by virt-pki-validate script.
990 Requires: gnutls-utils
991 # Needed for probing the power management features of the host.
992 Requires: pm-utils
993 %if %{with_sasl}
994 Requires: cyrus-sasl
995 # Not technically required, but makes 'out-of-box' config
996 # work correctly & doesn't have onerous dependencies
997 Requires: cyrus-sasl-md5
998 %endif
999
1000 %description client
1001 Shared libraries and client binaries needed to access to the
1002 virtualization capabilities of recent versions of Linux (and other OSes).
1003
1004 %package devel
1005 Summary: Libraries, includes, etc. to compile with the libvirt library
1006 Group: Development/Libraries
1007 Requires: %{name}-client = %{version}-%{release}
1008 Requires: %{name}-docs = %{version}-%{release}
1009 Requires: pkgconfig
1010
1011 %description devel
1012 Include header files & development libraries for the libvirt C library.
1013
1014 %if %{with_sanlock}
1015 %package lock-sanlock
1016 Summary: Sanlock lock manager plugin for QEMU driver
1017 Group: Development/Libraries
1018 Requires: sanlock >= 1.8
1019 #for virt-sanlock-cleanup require augeas
1020 Requires: augeas
1021 Requires: %{name}-daemon = %{version}-%{release}
1022
1023 %description lock-sanlock
1024 Includes the Sanlock lock manager plugin for the QEMU
1025 driver
1026 %endif
1027
1028 %if %{with_python}
1029 %package python
1030 Summary: Python bindings for the libvirt library
1031 Group: Development/Libraries
1032 Requires: %{name}-client = %{version}-%{release}
1033
1034 %description python
1035 The libvirt-python package contains a module that permits applications
1036 written in the Python programming language to use the interface
1037 supplied by the libvirt library to use the virtualization capabilities
1038 of recent versions of Linux (and other OSes).
1039 %endif
1040
1041 %prep
1042 %setup -q
1043
1044 %build
1045 %if ! %{with_xen}
1046 %define _without_xen --without-xen
1047 %endif
1048
1049 %if ! %{with_qemu}
1050 %define _without_qemu --without-qemu
1051 %endif
1052
1053 %if ! %{with_openvz}
1054 %define _without_openvz --without-openvz
1055 %endif
1056
1057 %if ! %{with_lxc}
1058 %define _without_lxc --without-lxc
1059 %endif
1060
1061 %if ! %{with_vbox}
1062 %define _without_vbox --without-vbox
1063 %endif
1064
1065 %if ! %{with_xenapi}
1066 %define _without_xenapi --without-xenapi
1067 %endif
1068
1069 %if ! %{with_libxl}
1070 %define _without_libxl --without-libxl
1071 %endif
1072
1073 %if ! %{with_sasl}
1074 %define _without_sasl --without-sasl
1075 %endif
1076
1077 %if ! %{with_avahi}
1078 %define _without_avahi --without-avahi
1079 %endif
1080
1081 %if ! %{with_phyp}
1082 %define _without_phyp --without-phyp
1083 %endif
1084
1085 %if ! %{with_esx}
1086 %define _without_esx --without-esx
1087 %endif
1088
1089 %if ! %{with_hyperv}
1090 %define _without_hyperv --without-hyperv
1091 %endif
1092
1093 %if ! %{with_vmware}
1094 %define _without_vmware --without-vmware
1095 %endif
1096
1097 %if ! %{with_parallels}
1098 %define _without_parallels --without-parallels
1099 %endif
1100
1101 %if ! %{with_polkit}
1102 %define _without_polkit --without-polkit
1103 %endif
1104
1105 %if ! %{with_python}
1106 %define _without_python --without-python
1107 %endif
1108
1109 %if ! %{with_libvirtd}
1110 %define _without_libvirtd --without-libvirtd
1111 %endif
1112
1113 %if ! %{with_uml}
1114 %define _without_uml --without-uml
1115 %endif
1116
1117 %if %{with_rhel5}
1118 %define _with_rhel5_api --with-rhel5-api
1119 %endif
1120
1121 %if ! %{with_network}
1122 %define _without_network --without-network
1123 %endif
1124
1125 %if ! %{with_storage_fs}
1126 %define _without_storage_fs --without-storage-fs
1127 %endif
1128
1129 %if ! %{with_storage_lvm}
1130 %define _without_storage_lvm --without-storage-lvm
1131 %endif
1132
1133 %if ! %{with_storage_iscsi}
1134 %define _without_storage_iscsi --without-storage-iscsi
1135 %endif
1136
1137 %if ! %{with_storage_disk}
1138 %define _without_storage_disk --without-storage-disk
1139 %endif
1140
1141 %if ! %{with_storage_mpath}
1142 %define _without_storage_mpath --without-storage-mpath
1143 %endif
1144
1145 %if ! %{with_storage_rbd}
1146 %define _without_storage_rbd --without-storage-rbd
1147 %endif
1148
1149 %if ! %{with_storage_sheepdog}
1150 %define _without_storage_sheepdog --without-storage-sheepdog
1151 %endif
1152
1153 %if ! %{with_numactl}
1154 %define _without_numactl --without-numactl
1155 %endif
1156
1157 %if ! %{with_numad}
1158 %define _without_numad --without-numad
1159 %endif
1160
1161 %if ! %{with_capng}
1162 %define _without_capng --without-capng
1163 %endif
1164
1165 %if ! %{with_netcf}
1166 %define _without_netcf --without-netcf
1167 %endif
1168
1169 %if ! %{with_selinux}
1170 %define _without_selinux --without-selinux
1171 %endif
1172
1173 %if ! %{with_hal}
1174 %define _without_hal --without-hal
1175 %endif
1176
1177 %if ! %{with_udev}
1178 %define _without_udev --without-udev
1179 %endif
1180
1181 %if ! %{with_yajl}
1182 %define _without_yajl --without-yajl
1183 %endif
1184
1185 %if ! %{with_sanlock}
1186 %define _without_sanlock --without-sanlock
1187 %endif
1188
1189 %if ! %{with_libpcap}
1190 %define _without_libpcap --without-libpcap
1191 %endif
1192
1193 %if ! %{with_macvtap}
1194 %define _without_macvtap --without-macvtap
1195 %endif
1196
1197 %if ! %{with_audit}
1198 %define _without_audit --without-audit
1199 %endif
1200
1201 %if ! %{with_dtrace}
1202 %define _without_dtrace --without-dtrace
1203 %endif
1204
1205 %if ! %{with_driver_modules}
1206 %define _without_driver_modules --without-driver-modules
1207 %endif
1208
1209 %if %{with_firewalld}
1210 %define _with_firewalld --with-firewalld
1211 %endif
1212
1213 %define when  %(date +"%%F-%%T")
1214 %define where %(hostname)
1215 %define who   %{?packager}%{!?packager:Unknown}
1216 %define with_packager --with-packager="%{who}, %{when}, %{where}"
1217 %define with_packager_version --with-packager-version="%{release}"
1218
1219 %if %{with_systemd}
1220 # We use 'systemd+redhat', so if someone installs upstart or
1221 # legacy init scripts, they can still start libvirtd, etc
1222 %define init_scripts --with-init_script=systemd+redhat
1223 %else
1224 %define init_scripts --with-init_script=redhat
1225 %endif
1226
1227 %if 0%{?enable_autotools}
1228 autoreconf -if
1229 %endif
1230 %configure %{?_without_xen} \
1231            %{?_without_qemu} \
1232            %{?_without_openvz} \
1233            %{?_without_lxc} \
1234            %{?_without_vbox} \
1235            %{?_without_libxl} \
1236            %{?_without_xenapi} \
1237            %{?_without_sasl} \
1238            %{?_without_avahi} \
1239            %{?_without_polkit} \
1240            %{?_without_python} \
1241            %{?_without_libvirtd} \
1242            %{?_without_uml} \
1243            %{?_without_phyp} \
1244            %{?_without_esx} \
1245            %{?_without_hyperv} \
1246            %{?_without_vmware} \
1247            %{?_without_parallels} \
1248            %{?_without_network} \
1249            %{?_with_rhel5_api} \
1250            %{?_without_storage_fs} \
1251            %{?_without_storage_lvm} \
1252            %{?_without_storage_iscsi} \
1253            %{?_without_storage_disk} \
1254            %{?_without_storage_mpath} \
1255            %{?_without_storage_rbd} \
1256            %{?_without_storage_sheepdog} \
1257            %{?_without_numactl} \
1258            %{?_without_numad} \
1259            %{?_without_capng} \
1260            %{?_without_netcf} \
1261            %{?_without_selinux} \
1262            %{?_without_hal} \
1263            %{?_without_udev} \
1264            %{?_without_yajl} \
1265            %{?_without_sanlock} \
1266            %{?_without_libpcap} \
1267            %{?_without_macvtap} \
1268            %{?_without_audit} \
1269            %{?_without_dtrace} \
1270            %{?_without_driver_modules} \
1271            %{?_with_firewalld} \
1272            %{with_packager} \
1273            %{with_packager_version} \
1274            --with-qemu-user=%{qemu_user} \
1275            --with-qemu-group=%{qemu_group} \
1276            %{init_scripts}
1277 make %{?_smp_mflags}
1278 gzip -9 ChangeLog
1279
1280 %install
1281 rm -fr %{buildroot}
1282
1283 %makeinstall SYSTEMD_UNIT_DIR=%{buildroot}%{_unitdir}
1284 for i in domain-events/events-c dominfo domsuspend hellolibvirt openauth python xml/nwfilter systemtap
1285 do
1286   (cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
1287 done
1288 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
1289 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
1290 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
1291 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
1292 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la
1293 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a
1294 %if %{with_driver_modules}
1295 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la
1296 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a
1297 %endif
1298
1299 %if %{with_network}
1300 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/
1301 # We don't want to install /etc/libvirt/qemu/networks in the main %files list
1302 # because if the admin wants to delete the default network completely, we don't
1303 # want to end up re-incarnating it on every RPM upgrade.
1304 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/
1305 cp $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml \
1306    $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1307 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1308 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1309 # Strip auto-generated UUID - we need it generated per-install
1310 sed -i -e "/<uuid>/d" $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1311 %else
1312 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1313 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1314 %endif
1315 %if ! %{with_qemu}
1316 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug
1317 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
1318 %endif
1319 %find_lang %{name}
1320
1321 %if ! %{with_sanlock}
1322 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirt_sanlock.aug
1323 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
1324 %endif
1325
1326 %if ! %{with_lxc}
1327 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
1328 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
1329 %endif
1330
1331 %if ! %{with_python}
1332 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-python-%{version}
1333 %endif
1334
1335 %if ! %{with_qemu}
1336 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
1337 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu
1338 %endif
1339 %if ! %{with_lxc}
1340 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
1341 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc
1342 %endif
1343 %if ! %{with_uml}
1344 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml
1345 %endif
1346
1347 mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version} \
1348    $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-docs-%{version}
1349
1350 %clean
1351 rm -fr %{buildroot}
1352
1353 %check
1354 cd tests
1355 make
1356 # These tests don't current work in a mock build root
1357 for i in nodeinfotest seclabeltest
1358 do
1359   rm -f $i
1360   printf 'int main(void) { return 0; }' > $i.c
1361   printf '#!/bin/sh\nexit 0\n' > $i
1362   chmod +x $i
1363 done
1364 make check
1365
1366 %if %{with_libvirtd}
1367 %pre daemon
1368 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1369 # Normally 'setup' adds this in /etc/passwd, but this is
1370 # here for case of upgrades from earlier Fedora/RHEL. This
1371 # UID/GID pair is reserved for qemu:qemu
1372 getent group kvm >/dev/null || groupadd -g 36 -r kvm
1373 getent group qemu >/dev/null || groupadd -g 107 -r qemu
1374 getent passwd qemu >/dev/null || \
1375   useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
1376     -c "qemu user" qemu
1377 %endif
1378
1379 %post daemon
1380
1381 %if %{with_network}
1382 # All newly defined networks will have a mac address for the bridge
1383 # auto-generated, but networks already existing at the time of upgrade
1384 # will not. We need to go through all the network configs, look for
1385 # those that don't have a mac address, and add one.
1386
1387 network_files=$( (cd %{_localstatedir}/lib/libvirt/network && \
1388                   grep -L "mac address" *.xml; \
1389                   cd %{_sysconfdir}/libvirt/qemu/networks && \
1390                   grep -L "mac address" *.xml) 2>/dev/null \
1391                 | sort -u)
1392
1393 for file in $network_files
1394 do
1395    # each file exists in either the config or state directory (or both) and
1396    # does not have a mac address specified in either. We add the same mac
1397    # address to both files (or just one, if the other isn't there)
1398
1399    mac4=`printf '%X' $(($RANDOM % 256))`
1400    mac5=`printf '%X' $(($RANDOM % 256))`
1401    mac6=`printf '%X' $(($RANDOM % 256))`
1402    for dir in %{_localstatedir}/lib/libvirt/network \
1403               %{_sysconfdir}/libvirt/qemu/networks
1404    do
1405       if test -f $dir/$file
1406       then
1407          sed -i.orig -e \
1408            "s|\(<bridge.*$\)|\0\n  <mac address='52:54:00:$mac4:$mac5:$mac6'/>|" \
1409            $dir/$file
1410          if test $? != 0
1411          then
1412              echo "failed to add <mac address='52:54:00:$mac4:$mac5:$mac6'/>" \
1413                   "to $dir/$file"
1414              mv -f $dir/$file.orig $dir/$file
1415          else
1416              rm -f $dir/$file.orig
1417          fi
1418       fi
1419    done
1420 done
1421 %endif
1422
1423 %if %{with_systemd}
1424 if [ $1 -eq 1 ] ; then
1425     # Initial installation
1426     /bin/systemctl enable libvirtd.service >/dev/null 2>&1 || :
1427     /bin/systemctl enable cgconfig.service >/dev/null 2>&1 || :
1428 fi
1429 %else
1430 %if %{with_cgconfig}
1431 # Starting with Fedora 16/RHEL-7, systemd automounts all cgroups,
1432 # and cgconfig is no longer a necessary service.
1433 %if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 16)
1434 if [ "$1" -eq "1" ]; then
1435 /sbin/chkconfig cgconfig on
1436 fi
1437 %endif
1438 %endif
1439
1440 /sbin/chkconfig --add libvirtd
1441 if [ "$1" -ge "1" ]; then
1442     /sbin/service libvirtd condrestart > /dev/null 2>&1
1443 fi
1444 %endif
1445
1446 %preun daemon
1447 %if %{with_systemd}
1448 if [ $1 -eq 0 ] ; then
1449     # Package removal, not upgrade
1450     /bin/systemctl --no-reload disable libvirtd.service > /dev/null 2>&1 || :
1451     /bin/systemctl stop libvirtd.service > /dev/null 2>&1 || :
1452 fi
1453 %else
1454 if [ $1 = 0 ]; then
1455     /sbin/service libvirtd stop 1>/dev/null 2>&1
1456     /sbin/chkconfig --del libvirtd
1457 fi
1458 %endif
1459
1460 %postun daemon
1461 %if %{with_systemd}
1462 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
1463 if [ $1 -ge 1 ] ; then
1464     # Package upgrade, not uninstall
1465     /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1466 fi
1467 %endif
1468
1469 %if %{with_network}
1470 %post daemon-config-network
1471 if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then
1472     UUID=`/usr/bin/uuidgen`
1473     sed -e "s,</name>,</name>\n  <uuid>$UUID</uuid>," \
1474          < %{_datadir}/libvirt/networks/default.xml \
1475          > %{_sysconfdir}/libvirt/qemu/networks/default.xml
1476     ln -s ../default.xml %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1477 fi
1478 %endif
1479 %endif
1480
1481 %if %{with_libvirtd}
1482 %if %{with_systemd}
1483 %triggerun -- libvirt < 0.9.4
1484 %{_bindir}/systemd-sysv-convert --save libvirtd >/dev/null 2>&1 ||:
1485
1486 # If the package is allowed to autostart:
1487 /bin/systemctl --no-reload enable libvirtd.service >/dev/null 2>&1 ||:
1488
1489 # Run these because the SysV package being removed won't do them
1490 /sbin/chkconfig --del libvirtd >/dev/null 2>&1 || :
1491 /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1492 %endif
1493 %endif
1494
1495 %preun client
1496
1497 %if %{with_systemd}
1498 %else
1499 if [ $1 = 0 ]; then
1500     /sbin/chkconfig --del libvirt-guests
1501     rm -f /var/lib/libvirt/libvirt-guests
1502 fi
1503 %endif
1504
1505 %post client
1506
1507 /sbin/ldconfig
1508 %if %{with_systemd}
1509 %else
1510 /sbin/chkconfig --add libvirt-guests
1511 %endif
1512
1513 %postun client -p /sbin/ldconfig
1514
1515 %if %{with_systemd}
1516 %triggerun client -- libvirt < 0.9.4
1517 %{_bindir}/systemd-sysv-convert --save libvirt-guests >/dev/null 2>&1 ||:
1518
1519 # If the package is allowed to autostart:
1520 /bin/systemctl --no-reload enable libvirt-guests.service >/dev/null 2>&1 ||:
1521
1522 # Run these because the SysV package being removed won't do them
1523 /sbin/chkconfig --del libvirt-guests >/dev/null 2>&1 || :
1524 /bin/systemctl try-restart libvirt-guests.service >/dev/null 2>&1 || :
1525 %endif
1526
1527 %files
1528 %defattr(-, root, root)
1529
1530 %files docs
1531 %defattr(-, root, root)
1532 # Website
1533 %dir %{_datadir}/doc/libvirt-docs-%{version}
1534 %dir %{_datadir}/doc/libvirt-docs-%{version}/html
1535 %{_datadir}/doc/libvirt-docs-%{version}/html/*
1536
1537 # API docs
1538 %dir %{_datadir}/gtk-doc/html/libvirt/
1539 %doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
1540 %doc %{_datadir}/gtk-doc/html/libvirt/*.html
1541 %doc %{_datadir}/gtk-doc/html/libvirt/*.png
1542 %doc %{_datadir}/gtk-doc/html/libvirt/*.css
1543
1544 %if %{with_libvirtd}
1545 %files daemon
1546 %defattr(-, root, root)
1547
1548 %doc AUTHORS ChangeLog.gz NEWS README COPYING.LIB TODO
1549 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
1550
1551 %if %{with_network}
1552 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
1553 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
1554 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
1555 %endif
1556
1557 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/
1558
1559 %{_sysconfdir}/rc.d/init.d/libvirtd
1560 %if %{with_systemd}
1561 %{_unitdir}/libvirtd.service
1562 %endif
1563 %doc daemon/libvirtd.upstart
1564 %config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
1565 %config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
1566 %if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
1567 %config(noreplace) %{_sysconfdir}/sysctl.d/libvirtd
1568 %else
1569 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sysctl.d/libvirtd
1570 %endif
1571 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
1572 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
1573 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
1574 %if %{with_libxl}
1575 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
1576 %endif
1577
1578 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
1579 %if %{with_qemu}
1580 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
1581 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
1582 %endif
1583 %if %{with_lxc}
1584 %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
1585 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
1586 %endif
1587 %if %{with_uml}
1588 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
1589 %endif
1590
1591 %dir %{_datadir}/libvirt/
1592
1593 %if %{with_network}
1594 %dir %{_datadir}/libvirt/networks/
1595 %{_datadir}/libvirt/networks/default.xml
1596 %endif
1597
1598 %ghost %dir %{_localstatedir}/run/libvirt/
1599
1600 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/
1601 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/filesystems/
1602 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/
1603 %dir %attr(0711, root, root) %{_localstatedir}/cache/libvirt/
1604
1605 %if %{with_qemu}
1606 %ghost %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
1607 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
1608 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
1609 %endif
1610 %if %{with_lxc}
1611 %ghost %dir %{_localstatedir}/run/libvirt/lxc/
1612 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
1613 %endif
1614 %if %{with_uml}
1615 %ghost %dir %{_localstatedir}/run/libvirt/uml/
1616 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
1617 %endif
1618 %if %{with_libxl}
1619 %ghost %dir %{_localstatedir}/run/libvirt/libxl/
1620 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
1621 %endif
1622 %if %{with_network}
1623 %ghost %dir %{_localstatedir}/run/libvirt/network/
1624 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
1625 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
1626 %endif
1627
1628 %if %{with_qemu}
1629 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
1630 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
1631 %endif
1632
1633 %if %{with_lxc}
1634 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
1635 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
1636 %endif
1637
1638 %{_datadir}/augeas/lenses/libvirtd.aug
1639 %{_datadir}/augeas/lenses/tests/test_libvirtd.aug
1640
1641 %if %{with_polkit}
1642 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1643 %{_datadir}/polkit-1/actions/org.libvirt.unix.policy
1644 %else
1645 %{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
1646 %endif
1647 %endif
1648
1649 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
1650
1651 %if %{with_lxc}
1652 %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
1653 %endif
1654
1655 %if %{with_storage_disk}
1656 %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
1657 %endif
1658
1659 %attr(0755, root, root) %{_libexecdir}/libvirt_iohelper
1660 %attr(0755, root, root) %{_sbindir}/libvirtd
1661
1662 %{_mandir}/man8/libvirtd.8*
1663
1664 %if %{with_driver_modules}
1665 %if %{with_network}
1666 %files daemon-config-network
1667 %defattr(-, root, root)
1668 %endif
1669
1670 %if %{with_nwfilter}
1671 %files daemon-config-nwfilter
1672 %defattr(-, root, root)
1673 %{_sysconfdir}/libvirt/nwfilter/*.xml
1674 %endif
1675
1676 %if %{with_interface}
1677 %files daemon-driver-interface
1678 %defattr(-, root, root)
1679 %{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so
1680 %endif
1681
1682 %if %{with_network}
1683 %files daemon-driver-network
1684 %defattr(-, root, root)
1685 %{_libdir}/%{name}/connection-driver/libvirt_driver_network.so
1686 %endif
1687
1688 %if %{with_nodedev}
1689 %files daemon-driver-nodedev
1690 %defattr(-, root, root)
1691 %{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so
1692 %endif
1693
1694 %if %{with_nwfilter}
1695 %files daemon-driver-nwfilter
1696 %defattr(-, root, root)
1697 %{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so
1698 %endif
1699
1700 %files daemon-driver-secret
1701 %defattr(-, root, root)
1702 %{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so
1703
1704 %if %{with_storage}
1705 %files daemon-driver-storage
1706 %defattr(-, root, root)
1707 %{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so
1708 %endif
1709
1710 %if %{with_qemu}
1711 %files daemon-driver-qemu
1712 %defattr(-, root, root)
1713 %{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so
1714 %endif
1715
1716 %if %{with_lxc}
1717 %files daemon-driver-lxc
1718 %defattr(-, root, root)
1719 %{_libdir}/%{name}/connection-driver/libvirt_driver_lxc.so
1720 %endif
1721
1722 %if %{with_uml}
1723 %files daemon-driver-uml
1724 %defattr(-, root, root)
1725 %{_libdir}/%{name}/connection-driver/libvirt_driver_uml.so
1726 %endif
1727
1728 %if %{with_xen}
1729 %files daemon-driver-xen
1730 %defattr(-, root, root)
1731 %{_libdir}/%{name}/connection-driver/libvirt_driver_xen.so
1732 %endif
1733
1734 %if %{with_libxl}
1735 %files daemon-driver-libxl
1736 %defattr(-, root, root)
1737 %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so
1738 %endif
1739 %endif
1740
1741 %if %{with_qemu_tcg}
1742 %files daemon-qemu
1743 %defattr(-, root, root)
1744 %endif
1745
1746 %if %{with_qemu_kvm}
1747 %files daemon-kvm
1748 %defattr(-, root, root)
1749 %endif
1750
1751 %if %{with_lxc}
1752 %files daemon-lxc
1753 %defattr(-, root, root)
1754 %endif
1755
1756 %if %{with_uml}
1757 %files daemon-uml
1758 %defattr(-, root, root)
1759 %endif
1760
1761 %if %{with_xen} || %{with_libxl}
1762 %files daemon-xen
1763 %defattr(-, root, root)
1764 %endif
1765 %endif
1766
1767 %if %{with_sanlock}
1768 %files lock-sanlock
1769 %defattr(-, root, root)
1770 %if %{with_qemu}
1771 %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
1772 %endif
1773 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so
1774 %{_datadir}/augeas/lenses/libvirt_sanlock.aug
1775 %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
1776 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/sanlock
1777 %{_sbindir}/virt-sanlock-cleanup
1778 %{_mandir}/man8/virt-sanlock-cleanup.8*
1779 %endif
1780
1781 %files client -f %{name}.lang
1782 %defattr(-, root, root)
1783 %doc AUTHORS ChangeLog.gz NEWS README COPYING.LIB TODO
1784
1785 %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
1786 %{_mandir}/man1/virsh.1*
1787 %{_mandir}/man1/virt-xml-validate.1*
1788 %{_mandir}/man1/virt-pki-validate.1*
1789 %{_mandir}/man1/virt-host-validate.1*
1790 %{_bindir}/virsh
1791 %{_bindir}/virt-xml-validate
1792 %{_bindir}/virt-pki-validate
1793 %{_bindir}/virt-host-validate
1794 %{_libdir}/lib*.so.*
1795
1796 %if %{with_dtrace}
1797 %{_datadir}/systemtap/tapset/libvirt_probes.stp
1798 %{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp
1799 %{_datadir}/systemtap/tapset/libvirt_functions.stp
1800 %endif
1801
1802 %dir %{_datadir}/libvirt/
1803 %dir %{_datadir}/libvirt/schemas/
1804
1805 %{_datadir}/libvirt/schemas/basictypes.rng
1806 %{_datadir}/libvirt/schemas/capability.rng
1807 %{_datadir}/libvirt/schemas/domain.rng
1808 %{_datadir}/libvirt/schemas/domaincommon.rng
1809 %{_datadir}/libvirt/schemas/domainsnapshot.rng
1810 %{_datadir}/libvirt/schemas/interface.rng
1811 %{_datadir}/libvirt/schemas/network.rng
1812 %{_datadir}/libvirt/schemas/networkcommon.rng
1813 %{_datadir}/libvirt/schemas/nodedev.rng
1814 %{_datadir}/libvirt/schemas/nwfilter.rng
1815 %{_datadir}/libvirt/schemas/secret.rng
1816 %{_datadir}/libvirt/schemas/storageencryption.rng
1817 %{_datadir}/libvirt/schemas/storagepool.rng
1818 %{_datadir}/libvirt/schemas/storagevol.rng
1819
1820 %{_datadir}/libvirt/cpu_map.xml
1821
1822 %{_sysconfdir}/rc.d/init.d/libvirt-guests
1823 %if %{with_systemd}
1824 %{_unitdir}/libvirt-guests.service
1825 %endif
1826 %config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
1827 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/
1828
1829 %if %{with_sasl}
1830 %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
1831 %endif
1832
1833 %files devel
1834 %defattr(-, root, root)
1835
1836 %{_libdir}/lib*.so
1837 %dir %{_includedir}/libvirt
1838 %{_includedir}/libvirt/*.h
1839 %{_libdir}/pkgconfig/libvirt.pc
1840
1841 %dir %{_datadir}/libvirt/api/
1842 %{_datadir}/libvirt/api/libvirt-api.xml
1843 %{_datadir}/libvirt/api/libvirt-qemu-api.xml
1844
1845 %doc docs/*.html docs/html docs/*.gif
1846 %doc docs/libvirt-api.xml
1847 %doc examples/hellolibvirt
1848 %doc examples/domain-events/events-c
1849 %doc examples/dominfo
1850 %doc examples/domsuspend
1851 %doc examples/openauth
1852 %doc examples/xml
1853 %doc examples/systemtap
1854
1855 %if %{with_python}
1856 %files python
1857 %defattr(-, root, root)
1858
1859 %doc AUTHORS NEWS README COPYING.LIB
1860 %{_libdir}/python*/site-packages/libvirt.py*
1861 %{_libdir}/python*/site-packages/libvirt_qemu.py*
1862 %{_libdir}/python*/site-packages/libvirtmod*
1863 %doc python/tests/*.py
1864 %doc python/TODO
1865 %doc examples/python
1866 %doc examples/domain-events/events-python
1867 %endif
1868
1869 %changelog
1870 * Fri Aug 31 2012 Daniel Veillard <veillard@redhat.com> - 0.10.1-1
1871 - bugfixes and a brown paper bag
1872
1873 * Wed Aug 29 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-1
1874 - agent: add qemuAgentArbitraryCommand() for general qemu agent command
1875 - Introduce virDomainPinEmulator and virDomainGetEmulatorPinInfo functions
1876 - network: use firewalld instead of iptables, when available
1877 - network: make network driver vlan-aware
1878 - esx: Implement network driver
1879 - driver for parallels hypervisor
1880 - Various LXC improvements
1881 - Add virDomainGetHostname
1882 - a lot of bug fixes, improvements and portability work
1883
1884 * Mon Jul  2 2012 Daniel Veillard <veillard@redhat.com> - 0.9.13-1
1885 - S390: support for s390(x)
1886 - snapshot: implement new APIs for esx and vbox
1887 - snapshot: new query APIs and many improvements
1888 - virsh: Allow users to reedit rejected XML
1889 - nwfilter: add DHCP snooping
1890 - Enable driver modules in libvirt RPM
1891 - Default to enable driver modules for libvirtd
1892 - storage backend: Add RBD (RADOS Block Device) support
1893 - sVirt support for LXC domains inprovement
1894 - a lot of bug fixes, improvements and portability work
1895
1896 * Mon May 14 2012 Daniel Veillard <veillard@redhat.com> - 0.9.12-1
1897 - qemu: allow snapshotting of sheepdog and rbd disks
1898 - blockjob: add new APIs
1899 - a lot of bug fixes, improvements and portability work
1900
1901 * Tue Apr  3 2012 Daniel Veillard <veillard@redhat.com> - 0.9.11-1
1902 - Add support for the suspend event
1903 - Add support for event tray moved of removable disks
1904 - qemu: Support numad
1905 - cpustats: API, improvements and qemu support
1906 - qemu: support type='hostdev' network devices at domain start
1907 - Introduce virDomainPMWakeup API
1908 - network: support Open vSwitch
1909 - a number of snapshot improvements
1910 - many improvements and bug fixes
1911
1912 * Mon Feb 13 2012 Daniel Veillard <veillard@redhat.com> - 0.9.10-1
1913 - Add support for sVirt in the LXC driver
1914 - block rebase: add new API virDomainBlockRebase
1915 - API: Add api to set and get domain metadata
1916 - virDomainGetDiskErrors public API
1917 - conf: add rawio attribute to disk element of domain XML
1918 - Add new public API virDomainGetCPUStats()
1919 - Introduce virDomainPMSuspendForDuration API
1920 - resize: add virStorageVolResize() API
1921 - Add a virt-host-validate command to sanity check HV config
1922 - Add new virDomainShutdownFlags API
1923 - QEMU guest agent support
1924 - many improvements and bug fixes
1925
1926 * Sat Jan  7 2012 Daniel Veillard <veillard@redhat.com> - 0.9.9-1
1927 - Add API virDomain{S,G}etInterfaceParameters
1928 - Add API virDomain{G, S}etNumaParameters
1929 - Add support for ppc64 qemu
1930 - Support Xen domctl v8
1931 - many improvements and bug fixes
1932
1933 * Thu Dec  8 2011 Daniel Veillard <veillard@redhat.com> - 0.9.8-1
1934 - Add support for QEMU 1.0
1935 - Add preliminary PPC cpu driver
1936 - Add new API virDomain{Set, Get}BlockIoTune
1937 - block_resize: Define the new API
1938 - Add a public API to invoke suspend/resume on the host
1939 - various improvements for LXC containers
1940 - Define keepalive protocol and add virConnectIsAlive API
1941 - Add support for STP and VLAN filtering
1942 - many improvements and bug fixes
1943
1944 * Tue Nov  8 2011 Daniel Veillard <veillard@redhat.com> - 0.9.7-1
1945 - esx: support vSphere 5.x
1946 - vbox: support for VirtualBox 4.1
1947 - Introduce the virDomainOpenGraphics API
1948 - Add AHCI support to qemu driver
1949 - snapshot: many improvements and 2 new APIs
1950 - api: Add public api for 'reset'
1951 - many improvements and bug fixes
1952
1953 * Thu Sep 22 2011 Daniel Veillard <veillard@redhat.com> - 0.9.6-1
1954 - Fix the qemu reboot bug and a few others bug fixes
1955
1956 * Tue Sep 20 2011 Daniel Veillard <veillard@redhat.com> - 0.9.5-1
1957 - many snapshot improvements (Eric Blake)
1958 - latency: Define new public API and structure (Osier Yang)
1959 - USB2 and various USB improvements (Marc-André Lureau)
1960 - storage: Add fs pool formatting (Osier Yang)
1961 - Add public API for getting migration speed (Jim Fehlig)
1962 - Add basic driver for Microsoft Hyper-V (Matthias Bolte)
1963 - many improvements and bug fixes
1964
1965 * Wed Aug  3 2011 Daniel Veillard <veillard@redhat.com> - 0.9.4-1
1966 - network bandwidth QoS control
1967 - Add new API virDomainBlockPull*
1968 - save: new API to manipulate save file images
1969 - CPU bandwidth limits support
1970 - allow to send NMI and key event to guests
1971 - new API virDomainUndefineFlags
1972 - Implement code to attach to external QEMU instances
1973 - bios: Add support for SGA
1974 - various missing python binding
1975 - many improvements and bug fixes
1976
1977 * Mon Jul  4 2011 Daniel Veillard <veillard@redhat.com> - 0.9.3-1
1978 - new API virDomainGetVcpupinInfo
1979 - Add TXT record support for virtual DNS service
1980 - Support reboots with the QEMU driver
1981 - New API virDomainGetControlInfo API
1982 - New API virNodeGetMemoryStats
1983 - New API virNodeGetCPUTime
1984 - New API for send-key
1985 - New API virDomainPinVcpuFlags
1986 - support multifunction PCI device
1987 - lxc: various improvements
1988 - many improvements and bug fixes
1989
1990 * Mon Jun  6 2011 Daniel Veillard <veillard@redhat.com> - 0.9.2-1
1991 - Framework for lock manager plugins
1992 - API for network config change transactions
1993 - flags for setting memory parameters
1994 - virDomainGetState public API
1995 - qemu: allow blkstat/blkinfo calls during migration
1996 - Introduce migration v3 API
1997 - Defining the Screenshot public API
1998 - public API for NMI injection
1999 - Various improvements and bug fixes
2000
2001 * Thu May  5 2011 Daniel Veillard <veillard@redhat.com> - 0.9.1-1
2002 - support various persistent domain updates
2003 - improvements on memory APIs
2004 - Add virDomainEventRebootNew
2005 - various improvements to libxl driver
2006 - Spice: support audio, images and stream compression
2007 - Various improvements and bug fixes
2008
2009 * Mon Apr  4 2011 Daniel Veillard <veillard@redhat.com> - 0.9.0-1
2010 - Support cputune cpu usage tuning
2011 - Add public APIs for storage volume upload/download
2012 - Add public API for setting migration speed on the fly
2013 - Add libxenlight driver
2014 - qemu: support migration to fd
2015 - libvirt: add virDomain{Get,Set}BlkioParameters
2016 - setmem: introduce a new libvirt API (virDomainSetMemoryFlags)
2017 - Expose event loop implementation as a public API
2018 - Dump the debug buffer to libvirtd.log on fatal signal
2019 - Audit support
2020 - Various improvements and bug fixes
2021
2022 * Thu Feb 17 2011 Daniel Veillard <veillard@redhat.com> - 0.8.8-1
2023 - expose new API for sysinfo extraction
2024 - cgroup blkio weight support
2025 - smartcard device support
2026 - qemu: Support per-device boot ordering
2027 - Various improvements and bug fixes
2028
2029 * Tue Jan  4 2011 Daniel Veillard <veillard@redhat.com> - 0.8.7-1
2030 - Preliminary support for VirtualBox 4.0
2031 - IPv6 support
2032 - Add VMware Workstation and Player driver driver
2033 - Add network disk support
2034 - Various improvements and bug fixes
2035
2036 * Tue Nov 30 2010 Daniel Veillard <veillard@redhat.com> - 0.8.6-1
2037 - Add support for iSCSI target auto-discovery
2038 - QED: Basic support for QED images
2039 - remote console support
2040 - support for SPICE graphics
2041 - sysinfo and VMBIOS support
2042 - virsh qemu-monitor-command
2043 - various improvements and bug fixes
2044
2045 * Fri Oct 29 2010 Daniel Veillard <veillard@redhat.com> - 0.8.5-1
2046 - Enable JSON and netdev features in QEMU >= 0.13
2047 - framework for auditing integration
2048 - framework DTrace/SystemTap integration
2049 - Setting the number of vcpu at boot
2050 - Enable support for nested SVM
2051 - Virtio plan9fs filesystem QEMU
2052 - Memory parameter controls
2053 - various improvements and bug fixes
2054
2055 * Fri Sep 10 2010 Daniel Veillard <veillard@redhat.com> - 0.8.4-1
2056 - big improvements to UML driver
2057 - various improvements and bug fixes
2058
2059 * Wed Aug  4 2010 Daniel Veillard <veillard@redhat.com> - 0.8.3-1
2060 - esx: Support vSphere 4.1
2061 - Qemu arbitrary monitor commands
2062 - Qemu Monitor API entry point
2063 - various improvements and bug fixes
2064
2065 * Mon Jul  5 2010 Daniel Veillard <veillard@redhat.com> - 0.8.2-1
2066 - phyp: adding support for IVM
2067 - libvirt: introduce domainCreateWithFlags API
2068 - add 802.1Qbh and 802.1Qbg switches handling
2069 - Support for VirtualBox version 3.2
2070 - Init script for handling guests on shutdown/boot
2071 - qemu: live migration with non-shared storage for kvm
2072
2073 * Fri Apr 30 2010 Daniel Veillard <veillard@redhat.com> - 0.8.1-1
2074 - Starts dnsmasq from libvirtd with --dhcp-hostsfile
2075 - Add virDomainGetBlockInfo API to query disk sizing
2076 - a lot of bug fixes and cleanups
2077
2078 * Mon Apr 12 2010 Daniel Veillard <veillard@redhat.com> - 0.8.0-1
2079 - Snapshotting support (QEmu/VBox/ESX)
2080 - Network filtering API
2081 - XenAPI driver
2082 - new APIs for domain events
2083 - Libvirt managed save API
2084 - timer subselection for domain clock
2085 - synchronous hooks
2086 - API to update guest CPU to host CPU
2087 - virDomainUpdateDeviceFlags new API
2088 - migrate max downtime API
2089 - volume wiping API
2090 - and many bug fixes
2091
2092 * Fri Mar  5 2010 Daniel Veillard <veillard@redhat.com> - 0.7.7-1
2093 - macvtap support
2094 - async job handling
2095 - virtio channel
2096 - computing baseline CPU
2097 - virDomain{Attach,Detach}DeviceFlags
2098 - assorted bug fixes and lots of cleanups
2099
2100 * Wed Feb  3 2010 Daniel Veillard <veillard@redhat.com> - 0.7.6-1
2101
2102 * Wed Dec 23 2009 Daniel Veillard <veillard@redhat.com> - 0.7.5-1
2103 - Add new API virDomainMemoryStats
2104 - Public API and domain extension for CPU flags
2105 - vbox: Add support for version 3.1
2106 - Support QEMU's virtual FAT block device driver
2107 - a lot of fixes
2108
2109 * Fri Nov 20 2009 Daniel Veillard <veillard@redhat.com> - 0.7.3-1
2110 - udev node device backend
2111 - API to check object properties
2112 - better QEmu monitor processing
2113 - MAC address based port filtering for qemu
2114 - support IPv6 and multiple addresses per interfaces
2115 - a lot of fixes
2116
2117 * Tue Sep 15 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-1
2118 - ESX, VBox driver updates
2119 - mutipath support
2120 - support for encrypted (qcow) volume
2121 - compressed save image format for Qemu/KVM
2122 - QEmu host PCI device hotplug support
2123 - configuration of huge pages in guests
2124 - a lot of fixes
2125
2126 * Wed Aug  5 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-1
2127 - ESX, VBox3, Power Hypervisor drivers
2128 - new net filesystem glusterfs
2129 - Storage cloning for LVM and Disk backends
2130 - interface implementation based on netcf
2131 - Support cgroups in QEMU driver
2132 - QEmu hotplug NIC support
2133 - a lot of fixes
2134
2135 * Fri Jul  3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.5-1
2136 - release of 0.6.5
2137
2138 * Fri May 29 2009 Daniel Veillard <veillard@redhat.com> - 0.6.4-1
2139 - release of 0.6.4
2140 - various new APIs
2141
2142 * Fri Apr 24 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-1
2143 - release of 0.6.3
2144 - VirtualBox driver
2145
2146 * Fri Apr  3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.2-1
2147 - release of 0.6.2
2148
2149 * Fri Mar  4 2009 Daniel Veillard <veillard@redhat.com> - 0.6.1-1
2150 - release of 0.6.1
2151
2152 * Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1
2153 - release of 0.6.0
2154
2155 * Tue Nov 25 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1
2156 - release of 0.5.0
2157
2158 * Tue Sep 23 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-1
2159 - release of 0.4.6
2160
2161 * Mon Sep  8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-1
2162 - release of 0.4.5
2163
2164 * Wed Jun 25 2008 Daniel Veillard <veillard@redhat.com> - 0.4.4-1
2165 - release of 0.4.4
2166 - mostly a few bug fixes from 0.4.3
2167
2168 * Thu Jun 12 2008 Daniel Veillard <veillard@redhat.com> - 0.4.3-1
2169 - release of 0.4.3
2170 - lots of bug fixes and small improvements
2171
2172 * Tue Apr  8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.2-1
2173 - release of 0.4.2
2174 - lots of bug fixes and small improvements
2175
2176 * Mon Mar  3 2008 Daniel Veillard <veillard@redhat.com> - 0.4.1-1
2177 - Release of 0.4.1
2178 - Storage APIs
2179 - xenner support
2180 - lots of assorted improvements, bugfixes and cleanups
2181 - documentation and localization improvements
2182
2183 * Tue Dec 18 2007 Daniel Veillard <veillard@redhat.com> - 0.4.0-1
2184 - Release of 0.4.0
2185 - SASL based authentication
2186 - PolicyKit authentication
2187 - improved NUMA and statistics support
2188 - lots of assorted improvements, bugfixes and cleanups
2189 - documentation and localization improvements
2190
2191 * Sun Sep 30 2007 Daniel Veillard <veillard@redhat.com> - 0.3.3-1
2192 - Release of 0.3.3
2193 - Avahi support
2194 - NUMA support
2195 - lots of assorted improvements, bugfixes and cleanups
2196 - documentation and localization improvements
2197
2198 * Tue Aug 21 2007 Daniel Veillard <veillard@redhat.com> - 0.3.2-1
2199 - Release of 0.3.2
2200 - API for domains migration
2201 - APIs for collecting statistics on disks and interfaces
2202 - lots of assorted bugfixes and cleanups
2203 - documentation and localization improvements
2204
2205 * Tue Jul 24 2007 Daniel Veillard <veillard@redhat.com> - 0.3.1-1
2206 - Release of 0.3.1
2207 - localtime clock support
2208 - PS/2 and USB input devices
2209 - lots of assorted bugfixes and cleanups
2210 - documentation and localization improvements
2211
2212 * Mon Jul  9 2007 Daniel Veillard <veillard@redhat.com> - 0.3.0-1
2213 - Release of 0.3.0
2214 - Secure remote access support
2215 - unification of daemons
2216 - lots of assorted bugfixes and cleanups
2217 - documentation and localization improvements
2218
2219 * Fri Jun  8 2007 Daniel Veillard <veillard@redhat.com> - 0.2.3-1
2220 - Release of 0.2.3
2221 - lot of assorted bugfixes and cleanups
2222 - support for Xen-3.1
2223 - new scheduler API
2224
2225 * Tue Apr 17 2007 Daniel Veillard <veillard@redhat.com> - 0.2.2-1
2226 - Release of 0.2.2
2227 - lot of assorted bugfixes and cleanups
2228 - preparing for Xen-3.0.5
2229
2230 * Thu Mar 22 2007 Jeremy Katz <katzj@redhat.com> - 0.2.1-2.fc7
2231 - don't require xen; we don't need the daemon and can control non-xen now
2232 - fix scriptlet error (need to own more directories)
2233 - update description text
2234
2235 * Fri Mar 16 2007 Daniel Veillard <veillard@redhat.com> - 0.2.1-1
2236 - Release of 0.2.1
2237 - lot of bug and portability fixes
2238 - Add support for network autostart and init scripts
2239 - New API to detect the virtualization capabilities of a host
2240 - Documentation updates
2241
2242 * Fri Feb 23 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-4.fc7
2243 - Fix loading of guest & network configs
2244
2245 * Fri Feb 16 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-3.fc7
2246 - Disable kqemu support since its not in Fedora qemu binary
2247 - Fix for -vnc arg syntax change in 0.9.0  QEMU
2248
2249 * Thu Feb 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-2.fc7
2250 - Fixed path to qemu daemon for autostart
2251 - Fixed generation of <features> block in XML
2252 - Pre-create config directory at startup
2253
2254 * Wed Feb 14 2007 Daniel Veillard <veillard@redhat.com> 0.2.0-1.fc7
2255 - support for KVM and QEmu
2256 - support for network configuration
2257 - assorted fixes
2258
2259 * Mon Jan 22 2007 Daniel Veillard <veillard@redhat.com> 0.1.11-1.fc7
2260 - finish inactive Xen domains support
2261 - memory leak fix
2262 - RelaxNG schemas for XML configs
2263
2264 * Wed Dec 20 2006 Daniel Veillard <veillard@redhat.com> 0.1.10-1.fc7
2265 - support for inactive Xen domains
2266 - improved support for Xen display and vnc
2267 - a few bug fixes
2268 - localization updates
2269
2270 * Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.9-2
2271 - rebuild against python 2.5
2272
2273 * Wed Nov 29 2006 Daniel Veillard <veillard@redhat.com> 0.1.9-1
2274 - better error reporting
2275 - python bindings fixes and extensions
2276 - add support for shareable drives
2277 - add support for non-bridge style networking
2278 - hot plug device support
2279 - added support for inactive domains
2280 - API to dump core of domains
2281 - various bug fixes, cleanups and improvements
2282 - updated the localization
2283
2284 * Tue Nov  7 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-3
2285 - it's pkgconfig not pgkconfig !
2286
2287 * Mon Nov  6 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-2
2288 - fixing spec file, added %dist, -devel requires pkgconfig and xen-devel
2289 - Resolves: rhbz#202320
2290
2291 * Mon Oct 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-1
2292 - fix missing page size detection code for ia64
2293 - fix mlock size when getting domain info list from hypervisor
2294 - vcpu number initialization
2295 - don't label crashed domains as shut off
2296 - fix virsh man page
2297 - blktapdd support for alternate drivers like blktap
2298 - memory leak fixes (xend interface and XML parsing)
2299 - compile fix
2300 - mlock/munlock size fixes
2301
2302 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.7-1
2303 - Fix bug when running against xen-3.0.3 hypercalls
2304 - Fix memory bug when getting vcpus info from xend
2305
2306 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.6-1
2307 - Support for localization
2308 - Support for new Xen-3.0.3 cdrom and disk configuration
2309 - Support for setting VNC port
2310 - Fix bug when running against xen-3.0.2 hypercalls
2311 - Fix reconnection problem when talking directly to http xend
2312
2313 * Tue Sep  5 2006 Jeremy Katz <katzj@redhat.com> - 0.1.5-3
2314 - patch from danpb to support new-format cd devices for HVM guests
2315
2316 * Tue Sep  5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-2
2317 - reactivating ia64 support
2318
2319 * Tue Sep  5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-1
2320 - new release
2321 - bug fixes
2322 - support for new hypervisor calls
2323 - early code for config files and defined domains
2324
2325 * Mon Sep  4 2006 Daniel Berrange <berrange@redhat.com> - 0.1.4-5
2326 - add patch to address dom0_ops API breakage in Xen 3.0.3 tree
2327
2328 * Mon Aug 28 2006 Jeremy Katz <katzj@redhat.com> - 0.1.4-4
2329 - add patch to support paravirt framebuffer in Xen
2330
2331 * Mon Aug 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-3
2332 - another patch to fix network handling in non-HVM guests
2333
2334 * Thu Aug 17 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-2
2335 - patch to fix virParseUUID()
2336
2337 * Wed Aug 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-1
2338 - vCPUs and affinity support
2339 - more complete XML, console and boot options
2340 - specific features support
2341 - enforced read-only connections
2342 - various improvements, bug fixes
2343
2344 * Wed Aug  2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-6
2345 - add patch from pvetere to allow getting uuid from libvirt
2346
2347 * Wed Aug  2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-5
2348 - build on ia64 now
2349
2350 * Thu Jul 27 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-4
2351 - don't BR xen, we just need xen-devel
2352
2353 * Thu Jul 27 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-3
2354 - need rebuild since libxenstore is now versionned
2355
2356 * Mon Jul 24 2006 Mark McLoughlin <markmc@redhat.com> - 0.1.3-2
2357 - Add BuildRequires: xen-devel
2358
2359 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.1.3-1.1
2360 - rebuild
2361
2362 * Tue Jul 11 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-1
2363 - support for HVM Xen guests
2364 - various bugfixes
2365
2366 * Mon Jul  3 2006 Daniel Veillard <veillard@redhat.com> 0.1.2-1
2367 - added a proxy mechanism for read only access using httpu
2368 - fixed header includes paths
2369
2370 * Wed Jun 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.1-1
2371 - extend and cleanup the driver infrastructure and code
2372 - python examples
2373 - extend uuid support
2374 - bug fixes, buffer handling cleanups
2375 - support for new Xen hypervisor API
2376 - test driver for unit testing
2377 - virsh --conect argument
2378
2379 * Mon Apr 10 2006 Daniel Veillard <veillard@redhat.com> 0.1.0-1
2380 - various fixes
2381 - new APIs: for Node information and Reboot
2382 - virsh improvements and extensions
2383 - documentation updates and man page
2384 - enhancement and fixes of the XML description format
2385
2386 * Tue Feb 28 2006 Daniel Veillard <veillard@redhat.com> 0.0.6-1
2387 - added error handling APIs
2388 - small bug fixes
2389 - improve python bindings
2390 - augment documentation and regression tests
2391
2392 * Thu Feb 23 2006 Daniel Veillard <veillard@redhat.com> 0.0.5-1
2393 - new domain creation API
2394 - new UUID based APIs
2395 - more tests, documentation, devhelp
2396 - bug fixes
2397
2398 * Fri Feb 10 2006 Daniel Veillard <veillard@redhat.com> 0.0.4-1
2399 - fixes some problems in 0.0.3 due to the change of names
2400
2401 * Wed Feb  8 2006 Daniel Veillard <veillard@redhat.com> 0.0.3-1
2402 - changed library name to libvirt from libvir, complete and test the python
2403   bindings
2404
2405 * Sun Jan 29 2006 Daniel Veillard <veillard@redhat.com> 0.0.2-1
2406 - upstream release of 0.0.2, use xend, save and restore added, python bindings
2407   fixed
2408
2409 * Wed Nov  2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1
2410 - created