661efd9a7fd4c645e4c448748fd13deb204c1d34
[libvirt.git] / libvirt.spec
1 # -*- rpm-spec -*-
2
3 %define mainstream_version 1.2.1
4 %define module_version_varname mainstream_version
5 %define taglevel 0
6
7 #libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
8 ##                       --without storage-fs --without storage-lvm \
9 ##                       --without polkit --without sasl --without audit --with capng --with udev \
10 ##                       --without netcf --without avahi --without sanlock \
11 ##                       --without xen --without qemu --without hyperv --without phyp --without esx \
12 ##                       --without libxl --without vbox \
13 %define _without_storage_disk   true
14 %define _without_storage_iscsi  true
15 %define _without_storage_fs     true
16 %define _without_storage_lvm    true
17 %define _without_polkit         true
18 %define _without_sasl           true
19 %define _without_audit          true
20 #interface requires netcf
21 #%define _without_netcf         true
22 %define _without_avahi          true
23 %define _without_sanlock        true
24 %define _without_xen            true
25 %define _without_qemu           true
26 %define _without_hyperv         true
27 %define _without_phyp           true
28 %define _without_esx            true
29 %define _without_libxl          true
30 %define _without_vbox           true
31
32
33 #turn this off even on f18 as an attempt to get back /proc/meminfo
34 %define _without_fuse           true
35
36 %define enable_autotools        1
37  
38 # If neither fedora nor rhel was defined, try to guess them from %{dist}
39 %if !0%{?rhel} && !0%{?fedora}
40 %{expand:%(echo "%{?dist}" | \
41   sed -ne 's/^\.el\([0-9]\+\).*/%%define rhel \1/p')}
42 %{expand:%(echo "%{?dist}" | \
43   sed -ne 's/^\.fc\?\([0-9]\+\).*/%%define fedora \1/p')}
44 %endif
45
46 # Default to skipping autoreconf.  Distros can change just this one line
47 # (or provide a command-line override) if they backport any patches that
48 # touch configure.ac or Makefile.am.
49 %{!?enable_autotools:%define enable_autotools 0}
50
51 # A client only build will create a libvirt.so only containing
52 # the generic RPC driver, and test driver and no libvirtd
53 # Default to a full server + client build, but with the possibility
54 # of a command-line or ~/.rpmmacros override for client-only.
55 %{!?client_only:%define client_only 0}
56
57 # Now turn off server build in certain cases
58
59 # RHEL-5 builds are client-only for s390, ppc
60 %if 0%{?rhel} == 5
61     %ifnarch %{ix86} x86_64 ia64
62         %define client_only        1
63     %endif
64 %endif
65
66 # Disable all server side drivers if client only build requested
67 %if %{client_only}
68     %define server_drivers     0
69 %else
70     %define server_drivers     1
71 %endif
72
73 # Always build with dlopen'd modules
74 %define with_driver_modules 1
75
76 # Now set the defaults for all the important features, independent
77 # of any particular OS
78
79 # First the daemon itself
80 %define with_libvirtd      0%{!?_without_libvirtd:%{server_drivers}}
81 %define with_avahi         0%{!?_without_avahi:%{server_drivers}}
82
83 # Then the hypervisor drivers that run in libvirtd
84 %define with_xen           0%{!?_without_xen:%{server_drivers}}
85 %define with_qemu          0%{!?_without_qemu:%{server_drivers}}
86 %define with_lxc           0%{!?_without_lxc:%{server_drivers}}
87 %define with_uml           0%{!?_without_uml:%{server_drivers}}
88 %define with_libxl         0%{!?_without_libxl:%{server_drivers}}
89 %define with_vbox          0%{!?_without_vbox:%{server_drivers}}
90
91 %define with_qemu_tcg      %{with_qemu}
92 # Change if we ever provide qemu-kvm binaries on non-x86 hosts
93 %if 0%{?fedora} >= 18
94     %if 0%{?fedora} >= 20
95         %define qemu_kvm_arches    %{ix86} x86_64 ppc64 s390x %{arm}
96     %else
97         %define qemu_kvm_arches    %{ix86} x86_64 ppc64 s390x
98     %endif
99 %else
100     %define qemu_kvm_arches    %{ix86} x86_64
101 %endif
102
103 %ifarch %{qemu_kvm_arches}
104     %define with_qemu_kvm      %{with_qemu}
105 %else
106     %define with_qemu_kvm      0
107 %endif
108
109 # Then the hypervisor drivers that run outside libvirtd, in libvirt.so
110 %define with_openvz        0%{!?_without_openvz:1}
111 %define with_vmware        0%{!?_without_vmware:1}
112 %define with_phyp          0%{!?_without_phyp:1}
113 %define with_esx           0%{!?_without_esx:1}
114 %define with_hyperv        0%{!?_without_hyperv:1}
115 %define with_xenapi        0%{!?_without_xenapi:1}
116 %define with_parallels     0%{!?_without_parallels:1}
117
118 # Then the secondary host drivers, which run inside libvirtd
119 %define with_interface        0%{!?_without_interface:%{server_drivers}}
120 %define with_network          0%{!?_without_network:%{server_drivers}}
121 %define with_storage_fs       0%{!?_without_storage_fs:%{server_drivers}}
122 %define with_storage_lvm      0%{!?_without_storage_lvm:%{server_drivers}}
123 %define with_storage_iscsi    0%{!?_without_storage_iscsi:%{server_drivers}}
124 %define with_storage_disk     0%{!?_without_storage_disk:%{server_drivers}}
125 %define with_storage_mpath    0%{!?_without_storage_mpath:%{server_drivers}}
126 %if 0%{?fedora} >= 16
127     %define with_storage_rbd      0%{!?_without_storage_rbd:%{server_drivers}}
128 %else
129     %define with_storage_rbd      0
130 %endif
131 %if 0%{?fedora} >= 17
132     %define with_storage_sheepdog 0%{!?_without_storage_sheepdog:%{server_drivers}}
133 %else
134     %define with_storage_sheepdog 0
135 %endif
136 %if 0%{?fedora} >= 19
137     %define with_storage_gluster 0%{!?_without_storage_gluster:%{server_drivers}}
138 %else
139     %define with_storage_gluster 0
140 %endif
141 %define with_numactl          0%{!?_without_numactl:%{server_drivers}}
142 %define with_selinux          0%{!?_without_selinux:%{server_drivers}}
143
144 # Just hardcode to off, since few people ever have apparmor RPMs installed
145 %define with_apparmor         0%{!?_without_apparmor:0}
146
147 # A few optional bits off by default, we enable later
148 %define with_polkit        0%{!?_without_polkit:0}
149 %define with_capng         0%{!?_without_capng:0}
150 %define with_fuse          0%{!?_without_fuse:0}
151 %define with_netcf         0%{!?_without_netcf:0}
152 %define with_udev          0%{!?_without_udev:0}
153 %define with_hal           0%{!?_without_hal:0}
154 %define with_yajl          0%{!?_without_yajl:0}
155 %define with_nwfilter      0%{!?_without_nwfilter:0}
156 %define with_libpcap       0%{!?_without_libpcap:0}
157 %define with_macvtap       0%{!?_without_macvtap:0}
158 %define with_libnl         0%{!?_without_libnl:0}
159 %define with_audit         0%{!?_without_audit:0}
160 %define with_dtrace        0%{!?_without_dtrace:0}
161 %define with_cgconfig      0%{!?_without_cgconfig:0}
162 %define with_sanlock       0%{!?_without_sanlock:0}
163 %define with_systemd       0%{!?_without_systemd:0}
164 %define with_numad         0%{!?_without_numad:0}
165 %define with_firewalld     0%{!?_without_firewalld:0}
166 %define with_libssh2       0%{!?_without_libssh2:0}
167
168 # Non-server/HV driver defaults which are always enabled
169 %define with_sasl          0%{!?_without_sasl:1}
170
171
172 # Finally set the OS / architecture specific special cases
173
174 # Xen is available only on i386 x86_64 ia64
175 %ifnarch %{ix86} x86_64 ia64
176     %define with_xen 0
177     %define with_libxl 0
178 %endif
179
180 # vbox is available only on i386 x86_64
181 %ifnarch %{ix86} x86_64
182     %define with_vbox 0
183 %endif
184
185 # Numactl is not available on s390[x] and ARM
186 %ifarch s390 s390x %{arm}
187     %define with_numactl 0
188 %endif
189
190 # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
191 # VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
192 # or HyperV.
193 %if 0%{?rhel}
194     %define with_openvz 0
195     %define with_vbox 0
196     %define with_uml 0
197     %define with_phyp 0
198     %define with_vmware 0
199     %define with_xenapi 0
200     %define with_libxl 0
201     %define with_hyperv 0
202     %define with_parallels 0
203 %endif
204
205 # Fedora 17 / RHEL-7 are first where we use systemd. Although earlier
206 # Fedora has systemd, libvirt still used sysvinit there.
207 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
208     %define with_systemd 1
209 %endif
210
211 # Fedora 18 / RHEL-7 are first where firewalld support is enabled
212 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
213     %define with_firewalld 1
214 %endif
215
216 # RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
217 %if 0%{?rhel} == 5
218     %define with_qemu_tcg 0
219     %ifnarch x86_64
220         %define with_qemu 0
221         %define with_qemu_kvm 0
222     %endif
223     %define with_lxc 0
224 %endif
225
226 # RHEL-6 has restricted QEMU to x86_64 only, stopped including Xen
227 # on all archs. Other archs all have LXC available though
228 %if 0%{?rhel} >= 6
229     %define with_qemu_tcg 0
230     %ifnarch x86_64
231         %define with_qemu 0
232         %define with_qemu_kvm 0
233     %endif
234     %define with_xen 0
235 %endif
236
237 # Fedora doesn't have any QEMU on ppc64 until FC16 - only ppc
238 %if 0%{?fedora} && 0%{?fedora} < 16
239     %ifarch ppc64
240         %define with_qemu 0
241     %endif
242 %endif
243
244 # Fedora doesn't have new enough Xen for libxl until F18
245 %if 0%{?fedora} && 0%{?fedora} < 18
246     %define with_libxl 0
247 %endif
248
249 # PolicyKit was introduced in Fedora 8 / RHEL-6 or newer
250 %if 0%{?fedora} >= 8 || 0%{?rhel} >= 6
251     %define with_polkit    0%{!?_without_polkit:1}
252 %endif
253
254 # libcapng is used to manage capabilities in Fedora 12 / RHEL-6 or newer
255 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
256     %define with_capng     0%{!?_without_capng:1}
257 %endif
258
259 # fuse is used to provide virtualized /proc for LXC
260 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
261     %define with_fuse      0%{!?_without_fuse:1}
262 %endif
263
264 # netcf is used to manage network interfaces in Fedora 12 / RHEL-6 or newer
265 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
266     %define with_netcf     0%{!?_without_netcf:%{server_drivers}}
267 %endif
268
269 # udev is used to manage host devices in Fedora 12 / RHEL-6 or newer
270 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
271     %define with_udev     0%{!?_without_udev:%{server_drivers}}
272 %else
273     %define with_hal       0%{!?_without_hal:%{server_drivers}}
274 %endif
275
276 # interface requires netcf
277 %if ! 0%{?with_netcf}
278     %define with_interface     0
279 %endif
280
281 # Enable yajl library for JSON mode with QEMU
282 %if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
283     %define with_yajl     0%{!?_without_yajl:%{server_drivers}}
284 %endif
285
286 # Enable sanlock library for lock management with QEMU
287 # Sanlock is available only on i686 x86_64 for RHEL
288 %if 0%{?fedora} >= 16
289     %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
290 %endif
291 %if 0%{?rhel} == 6
292     %ifarch %{ix86} x86_64
293         %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
294     %endif
295 %endif
296 %if 0%{?rhel} >= 7
297     %ifarch x86_64
298         %define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
299     %endif
300 %endif
301
302 # Enable libssh2 transport for new enough distros
303 %if 0%{?fedora} >= 17
304     %define with_libssh2 0%{!?_without_libssh2:1}
305 %endif
306
307 # Disable some drivers when building without libvirt daemon.
308 # The logic is the same as in configure.ac
309 %if ! %{with_libvirtd}
310     %define with_interface 0
311     %define with_network 0
312     %define with_qemu 0
313     %define with_lxc 0
314     %define with_uml 0
315     %define with_hal 0
316     %define with_udev 0
317     %define with_storage_fs 0
318     %define with_storage_lvm 0
319     %define with_storage_iscsi 0
320     %define with_storage_mpath 0
321     %define with_storage_rbd 0
322     %define with_storage_sheepdog 0
323     %define with_storage_gluster 0
324     %define with_storage_disk 0
325 %endif
326
327 %if %{with_qemu} || %{with_lxc} || %{with_uml}
328     %define with_nwfilter 0%{!?_without_nwfilter:%{server_drivers}}
329 # Enable libpcap library
330     %define with_libpcap  0%{!?_without_libpcap:%{server_drivers}}
331     %define with_macvtap  0%{!?_without_macvtap:%{server_drivers}}
332
333 # numad is used to manage the CPU and memory placement dynamically,
334 # it's not available on s390[x] and ARM.
335     %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
336         %ifnarch s390 s390x %{arm}
337             %define with_numad    0%{!?_without_numad:%{server_drivers}}
338         %endif
339     %endif
340 %endif
341
342 %if %{with_macvtap}
343     %define with_libnl 1
344 %endif
345
346 %if 0%{?fedora} >= 11 || 0%{?rhel} >= 5
347     %define with_audit    0%{!?_without_audit:1}
348 %endif
349
350 %if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
351     %define with_dtrace 1
352 %endif
353
354 # Pull in cgroups config system
355 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
356     %if %{with_qemu} || %{with_lxc}
357         %define with_cgconfig 0%{!?_without_cgconfig:1}
358     %endif
359 %endif
360
361 %if %{with_udev} || %{with_hal}
362     %define with_nodedev 1
363 %else
364     %define with_nodedev 0
365 %endif
366
367 %if %{with_storage_fs} || %{with_storage_mpath} || %{with_storage_iscsi} || %{with_storage_lvm} || %{with_storage_disk}
368     %define with_storage 1
369 %else
370     %define with_storage 0
371 %endif
372
373
374 # Force QEMU to run as non-root
375 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
376     %define qemu_user  qemu
377     %define qemu_group  qemu
378 %else
379     %define qemu_user  root
380     %define qemu_group  root
381 %endif
382
383
384 # The RHEL-5 Xen package has some feature backports. This
385 # flag is set to enable use of those special bits on RHEL-5
386 %if 0%{?rhel} == 5
387     %define with_rhel5  1
388 %else
389     %define with_rhel5  0
390 %endif
391
392 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
393     %define with_systemd_macros 1
394 %else
395     %define with_systemd_macros 0
396 %endif
397
398
399 # RHEL releases provide stable tool chains and so it is safe to turn
400 # compiler warning into errors without being worried about frequent
401 # changes in reported warnings
402 %if 0%{?rhel}
403     %define enable_werror --enable-werror
404 %endif
405
406
407 Summary: Library providing a simple virtualization API
408 Name: libvirt
409 Version: %{mainstream_version}
410 Release: %{taglevel}
411 License: LGPLv2+
412 Group: Development/Libraries
413 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
414 URL: http://libvirt.org/
415
416 %if %(echo %{version} | grep -o \\. | wc -l) == 3
417     %define mainturl stable_updates/
418 %endif
419 Source: http://libvirt.org/sources/%{?mainturl}libvirt-%{version}.tar.gz
420
421 %if %{with_libvirtd}
422 Requires: libvirt-daemon = %{version}-%{release}
423     %if %{with_network}
424 Requires: libvirt-daemon-config-network = %{version}-%{release}
425     %endif
426     %if %{with_nwfilter}
427 Requires: libvirt-daemon-config-nwfilter = %{version}-%{release}
428     %endif
429     %if %{with_driver_modules}
430         %if %{with_libxl}
431 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
432         %endif
433         %if %{with_lxc}
434 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
435         %endif
436         %if %{with_qemu}
437 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
438         %endif
439         %if %{with_uml}
440 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
441         %endif
442         %if %{with_xen}
443 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
444         %endif
445         %if %{with_vbox}
446 Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
447         %endif
448         %if %{with_nwfilter}
449 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
450         %endif
451
452         %if %{with_interface}
453 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
454         %endif
455 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
456 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
457 Requires: libvirt-daemon-driver-network = %{version}-%{release}
458 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
459     %endif
460 %endif
461 Requires: libvirt-client = %{version}-%{release}
462
463 # All build-time requirements. Run-time requirements are
464 # listed against each sub-RPM
465 %if 0%{?enable_autotools}
466 BuildRequires: autoconf
467 BuildRequires: automake
468 BuildRequires: gettext-devel
469 BuildRequires: libtool
470 BuildRequires: /usr/bin/pod2man
471 %endif
472 BuildRequires: python
473 %if %{with_systemd}
474 BuildRequires: systemd-units
475 %endif
476 %if %{with_xen} || %{with_libxl}
477 BuildRequires: xen-devel
478 %endif
479 BuildRequires: libxml2-devel
480 BuildRequires: xhtml1-dtds
481 BuildRequires: libxslt
482 BuildRequires: readline-devel
483 BuildRequires: ncurses-devel
484 BuildRequires: gettext
485 BuildRequires: libtasn1-devel
486 %if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 19)
487 BuildRequires: libgcrypt-devel
488 %endif
489 BuildRequires: gnutls-devel
490 BuildRequires: libattr-devel
491 %if %{with_libvirtd}
492 # For pool-build probing for existing pools
493 BuildRequires: libblkid-devel >= 2.17
494 %endif
495 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
496 # for augparse, optionally used in testing
497 BuildRequires: augeas
498 %endif
499 %if %{with_hal}
500 BuildRequires: hal-devel
501 %endif
502 %if %{with_udev}
503     %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
504 BuildRequires: systemd-devel >= 185
505     %else
506 BuildRequires: libudev-devel >= 145
507     %endif
508 BuildRequires: libpciaccess-devel >= 0.10.9
509 %endif
510 %if %{with_yajl}
511 BuildRequires: yajl-devel
512 %endif
513 %if %{with_sanlock}
514 # make sure libvirt is built with new enough sanlock on
515 # distros that have it; required for on_lockfailure
516     %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
517 BuildRequires: sanlock-devel >= 2.4
518     %else
519 BuildRequires: sanlock-devel >= 1.8
520     %endif
521 %endif
522 %if %{with_libpcap}
523 BuildRequires: libpcap-devel
524 %endif
525 %if %{with_libnl}
526     %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
527 BuildRequires: libnl3-devel
528     %else
529 BuildRequires: libnl-devel
530     %endif
531 %endif
532 %if %{with_avahi}
533 BuildRequires: avahi-devel
534 %endif
535 %if %{with_selinux}
536 BuildRequires: libselinux-devel
537 %endif
538 %if %{with_apparmor}
539 BuildRequires: libapparmor-devel
540 %endif
541 %if %{with_network}
542 BuildRequires: dnsmasq >= 2.41
543 BuildRequires: iptables
544 BuildRequires: iptables-ipv6
545 BuildRequires: radvd
546 %endif
547 %if %{with_nwfilter}
548 BuildRequires: ebtables
549 %endif
550 BuildRequires: module-init-tools
551 %if %{with_sasl}
552 BuildRequires: cyrus-sasl-devel
553 %endif
554 %if %{with_polkit}
555     %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
556 BuildRequires: polkit-devel >= 0.93
557     %else
558 BuildRequires: PolicyKit-devel >= 0.6
559     %endif
560 %endif
561 %if %{with_storage_fs}
562 # For mount/umount in FS driver
563 BuildRequires: util-linux
564 %endif
565 %if %{with_qemu}
566 # From QEMU RPMs
567 BuildRequires: /usr/bin/qemu-img
568 %else
569     %if %{with_xen}
570 # From Xen RPMs
571 BuildRequires: /usr/sbin/qcow-create
572     %endif
573 %endif
574 %if %{with_storage_lvm}
575 # For LVM drivers
576 BuildRequires: lvm2
577 %endif
578 %if %{with_storage_iscsi}
579 # For ISCSI driver
580 BuildRequires: iscsi-initiator-utils
581 %endif
582 %if %{with_storage_disk}
583 # For disk driver
584 BuildRequires: parted-devel
585     %if 0%{?rhel} == 5
586 # Broken RHEL-5 parted RPM is missing a dep
587 BuildRequires: e2fsprogs-devel
588     %endif
589 %endif
590 %if %{with_storage_mpath}
591 # For Multipath support
592     %if 0%{?rhel} == 5
593 # Broken RHEL-5 packaging has header files in main RPM :-(
594 BuildRequires: device-mapper
595     %else
596 BuildRequires: device-mapper-devel
597     %endif
598     %if %{with_storage_rbd}
599 BuildRequires: ceph-devel
600     %endif
601 %endif
602 %if %{with_storage_gluster}
603 BuildRequires: glusterfs-api-devel >= 3.4.1
604 BuildRequires: glusterfs-devel >= 3.4.1
605 %endif
606 %if %{with_numactl}
607 # For QEMU/LXC numa info
608 BuildRequires: numactl-devel
609 %endif
610 %if %{with_capng}
611 BuildRequires: libcap-ng-devel >= 0.5.0
612 %endif
613 %if %{with_fuse}
614 BuildRequires: fuse-devel >= 2.8.6
615 %endif
616 %if %{with_phyp} || %{with_libssh2}
617 BuildRequires: libssh2-devel >= 1.3.0
618 %endif
619
620 %if %{with_netcf}
621     %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
622 BuildRequires: netcf-devel >= 0.2.2
623     %else
624         %if 0%{?fedora} >= 16 || 0%{?rhel} >= 6
625 BuildRequires: netcf-devel >= 0.1.8
626         %else
627 BuildRequires: netcf-devel >= 0.1.4
628         %endif
629     %endif
630 %endif
631 %if %{with_esx}
632     %if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
633 BuildRequires: libcurl-devel
634     %else
635 BuildRequires: curl-devel
636     %endif
637 %endif
638 %if %{with_hyperv}
639 BuildRequires: libwsman-devel >= 2.2.3
640 %endif
641 %if %{with_audit}
642 BuildRequires: audit-libs-devel
643 %endif
644 %if %{with_dtrace}
645 # we need /usr/sbin/dtrace
646 BuildRequires: systemtap-sdt-devel
647 %endif
648
649 %if %{with_storage_fs}
650 # For mount/umount in FS driver
651 BuildRequires: util-linux
652 # For showmount in FS driver (netfs discovery)
653 BuildRequires: nfs-utils
654 %endif
655
656 %if %{with_firewalld}
657 # Communication with the firewall daemon uses DBus
658 BuildRequires: dbus-devel
659 %endif
660
661 # Fedora build root suckage
662 BuildRequires: gawk
663
664 # For storage wiping with different algorithms
665 BuildRequires: scrub
666
667 %if %{with_numad}
668 BuildRequires: numad
669 %endif
670
671 Provides: bundled(gnulib)
672
673 %description
674 Libvirt is a C toolkit to interact with the virtualization capabilities
675 of recent versions of Linux (and other OSes). The main package includes
676 the libvirtd server exporting the virtualization support.
677
678 %package docs
679 Summary: API reference and website documentation
680 Group: Development/Libraries
681
682 %description docs
683 Includes the API reference for the libvirt C library, and a complete
684 copy of the libvirt.org website documentation.
685
686 %if %{with_libvirtd}
687 %package daemon
688 Summary: Server side daemon and supporting files for libvirt library
689 Group: Development/Libraries
690
691 # All runtime requirements for the libvirt package (runtime requrements
692 # for subpackages are listed later in those subpackages)
693
694 # The client side, i.e. shared libs and virsh are in a subpackage
695 Requires: %{name}-client = %{version}-%{release}
696
697 # for modprobe of pci devices
698 Requires: module-init-tools
699 # for /sbin/ip & /sbin/tc
700 Requires: iproute
701     %if %{with_avahi}
702         %if 0%{?rhel} == 5
703 Requires: avahi
704         %else
705 Requires: avahi-libs
706         %endif
707     %endif
708     %if %{with_polkit}
709         %if 0%{?fedora} >= 12 || 0%{?rhel} >=6
710 Requires: polkit >= 0.93
711         %else
712 Requires: PolicyKit >= 0.6
713         %endif
714     %endif
715     %if %{with_cgconfig}
716 Requires: libcgroup
717     %endif
718     %ifarch %{ix86} x86_64 ia64
719 # For virConnectGetSysinfo
720 Requires: dmidecode
721     %endif
722 # For service management
723     %if %{with_systemd}
724 Requires(post): systemd-units
725 Requires(post): systemd-sysv
726 Requires(preun): systemd-units
727 Requires(postun): systemd-units
728     %endif
729     %if %{with_numad}
730 Requires: numad
731     %endif
732 # libvirtd depends on 'messagebus' service
733 Requires: dbus
734 # For uid creation during pre
735 Requires(pre): shadow-utils
736
737 %description daemon
738 Server side daemon required to manage the virtualization capabilities
739 of recent versions of Linux. Requires a hypervisor specific sub-RPM
740 for specific drivers.
741
742     %if %{with_network}
743 %package daemon-config-network
744 Summary: Default configuration files for the libvirtd daemon
745 Group: Development/Libraries
746
747 Requires: libvirt-daemon = %{version}-%{release}
748 Requires: libvirt-daemon-driver-network = %{version}-%{release}
749
750 %description daemon-config-network
751 Default configuration files for setting up NAT based networking
752     %endif
753
754     %if %{with_nwfilter}
755 %package daemon-config-nwfilter
756 Summary: Network filter configuration files for the libvirtd daemon
757 Group: Development/Libraries
758
759 Requires: libvirt-daemon = %{version}-%{release}
760
761 %description daemon-config-nwfilter
762 Network filter configuration files for cleaning guest traffic
763     %endif
764
765     %if %{with_driver_modules}
766         %if %{with_network}
767 %package daemon-driver-network
768 Summary: Network driver plugin for the libvirtd daemon
769 Group: Development/Libraries
770 Requires: libvirt-daemon = %{version}-%{release}
771 Requires: dnsmasq >= 2.41
772 Requires: radvd
773 Requires: iptables
774 Requires: iptables-ipv6
775
776 %description daemon-driver-network
777 The network driver plugin for the libvirtd daemon, providing
778 an implementation of the virtual network APIs using the Linux
779 bridge capabilities.
780         %endif
781
782
783         %if %{with_nwfilter}
784 %package daemon-driver-nwfilter
785 Summary: Nwfilter driver plugin for the libvirtd daemon
786 Group: Development/Libraries
787 Requires: libvirt-daemon = %{version}-%{release}
788 Requires: iptables
789 Requires: iptables-ipv6
790 Requires: ebtables
791
792 %description daemon-driver-nwfilter
793 The nwfilter driver plugin for the libvirtd daemon, providing
794 an implementation of the firewall APIs using the ebtables,
795 iptables and ip6tables capabilities
796         %endif
797
798
799         %if %{with_nodedev}
800 %package daemon-driver-nodedev
801 Summary: Nodedev driver plugin for the libvirtd daemon
802 Group: Development/Libraries
803 Requires: libvirt-daemon = %{version}-%{release}
804 # needed for device enumeration
805             %if %{with_hal}
806 Requires: hal
807             %endif
808             %if %{with_udev}
809                 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
810 Requires: systemd >= 185
811                 %else
812 Requires: udev >= 145
813                 %endif
814             %endif
815
816 %description daemon-driver-nodedev
817 The nodedev driver plugin for the libvirtd daemon, providing
818 an implementation of the node device APIs using the udev
819 capabilities.
820         %endif
821
822
823         %if %{with_interface}
824 %package daemon-driver-interface
825 Summary: Interface driver plugin for the libvirtd daemon
826 Group: Development/Libraries
827 Requires: libvirt-daemon = %{version}-%{release}
828             %if %{with_netcf} && (0%{?fedora} >= 18 || 0%{?rhel} >= 7)
829 Requires: netcf-libs >= 0.2.2
830             %endif
831
832 %description daemon-driver-interface
833 The interface driver plugin for the libvirtd daemon, providing
834 an implementation of the network interface APIs using the
835 netcf library
836         %endif
837
838
839 %package daemon-driver-secret
840 Summary: Secret driver plugin for the libvirtd daemon
841 Group: Development/Libraries
842 Requires: libvirt-daemon = %{version}-%{release}
843
844 %description daemon-driver-secret
845 The secret driver plugin for the libvirtd daemon, providing
846 an implementation of the secret key APIs.
847
848
849         %if %{with_storage}
850 %package daemon-driver-storage
851 Summary: Storage driver plugin for the libvirtd daemon
852 Group: Development/Libraries
853 Requires: libvirt-daemon = %{version}-%{release}
854             %if %{with_storage_fs}
855 Requires: nfs-utils
856 # For mkfs
857 Requires: util-linux
858 # For glusterfs
859                 %if 0%{?fedora} >= 11
860 Requires: glusterfs-client >= 2.0.1
861                 %endif
862             %endif
863             %if %{with_storage_lvm}
864 # For LVM drivers
865 Requires: lvm2
866             %endif
867             %if %{with_storage_iscsi}
868 # For ISCSI driver
869 Requires: iscsi-initiator-utils
870             %endif
871             %if %{with_storage_disk}
872 # For disk driver
873 Requires: parted
874 Requires: device-mapper
875             %endif
876             %if %{with_storage_mpath}
877 # For multipath support
878 Requires: device-mapper
879             %endif
880             %if %{with_storage_sheepdog}
881 # For Sheepdog support
882 Requires: sheepdog
883             %endif
884             %if %{with_qemu}
885 # From QEMU RPMs
886 Requires: /usr/bin/qemu-img
887             %else
888                 %if %{with_xen}
889 # From Xen RPMs
890 Requires: /usr/sbin/qcow-create
891                 %endif
892             %endif
893
894 %description daemon-driver-storage
895 The storage driver plugin for the libvirtd daemon, providing
896 an implementation of the storage APIs using LVM, iSCSI,
897 parted and more.
898         %endif
899
900
901         %if %{with_qemu}
902 %package daemon-driver-qemu
903 Summary: Qemu driver plugin for the libvirtd daemon
904 Group: Development/Libraries
905 Requires: libvirt-daemon = %{version}-%{release}
906 # There really is a hard cross-driver dependency here
907 Requires: libvirt-daemon-driver-network = %{version}-%{release}
908 Requires: /usr/bin/qemu-img
909 # For image compression
910 Requires: gzip
911 Requires: bzip2
912 Requires: lzop
913 Requires: xz
914
915 %description daemon-driver-qemu
916 The qemu driver plugin for the libvirtd daemon, providing
917 an implementation of the hypervisor driver APIs using
918 QEMU
919         %endif
920
921
922         %if %{with_lxc}
923 %package daemon-driver-lxc
924 Summary: LXC driver plugin for the libvirtd daemon
925 Group: Development/Libraries
926 Requires: libvirt-daemon = %{version}-%{release}
927 # There really is a hard cross-driver dependency here
928 Requires: libvirt-daemon-driver-network = %{version}-%{release}
929
930 %description daemon-driver-lxc
931 The LXC driver plugin for the libvirtd daemon, providing
932 an implementation of the hypervisor driver APIs using
933 the Linux kernel
934         %endif
935
936
937         %if %{with_uml}
938 %package daemon-driver-uml
939 Summary: Uml driver plugin for the libvirtd daemon
940 Group: Development/Libraries
941 Requires: libvirt-daemon = %{version}-%{release}
942
943 %description daemon-driver-uml
944 The UML driver plugin for the libvirtd daemon, providing
945 an implementation of the hypervisor driver APIs using
946 User Mode Linux
947         %endif
948
949
950         %if %{with_xen}
951 %package daemon-driver-xen
952 Summary: Xen driver plugin for the libvirtd daemon
953 Group: Development/Libraries
954 Requires: libvirt-daemon = %{version}-%{release}
955
956 %description daemon-driver-xen
957 The Xen driver plugin for the libvirtd daemon, providing
958 an implementation of the hypervisor driver APIs using
959 Xen
960         %endif
961
962
963         %if %{with_vbox}
964 %package daemon-driver-vbox
965 Summary: VirtualBox driver plugin for the libvirtd daemon
966 Group: Development/Libraries
967 Requires: libvirt-daemon = %{version}-%{release}
968
969 %description daemon-driver-vbox
970 The vbox driver plugin for the libvirtd daemon, providing
971 an implementation of the hypervisor driver APIs using
972 VirtualBox
973         %endif
974
975
976         %if %{with_libxl}
977 %package daemon-driver-libxl
978 Summary: Libxl driver plugin for the libvirtd daemon
979 Group: Development/Libraries
980 Requires: libvirt-daemon = %{version}-%{release}
981
982 %description daemon-driver-libxl
983 The Libxl driver plugin for the libvirtd daemon, providing
984 an implementation of the hypervisor driver APIs using
985 Libxl
986         %endif
987     %endif # %{with_driver_modules}
988
989
990
991     %if %{with_qemu_tcg}
992 %package daemon-qemu
993 Summary: Server side daemon & driver required to run QEMU guests
994 Group: Development/Libraries
995
996 Requires: libvirt-daemon = %{version}-%{release}
997         %if %{with_driver_modules}
998 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
999 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1000 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1001 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1002 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1003 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1004 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1005         %endif
1006 Requires: qemu
1007
1008 %description daemon-qemu
1009 Server side daemon and driver required to manage the virtualization
1010 capabilities of the QEMU TCG emulators
1011     %endif
1012
1013
1014     %if %{with_qemu_kvm}
1015 %package daemon-kvm
1016 Summary: Server side daemon & driver required to run KVM guests
1017 Group: Development/Libraries
1018
1019 Requires: libvirt-daemon = %{version}-%{release}
1020         %if %{with_driver_modules}
1021 Requires: libvirt-daemon-driver-qemu = %{version}-%{release}
1022 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1023 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1024 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1025 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1026 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1027 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1028         %endif
1029 Requires: qemu-kvm
1030
1031 %description daemon-kvm
1032 Server side daemon and driver required to manage the virtualization
1033 capabilities of the KVM hypervisor
1034     %endif
1035
1036
1037     %if %{with_lxc}
1038 %package daemon-lxc
1039 Summary: Server side daemon & driver required to run LXC guests
1040 Group: Development/Libraries
1041
1042 Requires: libvirt-daemon = %{version}-%{release}
1043         %if %{with_driver_modules}
1044 Requires: libvirt-daemon-driver-lxc = %{version}-%{release}
1045 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1046 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1047 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1048 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1049 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1050 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1051         %endif
1052
1053 %description daemon-lxc
1054 Server side daemon and driver required to manage the virtualization
1055 capabilities of LXC
1056     %endif
1057
1058
1059     %if %{with_uml}
1060 %package daemon-uml
1061 Summary: Server side daemon & driver required to run UML guests
1062 Group: Development/Libraries
1063
1064 Requires: libvirt-daemon = %{version}-%{release}
1065         %if %{with_driver_modules}
1066 Requires: libvirt-daemon-driver-uml = %{version}-%{release}
1067 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1068 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1069 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1070 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1071 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1072 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1073         %endif
1074 # There are no UML kernel RPMs in Fedora/RHEL to depend on.
1075
1076 %description daemon-uml
1077 Server side daemon and driver required to manage the virtualization
1078 capabilities of UML
1079     %endif
1080
1081
1082     %if %{with_xen} || %{with_libxl}
1083 %package daemon-xen
1084 Summary: Server side daemon & driver required to run XEN guests
1085 Group: Development/Libraries
1086
1087 Requires: libvirt-daemon = %{version}-%{release}
1088         %if %{with_driver_modules}
1089             %if %{with_xen}
1090 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
1091             %endif
1092             %if %{with_libxl}
1093 Requires: libvirt-daemon-driver-libxl = %{version}-%{release}
1094             %endif
1095 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1096 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1097 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1098 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1099 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1100 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1101         %endif
1102 Requires: xen
1103
1104 %description daemon-xen
1105 Server side daemon and driver required to manage the virtualization
1106 capabilities of XEN
1107     %endif
1108
1109     %if %{with_vbox}
1110 %package daemon-vbox
1111 Summary: Server side daemon & driver required to run VirtualBox guests
1112 Group: Development/Libraries
1113
1114 Requires: libvirt-daemon = %{version}-%{release}
1115         %if %{with_driver_modules}
1116 Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
1117 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
1118 Requires: libvirt-daemon-driver-network = %{version}-%{release}
1119 Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
1120 Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
1121 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
1122 Requires: libvirt-daemon-driver-storage = %{version}-%{release}
1123         %endif
1124
1125 %description daemon-vbox
1126 Server side daemon and driver required to manage the virtualization
1127 capabilities of VirtualBox
1128     %endif
1129 %endif # %{with_libvirtd}
1130
1131 %package client
1132 Summary: Client side library and utilities of the libvirt library
1133 Group: Development/Libraries
1134 Requires: readline
1135 Requires: ncurses
1136 # So remote clients can access libvirt over SSH tunnel
1137 # (client invokes 'nc' against the UNIX socket on the server)
1138 Requires: nc
1139 # Needed by /usr/libexec/libvirt-guests.sh script.
1140 Requires: gettext
1141 # Needed by virt-pki-validate script.
1142 Requires: gnutls-utils
1143 # Needed for probing the power management features of the host.
1144 Requires: pm-utils
1145 %if %{with_sasl}
1146 Requires: cyrus-sasl
1147 # Not technically required, but makes 'out-of-box' config
1148 # work correctly & doesn't have onerous dependencies
1149 Requires: cyrus-sasl-md5
1150 %endif
1151
1152 %description client
1153 Shared libraries and client binaries needed to access to the
1154 virtualization capabilities of recent versions of Linux (and other OSes).
1155
1156 %if %{with_lxc}
1157 %package login-shell
1158 Summary: Login shell for connecting users to an LXC container
1159 Group: Development/Libraries
1160 Requires: %{name}-client = %{version}-%{release}
1161
1162 %description login-shell
1163 Provides the set-uid virt-login-shell binary that is used to
1164 connect a user to an LXC container when they login, by switching
1165 namespaces.
1166 %endif
1167
1168 %package devel
1169 Summary: Libraries, includes, etc. to compile with the libvirt library
1170 Group: Development/Libraries
1171 Requires: %{name}-client = %{version}-%{release}
1172 Requires: %{name}-docs = %{version}-%{release}
1173 Requires: pkgconfig
1174
1175 %description devel
1176 Include header files & development libraries for the libvirt C library.
1177
1178 %if %{with_sanlock}
1179 %package lock-sanlock
1180 Summary: Sanlock lock manager plugin for QEMU driver
1181 Group: Development/Libraries
1182     %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
1183 Requires: sanlock >= 2.4
1184     %else
1185 Requires: sanlock >= 1.8
1186     %endif
1187 #for virt-sanlock-cleanup require augeas
1188 Requires: augeas
1189 Requires: %{name}-daemon = %{version}-%{release}
1190 Requires: %{name}-client = %{version}-%{release}
1191
1192 %description lock-sanlock
1193 Includes the Sanlock lock manager plugin for the QEMU
1194 driver
1195 %endif
1196
1197 %prep
1198 %setup -q
1199
1200 %build
1201 %if ! %{with_xen}
1202     %define _without_xen --without-xen
1203 %endif
1204
1205 %if ! %{with_qemu}
1206     %define _without_qemu --without-qemu
1207 %endif
1208
1209 %if ! %{with_openvz}
1210     %define _without_openvz --without-openvz
1211 %endif
1212
1213 %if ! %{with_lxc}
1214     %define _without_lxc --without-lxc
1215 %endif
1216
1217 %if ! %{with_vbox}
1218     %define _without_vbox --without-vbox
1219 %endif
1220
1221 %if ! %{with_xenapi}
1222     %define _without_xenapi --without-xenapi
1223 %endif
1224
1225 %if ! %{with_libxl}
1226     %define _without_libxl --without-libxl
1227 %endif
1228
1229 %if ! %{with_sasl}
1230     %define _without_sasl --without-sasl
1231 %endif
1232
1233 %if ! %{with_avahi}
1234     %define _without_avahi --without-avahi
1235 %endif
1236
1237 %if ! %{with_phyp}
1238     %define _without_phyp --without-phyp
1239 %endif
1240
1241 %if ! %{with_esx}
1242     %define _without_esx --without-esx
1243 %endif
1244
1245 %if ! %{with_hyperv}
1246     %define _without_hyperv --without-hyperv
1247 %endif
1248
1249 %if ! %{with_vmware}
1250     %define _without_vmware --without-vmware
1251 %endif
1252
1253 %if ! %{with_parallels}
1254     %define _without_parallels --without-parallels
1255 %endif
1256
1257 %if ! %{with_polkit}
1258     %define _without_polkit --without-polkit
1259 %endif
1260
1261 %if ! %{with_libvirtd}
1262     %define _without_libvirtd --without-libvirtd
1263 %endif
1264
1265 %if ! %{with_uml}
1266     %define _without_uml --without-uml
1267 %endif
1268
1269 %if %{with_rhel5}
1270     %define _with_rhel5_api --with-rhel5-api
1271 %endif
1272
1273 %if ! %{with_interface}
1274     %define _without_interface --without-interface
1275 %endif
1276
1277 %if ! %{with_network}
1278     %define _without_network --without-network
1279 %endif
1280
1281 %if ! %{with_storage_fs}
1282     %define _without_storage_fs --without-storage-fs
1283 %endif
1284
1285 %if ! %{with_storage_lvm}
1286     %define _without_storage_lvm --without-storage-lvm
1287 %endif
1288
1289 %if ! %{with_storage_iscsi}
1290     %define _without_storage_iscsi --without-storage-iscsi
1291 %endif
1292
1293 %if ! %{with_storage_disk}
1294     %define _without_storage_disk --without-storage-disk
1295 %endif
1296
1297 %if ! %{with_storage_mpath}
1298     %define _without_storage_mpath --without-storage-mpath
1299 %endif
1300
1301 %if ! %{with_storage_rbd}
1302     %define _without_storage_rbd --without-storage-rbd
1303 %endif
1304
1305 %if ! %{with_storage_sheepdog}
1306     %define _without_storage_sheepdog --without-storage-sheepdog
1307 %endif
1308
1309 %if ! %{with_storage_gluster}
1310     %define _without_storage_gluster --without-storage-gluster
1311 %endif
1312
1313 %if ! %{with_numactl}
1314     %define _without_numactl --without-numactl
1315 %endif
1316
1317 %if ! %{with_numad}
1318     %define _without_numad --without-numad
1319 %endif
1320
1321 %if ! %{with_capng}
1322     %define _without_capng --without-capng
1323 %endif
1324
1325 %if ! %{with_fuse}
1326     %define _without_fuse --without-fuse
1327 %endif
1328
1329 %if ! %{with_netcf}
1330     %define _without_netcf --without-netcf
1331 %endif
1332
1333 %if ! %{with_selinux}
1334     %define _without_selinux --without-selinux
1335 %endif
1336
1337 %if ! %{with_apparmor}
1338     %define _without_apparmor --without-apparmor
1339 %endif
1340
1341 %if ! %{with_hal}
1342     %define _without_hal --without-hal
1343 %endif
1344
1345 %if ! %{with_udev}
1346     %define _without_udev --without-udev
1347 %endif
1348
1349 %if ! %{with_yajl}
1350     %define _without_yajl --without-yajl
1351 %endif
1352
1353 %if ! %{with_sanlock}
1354     %define _without_sanlock --without-sanlock
1355 %endif
1356
1357 %if ! %{with_libpcap}
1358     %define _without_libpcap --without-libpcap
1359 %endif
1360
1361 %if ! %{with_macvtap}
1362     %define _without_macvtap --without-macvtap
1363 %endif
1364
1365 %if ! %{with_audit}
1366     %define _without_audit --without-audit
1367 %endif
1368
1369 %if ! %{with_dtrace}
1370     %define _without_dtrace --without-dtrace
1371 %endif
1372
1373 %if ! %{with_driver_modules}
1374     %define _without_driver_modules --without-driver-modules
1375 %endif
1376
1377 %if %{with_firewalld}
1378     %define _with_firewalld --with-firewalld
1379 %endif
1380
1381 %define when  %(date +"%%F-%%T")
1382 %define where %(hostname)
1383 %define who   %{?packager}%{!?packager:Unknown}
1384 %define with_packager --with-packager="%{who}, %{when}, %{where}"
1385 %define with_packager_version --with-packager-version="%{release}"
1386
1387 %if %{with_systemd}
1388     %define init_scripts --with-init_script=systemd
1389 %else
1390     %define init_scripts --with-init_script=redhat
1391 %endif
1392
1393 %if %{with_selinux}
1394     %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
1395         %define with_selinux_mount --with-selinux-mount="/sys/fs/selinux"
1396     %else
1397         %define with_selinux_mount --with-selinux-mount="/selinux"
1398     %endif
1399 %endif
1400
1401 # place macros above and build commands below this comment
1402
1403 %if 0%{?enable_autotools}
1404  autoreconf -if
1405 %endif
1406
1407 %configure %{?_without_xen} \
1408            %{?_without_qemu} \
1409            %{?_without_openvz} \
1410            %{?_without_lxc} \
1411            %{?_without_vbox} \
1412            %{?_without_libxl} \
1413            %{?_without_xenapi} \
1414            %{?_without_sasl} \
1415            %{?_without_avahi} \
1416            %{?_without_polkit} \
1417            %{?_without_libvirtd} \
1418            %{?_without_uml} \
1419            %{?_without_phyp} \
1420            %{?_without_esx} \
1421            %{?_without_hyperv} \
1422            %{?_without_vmware} \
1423            %{?_without_parallels} \
1424            %{?_without_interface} \
1425            %{?_without_network} \
1426            %{?_with_rhel5_api} \
1427            %{?_without_storage_fs} \
1428            %{?_without_storage_lvm} \
1429            %{?_without_storage_iscsi} \
1430            %{?_without_storage_disk} \
1431            %{?_without_storage_mpath} \
1432            %{?_without_storage_rbd} \
1433            %{?_without_storage_sheepdog} \
1434            %{?_without_storage_gluster} \
1435            %{?_without_numactl} \
1436            %{?_without_numad} \
1437            %{?_without_capng} \
1438            %{?_without_fuse} \
1439            %{?_without_netcf} \
1440            %{?_without_selinux} \
1441            %{?_with_selinux_mount} \
1442            %{?_without_apparmor} \
1443            %{?_without_hal} \
1444            %{?_without_udev} \
1445            %{?_without_yajl} \
1446            %{?_without_sanlock} \
1447            %{?_without_libpcap} \
1448            %{?_without_macvtap} \
1449            %{?_without_audit} \
1450            %{?_without_dtrace} \
1451            %{?_without_driver_modules} \
1452            %{?_with_firewalld} \
1453            %{with_packager} \
1454            %{with_packager_version} \
1455            --with-qemu-user=%{qemu_user} \
1456            --with-qemu-group=%{qemu_group} \
1457            %{?enable_werror} \
1458            --enable-expensive-tests \
1459            %{init_scripts}
1460 make %{?_smp_mflags}
1461 gzip -9 ChangeLog
1462
1463 %install
1464 rm -fr %{buildroot}
1465
1466 # Avoid using makeinstall macro as it changes prefixes rather than setting
1467 # DESTDIR. Newer make_install macro would be better but it's not available
1468 # on RHEL 5, thus we need to expand it here.
1469 make install DESTDIR=%{?buildroot} SYSTEMD_UNIT_DIR=%{_unitdir}
1470
1471 for i in object-events dominfo domsuspend hellolibvirt openauth xml/nwfilter systemtap
1472 do
1473   (cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
1474 done
1475 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
1476 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
1477 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la
1478 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a
1479 %if %{with_driver_modules}
1480 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la
1481 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a
1482 %endif
1483
1484 %if %{with_network}
1485 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/lib/libvirt/dnsmasq/
1486 # We don't want to install /etc/libvirt/qemu/networks in the main %files list
1487 # because if the admin wants to delete the default network completely, we don't
1488 # want to end up re-incarnating it on every RPM upgrade.
1489 install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/
1490 cp $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml \
1491    $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1492 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1493 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1494 # Strip auto-generated UUID - we need it generated per-install
1495 sed -i -e "/<uuid>/d" $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
1496 %else
1497 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
1498 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1499 %endif
1500 %if ! %{with_qemu}
1501 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug
1502 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
1503 %endif
1504 %find_lang %{name}
1505
1506 %if ! %{with_sanlock}
1507 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirt_sanlock.aug
1508 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
1509 %endif
1510
1511 %if ! %{with_lxc}
1512 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
1513 rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
1514 %endif
1515
1516 %if ! %{with_qemu}
1517 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
1518 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu
1519 %endif
1520 %if ! %{with_lxc}
1521 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
1522 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc
1523 %endif
1524 %if ! %{with_uml}
1525 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml
1526 %endif
1527
1528 # Copied into libvirt-docs subpackage eventually
1529 mv $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version} libvirt-docs
1530
1531 %if %{with_dtrace}
1532     %ifarch %{power64} s390x x86_64 ia64 alpha sparc64
1533 mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes.stp \
1534    $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_probes-64.stp
1535 mv $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp \
1536    $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/libvirt_qemu_probes-64.stp
1537     %endif
1538 %endif
1539
1540 %if 0%{?fedora} < 14 && 0%{?rhel} < 6
1541 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/sysctl.d/libvirtd.conf
1542 %endif
1543
1544 %clean
1545 rm -fr %{buildroot}
1546
1547 %check
1548 cd tests
1549 make
1550 # These tests don't current work in a mock build root
1551 for i in nodeinfotest seclabeltest
1552 do
1553   rm -f $i
1554   printf 'int main(void) { return 0; }' > $i.c
1555   printf '#!/bin/sh\nexit 0\n' > $i
1556   chmod +x $i
1557 done
1558 if ! make check VIR_TEST_DEBUG=1
1559 then
1560   cat test-suite.log || true
1561   exit 1
1562 fi
1563
1564 %if %{with_libvirtd}
1565     %if ! %{with_driver_modules}
1566         %if %{with_qemu}
1567 %pre daemon
1568             %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1569 # We want soft static allocation of well-known ids, as disk images
1570 # are commonly shared across NFS mounts by id rather than name; see
1571 # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
1572 getent group kvm >/dev/null || groupadd -f -g 36 -r kvm
1573 getent group qemu >/dev/null || groupadd -f -g 107 -r qemu
1574 if ! getent passwd qemu >/dev/null; then
1575   if ! getent passwd 107 >/dev/null; then
1576     useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1577   else
1578     useradd -r -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1579   fi
1580 fi
1581 exit 0
1582             %endif
1583         %endif
1584     %endif
1585
1586 %post daemon
1587
1588     %if %{with_network}
1589 # All newly defined networks will have a mac address for the bridge
1590 # auto-generated, but networks already existing at the time of upgrade
1591 # will not. We need to go through all the network configs, look for
1592 # those that don't have a mac address, and add one.
1593
1594 network_files=$( (cd %{_localstatedir}/lib/libvirt/network && \
1595                   grep -L "mac address" *.xml; \
1596                   cd %{_sysconfdir}/libvirt/qemu/networks && \
1597                   grep -L "mac address" *.xml) 2>/dev/null \
1598                 | sort -u)
1599
1600 for file in $network_files
1601 do
1602    # each file exists in either the config or state directory (or both) and
1603    # does not have a mac address specified in either. We add the same mac
1604    # address to both files (or just one, if the other isn't there)
1605
1606    mac4=`printf '%X' $(($RANDOM % 256))`
1607    mac5=`printf '%X' $(($RANDOM % 256))`
1608    mac6=`printf '%X' $(($RANDOM % 256))`
1609    for dir in %{_localstatedir}/lib/libvirt/network \
1610               %{_sysconfdir}/libvirt/qemu/networks
1611    do
1612       if test -f $dir/$file
1613       then
1614          sed -i.orig -e \
1615            "s|\(<bridge.*$\)|\0\n  <mac address='52:54:00:$mac4:$mac5:$mac6'/>|" \
1616            $dir/$file
1617          if test $? != 0
1618          then
1619              echo "failed to add <mac address='52:54:00:$mac4:$mac5:$mac6'/>" \
1620                   "to $dir/$file"
1621              mv -f $dir/$file.orig $dir/$file
1622          else
1623              rm -f $dir/$file.orig
1624          fi
1625       fi
1626    done
1627 done
1628     %endif
1629
1630     %if %{with_systemd}
1631         %if %{with_systemd_macros}
1632             %systemd_post virtlockd.socket libvirtd.service
1633         %else
1634 if [ $1 -eq 1 ] ; then
1635     # Initial installation
1636     /bin/systemctl enable virtlockd.socket libvirtd.service >/dev/null 2>&1 || :
1637 fi
1638         %endif
1639     %else
1640         %if %{with_cgconfig}
1641 # Starting with Fedora 16/RHEL-7, systemd automounts all cgroups,
1642 # and cgconfig is no longer a necessary service.
1643             %if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 16)
1644 if [ "$1" -eq "1" ]; then
1645 /sbin/chkconfig cgconfig on
1646 fi
1647             %endif
1648         %endif
1649
1650 /sbin/chkconfig --add libvirtd
1651 /sbin/chkconfig --add virtlockd
1652     %endif
1653
1654 %preun daemon
1655     %if %{with_systemd}
1656         %if %{with_systemd_macros}
1657             %systemd_preun libvirtd.service virtlockd.socket virtlockd.service
1658         %else
1659 if [ $1 -eq 0 ] ; then
1660     # Package removal, not upgrade
1661     /bin/systemctl --no-reload disable libvirtd.service virtlockd.socket virtlockd.service > /dev/null 2>&1 || :
1662     /bin/systemctl stop libvirtd.service virtlockd.socket virtlockd.service > /dev/null 2>&1 || :
1663 fi
1664         %endif
1665     %else
1666 if [ $1 = 0 ]; then
1667     /sbin/service libvirtd stop 1>/dev/null 2>&1
1668     /sbin/chkconfig --del libvirtd
1669     /sbin/service virtlockd stop 1>/dev/null 2>&1
1670     /sbin/chkconfig --del virtlockd
1671 fi
1672     %endif
1673
1674 %postun daemon
1675     %if %{with_systemd}
1676 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
1677 if [ $1 -ge 1 ] ; then
1678     /bin/systemctl reload-or-try-restart virtlockd.service >/dev/null 2>&1 || :
1679     /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1680 fi
1681     %else
1682 if [ $1 -ge 1 ]; then
1683     /sbin/service virtlockd reload > /dev/null 2>&1 || :
1684     /sbin/service libvirtd condrestart > /dev/null 2>&1
1685 fi
1686     %endif
1687
1688     %if %{with_systemd}
1689     %else
1690 %triggerpostun daemon -- libvirt-daemon < 1.2.1
1691 if [ "$1" -ge "1" ]; then
1692     /sbin/service virtlockd reload > /dev/null 2>&1 || :
1693     /sbin/service libvirtd condrestart > /dev/null 2>&1
1694 fi
1695     %endif
1696
1697     %if %{with_network}
1698 %post daemon-config-network
1699 if test $1 -eq 1 && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ; then
1700     UUID=`/usr/bin/uuidgen`
1701     sed -e "s,</name>,</name>\n  <uuid>$UUID</uuid>," \
1702          < %{_datadir}/libvirt/networks/default.xml \
1703          > %{_sysconfdir}/libvirt/qemu/networks/default.xml
1704     ln -s ../default.xml %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
1705 fi
1706     %endif
1707
1708     %if %{with_systemd}
1709 %triggerun -- libvirt < 0.9.4
1710 %{_bindir}/systemd-sysv-convert --save libvirtd >/dev/null 2>&1 ||:
1711
1712 # If the package is allowed to autostart:
1713 /bin/systemctl --no-reload enable libvirtd.service >/dev/null 2>&1 ||:
1714
1715 # Run these because the SysV package being removed won't do them
1716 /sbin/chkconfig --del libvirtd >/dev/null 2>&1 || :
1717 /bin/systemctl try-restart libvirtd.service >/dev/null 2>&1 || :
1718     %endif
1719
1720     %if %{with_driver_modules}
1721         %if %{with_qemu}
1722 %pre daemon-driver-qemu
1723             %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1724 # We want soft static allocation of well-known ids, as disk images
1725 # are commonly shared across NFS mounts by id rather than name; see
1726 # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
1727 getent group kvm >/dev/null || groupadd -f -g 36 -r kvm
1728 getent group qemu >/dev/null || groupadd -f -g 107 -r qemu
1729 if ! getent passwd qemu >/dev/null; then
1730   if ! getent passwd 107 >/dev/null; then
1731     useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1732   else
1733     useradd -r -g qemu -G kvm -d / -s /sbin/nologin -c "qemu user" qemu
1734   fi
1735 fi
1736 exit 0
1737             %endif
1738         %endif
1739     %endif
1740 %endif # %{with_libvirtd}
1741
1742 %preun client
1743
1744 %if %{with_systemd}
1745     %if %{with_systemd_macros}
1746         %systemd_preun libvirt-guests.service
1747     %endif
1748 %else
1749 if [ $1 = 0 ]; then
1750     /sbin/chkconfig --del libvirt-guests
1751     rm -f /var/lib/libvirt/libvirt-guests
1752 fi
1753 %endif
1754
1755 %post client
1756
1757 /sbin/ldconfig
1758 %if %{with_systemd}
1759     %if %{with_systemd_macros}
1760         %systemd_post libvirt-guests.service
1761     %endif
1762 %else
1763 /sbin/chkconfig --add libvirt-guests
1764 %endif
1765
1766 %postun client
1767
1768 /sbin/ldconfig
1769 %if %{with_systemd}
1770     %if %{with_systemd_macros}
1771         %systemd_postun libvirt-guests.service
1772     %endif
1773 %triggerun client -- libvirt < 0.9.4
1774 %{_bindir}/systemd-sysv-convert --save libvirt-guests >/dev/null 2>&1 ||:
1775
1776 # If the package is allowed to autostart:
1777 /bin/systemctl --no-reload enable libvirt-guests.service >/dev/null 2>&1 ||:
1778
1779 # Run this because the SysV package being removed won't do them
1780 /sbin/chkconfig --del libvirt-guests >/dev/null 2>&1 || :
1781 %endif
1782
1783 %if %{with_sanlock}
1784 %post lock-sanlock
1785 if getent group sanlock > /dev/null ; then
1786     chmod 0770 %{_localstatedir}/lib/libvirt/sanlock
1787     chown root:sanlock %{_localstatedir}/lib/libvirt/sanlock
1788 fi
1789 %endif
1790
1791 %if %{with_lxc}
1792 %pre login-shell
1793 getent group virtlogin >/dev/null || groupadd -r virtlogin
1794 exit 0
1795 %endif
1796
1797 %files
1798 %defattr(-, root, root)
1799
1800 %files docs
1801 %defattr(-, root, root)
1802 %doc AUTHORS ChangeLog.gz NEWS README TODO libvirt-docs/*
1803
1804 # API docs
1805 %dir %{_datadir}/gtk-doc/html/libvirt/
1806 %doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
1807 %doc %{_datadir}/gtk-doc/html/libvirt/*.html
1808 %doc %{_datadir}/gtk-doc/html/libvirt/*.png
1809 %doc %{_datadir}/gtk-doc/html/libvirt/*.css
1810
1811 %if %{with_libvirtd}
1812 %files daemon
1813 %defattr(-, root, root)
1814
1815 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
1816
1817     %if %{with_nwfilter}
1818 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/
1819     %endif
1820
1821     %if %{with_systemd}
1822 %{_unitdir}/libvirtd.service
1823 %{_unitdir}/virtlockd.service
1824 %{_unitdir}/virtlockd.socket
1825     %else
1826 %{_sysconfdir}/rc.d/init.d/libvirtd
1827 %{_sysconfdir}/rc.d/init.d/virtlockd
1828     %endif
1829 %doc daemon/libvirtd.upstart
1830 %config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
1831 %config(noreplace) %{_sysconfdir}/sysconfig/virtlockd
1832 %config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
1833 %config(noreplace) %{_sysconfdir}/libvirt/virtlockd.conf
1834     %if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
1835 %config(noreplace) %{_prefix}/lib/sysctl.d/libvirtd.conf
1836     %endif
1837
1838 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
1839 %dir %{_datadir}/libvirt/
1840
1841 %ghost %dir %{_localstatedir}/run/libvirt/
1842
1843 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/
1844 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/filesystems/
1845 %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/
1846 %dir %attr(0711, root, root) %{_localstatedir}/cache/libvirt/
1847
1848
1849 %dir %attr(0755, root, root) %{_libdir}/libvirt/lock-driver
1850 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/lockd.so
1851
1852 %{_datadir}/augeas/lenses/libvirtd.aug
1853 %{_datadir}/augeas/lenses/tests/test_libvirtd.aug
1854 %{_datadir}/augeas/lenses/virtlockd.aug
1855 %{_datadir}/augeas/lenses/tests/test_virtlockd.aug
1856 %{_datadir}/augeas/lenses/libvirt_lockd.aug
1857 %{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug
1858
1859     %if %{with_polkit}
1860         %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
1861 %{_datadir}/polkit-1/actions/org.libvirt.unix.policy
1862 %{_datadir}/polkit-1/actions/org.libvirt.api.policy
1863         %else
1864 %{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
1865         %endif
1866     %endif
1867
1868 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
1869
1870 %attr(0755, root, root) %{_libexecdir}/libvirt_iohelper
1871
1872     %if %{with_apparmor}
1873 %attr(0755, root, root) %{_libexecdir}/virt-aa-helper
1874     %endif
1875
1876 %attr(0755, root, root) %{_sbindir}/libvirtd
1877 %attr(0755, root, root) %{_sbindir}/virtlockd
1878
1879 %{_mandir}/man8/libvirtd.8*
1880 %{_mandir}/man8/virtlockd.8*
1881
1882     %if ! %{with_driver_modules}
1883         %if %{with_network}
1884 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
1885 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
1886 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
1887 %dir %{_datadir}/libvirt/networks/
1888 %{_datadir}/libvirt/networks/default.xml
1889 %ghost %dir %{_localstatedir}/run/libvirt/network/
1890 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
1891 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
1892         %endif
1893         %if %{with_storage_disk}
1894 %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
1895         %endif
1896         %if %{with_qemu}
1897 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
1898 %config(noreplace) %{_sysconfdir}/libvirt/qemu-lockd.conf
1899 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
1900 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
1901 %ghost %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
1902 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
1903 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/
1904 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/target/
1905 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
1906 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
1907 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
1908         %endif
1909         %if %{with_lxc}
1910 %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
1911 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
1912 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
1913 %ghost %dir %{_localstatedir}/run/libvirt/lxc/
1914 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
1915 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
1916 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
1917 %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
1918         %endif
1919         %if %{with_uml}
1920 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
1921 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
1922 %ghost %dir %{_localstatedir}/run/libvirt/uml/
1923 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
1924         %endif
1925         %if %{with_libxl}
1926 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
1927 %ghost %dir %{_localstatedir}/run/libvirt/libxl/
1928 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
1929         %endif
1930         %if %{with_xen}
1931 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/xen/
1932         %endif
1933     %endif # ! %{with_driver_modules}
1934
1935     %if %{with_network}
1936 %files daemon-config-network
1937 %defattr(-, root, root)
1938     %endif
1939
1940     %if %{with_nwfilter}
1941 %files daemon-config-nwfilter
1942 %defattr(-, root, root)
1943 %{_sysconfdir}/libvirt/nwfilter/*.xml
1944     %endif
1945
1946     %if %{with_driver_modules}
1947         %if %{with_interface}
1948 %files daemon-driver-interface
1949 %defattr(-, root, root)
1950 %{_libdir}/%{name}/connection-driver/libvirt_driver_interface.so
1951         %endif
1952
1953         %if %{with_network}
1954 %files daemon-driver-network
1955 %defattr(-, root, root)
1956 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
1957 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
1958 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
1959 %dir %{_datadir}/libvirt/networks/
1960 %{_datadir}/libvirt/networks/default.xml
1961 %ghost %dir %{_localstatedir}/run/libvirt/network/
1962 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
1963 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
1964 %{_libdir}/%{name}/connection-driver/libvirt_driver_network.so
1965         %endif
1966
1967         %if %{with_nodedev}
1968 %files daemon-driver-nodedev
1969 %defattr(-, root, root)
1970 %{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so
1971         %endif
1972
1973         %if %{with_nwfilter}
1974 %files daemon-driver-nwfilter
1975 %defattr(-, root, root)
1976 %{_libdir}/%{name}/connection-driver/libvirt_driver_nwfilter.so
1977         %endif
1978
1979 %files daemon-driver-secret
1980 %defattr(-, root, root)
1981 %{_libdir}/%{name}/connection-driver/libvirt_driver_secret.so
1982
1983         %if %{with_storage}
1984 %files daemon-driver-storage
1985 %defattr(-, root, root)
1986             %if %{with_storage_disk}
1987 %attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
1988             %endif
1989 %{_libdir}/%{name}/connection-driver/libvirt_driver_storage.so
1990         %endif
1991
1992         %if %{with_qemu}
1993 %files daemon-driver-qemu
1994 %defattr(-, root, root)
1995 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
1996 %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
1997 %config(noreplace) %{_sysconfdir}/libvirt/qemu-lockd.conf
1998 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
1999 %ghost %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
2000 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
2001 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/
2002 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/target/
2003 %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
2004 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
2005 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
2006 %{_libdir}/%{name}/connection-driver/libvirt_driver_qemu.so
2007         %endif
2008
2009         %if %{with_lxc}
2010 %files daemon-driver-lxc
2011 %defattr(-, root, root)
2012 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
2013 %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
2014 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
2015 %ghost %dir %{_localstatedir}/run/libvirt/lxc/
2016 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
2017 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
2018 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
2019 %attr(0755, root, root) %{_libexecdir}/libvirt_lxc
2020 %{_libdir}/%{name}/connection-driver/libvirt_driver_lxc.so
2021         %endif
2022
2023         %if %{with_uml}
2024 %files daemon-driver-uml
2025 %defattr(-, root, root)
2026 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
2027 %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
2028 %ghost %dir %{_localstatedir}/run/libvirt/uml/
2029 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
2030 %{_libdir}/%{name}/connection-driver/libvirt_driver_uml.so
2031         %endif
2032
2033         %if %{with_xen}
2034 %files daemon-driver-xen
2035 %defattr(-, root, root)
2036 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/xen/
2037 %{_libdir}/%{name}/connection-driver/libvirt_driver_xen.so
2038         %endif
2039
2040         %if %{with_libxl}
2041 %files daemon-driver-libxl
2042 %defattr(-, root, root)
2043 %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
2044 %ghost %dir %{_localstatedir}/run/libvirt/libxl/
2045 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
2046 %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so
2047         %endif
2048
2049         %if %{with_vbox}
2050 %files daemon-driver-vbox
2051 %defattr(-, root, root)
2052 %{_libdir}/%{name}/connection-driver/libvirt_driver_vbox.so
2053         %endif
2054     %endif # %{with_driver_modules}
2055
2056     %if %{with_qemu_tcg}
2057 %files daemon-qemu
2058 %defattr(-, root, root)
2059     %endif
2060
2061     %if %{with_qemu_kvm}
2062 %files daemon-kvm
2063 %defattr(-, root, root)
2064     %endif
2065
2066     %if %{with_lxc}
2067 %files daemon-lxc
2068 %defattr(-, root, root)
2069     %endif
2070
2071     %if %{with_uml}
2072 %files daemon-uml
2073 %defattr(-, root, root)
2074     %endif
2075
2076     %if %{with_xen} || %{with_libxl}
2077 %files daemon-xen
2078 %defattr(-, root, root)
2079     %endif
2080
2081     %if %{with_vbox}
2082 %files daemon-vbox
2083 %defattr(-, root, root)
2084     %endif
2085 %endif # %{with_libvirtd}
2086
2087 %if %{with_sanlock}
2088 %files lock-sanlock
2089 %defattr(-, root, root)
2090     %if %{with_qemu}
2091 %config(noreplace) %{_sysconfdir}/libvirt/qemu-sanlock.conf
2092     %endif
2093 %attr(0755, root, root) %{_libdir}/libvirt/lock-driver/sanlock.so
2094 %{_datadir}/augeas/lenses/libvirt_sanlock.aug
2095 %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
2096 %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/sanlock
2097 %{_sbindir}/virt-sanlock-cleanup
2098 %{_mandir}/man8/virt-sanlock-cleanup.8*
2099 %attr(0755, root, root) %{_libexecdir}/libvirt_sanlock_helper
2100 %endif
2101
2102 %files client -f %{name}.lang
2103 %defattr(-, root, root)
2104 %doc COPYING COPYING.LESSER
2105
2106 %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
2107 %{_mandir}/man1/virsh.1*
2108 %{_mandir}/man1/virt-xml-validate.1*
2109 %{_mandir}/man1/virt-pki-validate.1*
2110 %{_mandir}/man1/virt-host-validate.1*
2111 %{_bindir}/virsh
2112 %{_bindir}/virt-xml-validate
2113 %{_bindir}/virt-pki-validate
2114 %{_bindir}/virt-host-validate
2115 %{_libdir}/lib*.so.*
2116
2117 %if %{with_dtrace}
2118 %{_datadir}/systemtap/tapset/libvirt_probes*.stp
2119 %{_datadir}/systemtap/tapset/libvirt_qemu_probes*.stp
2120 %{_datadir}/systemtap/tapset/libvirt_functions.stp
2121 %endif
2122
2123 %dir %{_datadir}/libvirt/
2124 %dir %{_datadir}/libvirt/schemas/
2125
2126 %{_datadir}/libvirt/schemas/basictypes.rng
2127 %{_datadir}/libvirt/schemas/capability.rng
2128 %{_datadir}/libvirt/schemas/domain.rng
2129 %{_datadir}/libvirt/schemas/domaincommon.rng
2130 %{_datadir}/libvirt/schemas/domainsnapshot.rng
2131 %{_datadir}/libvirt/schemas/interface.rng
2132 %{_datadir}/libvirt/schemas/network.rng
2133 %{_datadir}/libvirt/schemas/networkcommon.rng
2134 %{_datadir}/libvirt/schemas/nodedev.rng
2135 %{_datadir}/libvirt/schemas/nwfilter.rng
2136 %{_datadir}/libvirt/schemas/secret.rng
2137 %{_datadir}/libvirt/schemas/storageencryption.rng
2138 %{_datadir}/libvirt/schemas/storagefilefeatures.rng
2139 %{_datadir}/libvirt/schemas/storagepool.rng
2140 %{_datadir}/libvirt/schemas/storagevol.rng
2141
2142 %{_datadir}/libvirt/cpu_map.xml
2143 %{_datadir}/libvirt/libvirtLogo.png
2144
2145 %if %{with_systemd}
2146 %{_unitdir}/libvirt-guests.service
2147 %else
2148 %{_sysconfdir}/rc.d/init.d/libvirt-guests
2149 %endif
2150 %config(noreplace) %{_sysconfdir}/sysconfig/libvirt-guests
2151 %attr(0755, root, root) %{_libexecdir}/libvirt-guests.sh
2152 %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/
2153
2154 %if %{with_sasl}
2155 %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
2156 %endif
2157
2158 %if %{with_lxc}
2159 %files login-shell
2160 %attr(4750, root, virtlogin) %{_bindir}/virt-login-shell
2161 %config(noreplace) %{_sysconfdir}/libvirt/virt-login-shell.conf
2162 %{_mandir}/man1/virt-login-shell.1*
2163 %endif
2164
2165 %files devel
2166 %defattr(-, root, root)
2167
2168 %{_libdir}/lib*.so
2169 %dir %{_includedir}/libvirt
2170 %{_includedir}/libvirt/*.h
2171 %{_libdir}/pkgconfig/libvirt.pc
2172
2173 %dir %{_datadir}/libvirt/api/
2174 %{_datadir}/libvirt/api/libvirt-api.xml
2175 %{_datadir}/libvirt/api/libvirt-qemu-api.xml
2176 %{_datadir}/libvirt/api/libvirt-lxc-api.xml
2177
2178 %doc docs/*.html docs/html docs/*.gif
2179 %doc docs/libvirt-api.xml
2180 %doc examples/hellolibvirt
2181 %doc examples/object-events
2182 %doc examples/dominfo
2183 %doc examples/domsuspend
2184 %doc examples/openauth
2185 %doc examples/xml
2186 %doc examples/systemtap
2187
2188 %changelog
2189 * Mon Jan 27 2014 Cole Robinson <crobinso@redhat.com> - 1.2.1-2
2190 - Rebuild for openwsman soname bump
2191
2192 * Tue Jan 21 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.1-1
2193 - Update to 1.2.1 release
2194
2195 * Mon Dec  2 2013 Daniel P. Berrange <berrange@redhat.com> - 1.2.0-1
2196 - Update to 1.2.0 release with python in a separate srpm
2197
2198 * Tue Nov 12 2013 Cole Robinson <crobinso@redhat.com> - 1.1.4-2
2199 - virsh nodedev-detach fails if device has no driver (bz #1028629)
2200
2201 * Mon Nov  4 2013 Daniel Veillard <veillard@redhat.com> - 1.1.4-1
2202 - upstream release of 1.1.4
2203 - Add support for AArch64 architecture
2204 - Various improvements on test code and test driver
2205 - a lot of bug fixes and various improvements
2206
2207 * Sun Oct 06 2013 Cole Robinson <crobinso@redhat.com> - 1.1.3-2
2208 - Allow QoS change with update-device (bz #1014200)
2209 - Fix nwfilter crash during firewalld install (bz #1014762)
2210 - Fix crash with nographics (bz #1014088)
2211
2212 * Tue Oct  1 2013 Daniel Veillard <veillard@redhat.com> - 1.1.3-1
2213 - VMware: Initial VMware Fusion support and various improvements
2214 - libvirt: add new public API virConnectGetCPUModelNames
2215 - various libxl driver improvements
2216 - LXC many container driver improvement
2217 - ARM cpu improvements
2218 - a lot of bug and leak fixes and various improvements
2219
2220 * Tue Sep 24 2013 Cole Robinson <crobinso@redhat.com> - 1.1.2-4
2221 - Fix snapshot restore when VM has disabled usb support (bz #1011520)
2222
2223 * Mon Sep 23 2013 Cole Robinson <crobinso@redhat.com> - 1.1.2-3
2224 - Sync with v1.1.2-maint
2225 - Rebuild for libswan soname bump (bz #1009701)
2226 - CVE-2013-4311: Insecure polkit usage (bz #1009539, bz #1005332)
2227 - CVE-2013-4296: Invalid free memory stats (bz #1006173, bz #1009667)
2228 - CVE-2013-4297: Invalid free in NBDDeviceAssociate (bz #1006505, bz #1006511)
2229 - Fix virsh block-commit abort (bz #1010056)
2230
2231 * Wed Sep 18 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.2-2
2232 - Rebuild for soname break in openswman package
2233
2234 * Mon Sep  2 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.2-1
2235 - Update to 1.1.2 release
2236
2237 * Tue Aug 20 2013 Cole Robinson <crobinso@redhat.com> - 1.1.1-3
2238 - Fix launching ARM guests on x86 (patches posted upstream, F20 feature)
2239
2240 * Wed Aug 14 2013 Cole Robinson <crobinso@redhat.com> - 1.1.1-2
2241 - CVE-2013-4239: xen: memory corruption in legacy driver (bz #996241, bz
2242   #996244)
2243
2244 * Tue Jul 30 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.1-1
2245 - Update to 1.1.1 release
2246
2247 * Sun Jul 28 2013 Dennis Gilmore <dennis@ausil.us> - 1.1.0-5
2248 - fix doc path in libvirt-python
2249
2250 * Thu Jul 25 2013 Cole Robinson <crobinso@redhat.com> - 1.1.0-4
2251 - CVE-2013-4153: Fix double free of returned JSON (bz #986408, bz #986383)
2252 - CVE-2013-4154: Crash of libvirtd if guest agent not configured (bz #986386,
2253   bz #986406)
2254
2255 * Wed Jul 17 2013 Daniel P. Berrange <berrange@redhat.com> - 1.1.0-3
2256 - Rebuild for change in Xen library ABI/soname
2257
2258 * Thu Jul 11 2013 Cole Robinson <crobinso@redhat.com> - 1.1.0-2
2259 - CVE-2013-2230 libvirt: multiple registered events crash
2260
2261 * Mon Jul  1 2013 Daniel Veillard <veillard@redhat.com> - 1.1.0-1
2262 - CVE-2013-2218: Fix crash listing network interfaces with filters
2263 - Fine grained ACL support for the API
2264 - Extensible migration APIs
2265 - various improvements in the Xen driver
2266 - agent based vCPU hotplug support
2267 - various bug fixes and improvements including localizations
2268
2269 * Fri Jun 14 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.6-3
2270 - Enable KVM support on ARM
2271
2272 * Sat Jun 08 2013 Cole Robinson <crobinso@redhat.com> - 1.0.6-2
2273 - Drop bogus dep on vbox
2274
2275 * Mon Jun  3 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.6-1
2276 - Update to 1.0.6 release
2277
2278 * Sun May 19 2013 Cole Robinson <crobinso@redhat.com> - 1.0.5.1-1
2279 - Rebased to version 1.0.5.1
2280 - Follow updated packaging guidelines for user alloc (bz #924501)
2281 - CVE-2013-1962 Open files DoS (bz #963789, bz #953107)
2282
2283 * Tue May 14 2013 Cole Robinson <crobinso@redhat.com> - 1.0.5-3
2284 - Fix stream operations like screenshot (bz #960879)
2285
2286 * Fri May  3 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.5-2
2287 - Fix network driver when using qemu:///session (bz #958907).
2288
2289 * Thu May  2 2013 Daniel Veillard <veillard@redhat.com> - 1.0.5-1
2290 - Update to 1.0.5 release
2291 - add support for NVRAM device
2292 - Add XML config for resource partitions
2293 - Add support for TPM
2294 - NPIV storage migration support
2295 - various bug fixes and improvements including localizations
2296
2297 * Mon Apr  1 2013 Daniel Veillard <veillard@redhat.com> - 1.0.4-1
2298 - Update to 1.0.4 release
2299
2300 * Tue Mar  5 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.3-1
2301 - Update to 1.0.3 release
2302
2303 * Thu Feb 28 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-4
2304 - Backport "qemu: check backing chains even when cgroup is omitted"
2305   (RHBZ#896685).
2306 - Disable virnettlscontexttest which apparently fails because of
2307   a broken gnutls3.  Note since this patch touches Makefile.am, I
2308   have enabled autoreconf (enable_autotools).
2309
2310 * Tue Feb  5 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.2-2
2311 - Fix missing python binding constants
2312
2313 * Fri Feb  1 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.2-1
2314 - Update to 1.0.2 release
2315
2316 * Tue Jan 29 2013 Cole Robinson <crobinso@redhat.com> - 1.0.1-6
2317 - Fix network persistence after define (bz #890492)
2318
2319 * Mon Jan 28 2013 Cole Robinson <crobinso@redhat.com> - 1.0.1-5
2320 - CVE-2013-0170 libvirt: use-after-free in virNetMessageFree() (bz #893450, bz
2321   #905173)
2322
2323 * Sun Jan 20 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.1-4
2324 - Rebuild for libnl soname breakage (RHBZ#901569).
2325
2326 * Fri Jan 18 2013 Daniel P. Berrange <berrange@redhat.com> - 1.0.1-3
2327 - Rebuild for libnl3 soname change
2328 - Deal with broken kernel headers
2329
2330 * Mon Dec 17 2012 Cole Robinson <crobinso@redhat.com> - 1.0.1-2
2331 - Fix scriplet warning when uninstalling libvirt-client (bz #888071)
2332
2333 * Mon Dec 17 2012 Daniel Veillard <veillard@redhat.com> - 1.0.1-1
2334 - Update to 1.0.1 release
2335
2336 * Thu Nov  8 2012 Daniel P. Berrange <berrange@redhat.com> - 1.0.0-1
2337 - Update to 1.0.0 release
2338
2339 * Tue Oct 30 2012 Cole Robinson <crobinso@redhat.com> - 0.10.2.1-2
2340 - Disable libxl on F18 too
2341
2342 * Sat Oct 27 2012 Cole Robinson <crobinso@redhat.com> - 0.10.2.1-1
2343 - Rebased to version 0.10.2.1
2344 - Fix lvm volume creation when alloc=0 (bz #866481)
2345 - Clarify virsh send-keys man page example (bz #860004)
2346 - Fix occasional deadlock via virDomainDestroy (bz #859009)
2347 - Fix LXC deadlock from ctrl-c (bz #848119)
2348 - Fix occasional selinux denials with macvtap (bz #798605)
2349 - Fix multilib conflict with systemtap files (bz #831425)
2350 - Don't trigger keytab warning in system logs (bz #745203)
2351 - Fix qemu domxml-2-native NIC model out (bz #636832)
2352 - Fix error message if not enough space for lvm vol (bz #609104)
2353
2354 * Thu Oct 25 2012 Cole Robinson <crobinso@redhat.com> - 0.10.2-4
2355 - Disable libxl driver, since it doesn't build with xen 4.2 in rawhide
2356
2357 * Mon Sep 24 2012 Richard W.M. Jones <rjones@redhat.com> - 0.10.2-3
2358 - Re-add Use-qemu-system-i386-as-binary-instead-of-qemu.patch
2359   NB: This patch is Fedora-specific and not upstream.
2360 - Add upstream patches: don't duplicate environment variables (RHBZ#859596).
2361
2362 * Mon Sep 24 2012 Daniel Veillard <veillard@redhat.com> - 0.10.2-1
2363 - Upstream release 0.10.2
2364 - network: define new API virNetworkUpdate
2365 - add support for QEmu sandbox support
2366 - blockjob: add virDomainBlockCommit
2367 - New APIs to get/set Node memory parameters
2368 - new API virConnectListAllSecrets
2369 - new API virConnectListAllNWFilters
2370 - new API virConnectListAllNodeDevices
2371 - parallels: add support of containers to the driver
2372 - new API virConnectListAllInterfaces
2373 - new API virConnectListAllNetworks
2374 - new API virStoragePoolListAllVolumes
2375 - Add PMSUSPENDED life cycle event
2376 - new API virStorageListAllStoragePools
2377 - Add per-guest S3/S4 state configuration
2378 - qemu: Support for Block Device IO Limits
2379 - a lot of bug fixes, improvements and portability work
2380
2381 * Fri Sep 21 2012 Richard W.M. Jones <rjones@redhat.com> - 0.10.1-5
2382 - Add (upstream) patches to label sockets for SELinux (RHBZ#853393).
2383
2384 * Thu Sep 13 2012 Richard W.M. Jones <rjones@redhat.com> - 0.10.1-4
2385 - Fix for 32 bit qemu renamed to qemu-system-i386 (RHBZ#857026).
2386
2387 * Wed Sep 12 2012 Cole Robinson <crobinso@redhat.com> - 0.10.1-3
2388 - Fix libvirtd segfault with old netcf-libs (bz 853381)
2389 - Drop unneeded dnsmasq --filterwin2k
2390 - Fix unwanted connection closing, needed for boxes
2391
2392 * Wed Sep  5 2012 Daniel P. Berrange <berrange@redhat.com> - 0.10.1-2
2393 - Remove dep on ceph RPM (rhbz #854360)
2394
2395 * Fri Aug 31 2012 Daniel Veillard <veillard@redhat.com> - 0.10.1-1
2396 - upstream release of 0.10.1
2397 - many fixes from 0.10.0
2398
2399 * Wed Aug 29 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-1
2400 - upstream release of 0.10.0
2401 - agent: add qemuAgentArbitraryCommand() for general qemu agent command
2402 - Introduce virDomainPinEmulator and virDomainGetEmulatorPinInfo functions
2403 - network: use firewalld instead of iptables, when available
2404 - network: make network driver vlan-aware
2405 - esx: Implement network driver
2406 - driver for parallels hypervisor
2407 - Various LXC improvements
2408 - Add virDomainGetHostname
2409 - a lot of bug fixes, improvements and portability work
2410
2411 * Thu Aug 23 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-0rc1
2412 - release candidate 1 of 0.10.0
2413
2414 * Tue Aug 14 2012 Daniel P. Berrange <berrange@redhat.com> - 0.10.0-0rc0.2
2415 - Enable autotools to make previous patch work
2416
2417 * Tue Aug 14 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-0rc0.1
2418 - fix security driver missing from the daemon
2419
2420 * Wed Aug  8 2012 Daniel Veillard <veillard@redhat.com> - 0.10.0-0rc0
2421 - snapshot before 0.10.0 in a few weeks
2422 - adds the parallel driver support
2423
2424 * Mon Jul 23 2012 Richard W.M. Jones <rjones@redhat.com> - 0.9.13-3
2425 - Add upstream patch to fix RHBZ#842114.
2426
2427 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.13-2
2428 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2429
2430 * Mon Jul  2 2012 Daniel Veillard <veillard@redhat.com> - 0.9.13-1
2431 - S390: support for s390(x)
2432 - snapshot: implement new APIs for esx and vbox
2433 - snapshot: new query APIs and many improvements
2434 - virsh: Allow users to reedit rejected XML
2435 - nwfilter: add DHCP snooping
2436 - Enable driver modules in libvirt RPM
2437 - Default to enable driver modules for libvirtd
2438 - storage backend: Add RBD (RADOS Block Device) support
2439 - sVirt support for LXC domains inprovement
2440 - a lot of bug fixes, improvements and portability work
2441
2442 * Mon May 14 2012 Daniel Veillard <veillard@redhat.com> - 0.9.12-1
2443 - qemu: allow snapshotting of sheepdog and rbd disks
2444 - blockjob: add new APIs
2445 - a lot of bug fixes, improvements and portability work
2446
2447 * Thu Apr 26 2012 Cole Robinson <crobinso@redhat.com> - 0.9.11.3-1
2448 - Rebased to version 0.9.11.3
2449 - Abide URI username when connecting to hypervisor (bz 811397)
2450 - Fix managed USB mode (bz 814866)
2451 - Fix crash connecting to ESX host (bz 811891)
2452
2453 * Wed Apr  4 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.11-1
2454 - Update to 0.9.11 release
2455
2456 * Tue Apr  3 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-4
2457 - Revert previous change
2458
2459 * Sat Mar 31 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-3
2460 - Refactor RPM spec to allow install without default configs
2461
2462 * Thu Mar 15 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-2
2463 - Rebuild for libparted soname break
2464
2465 * Mon Feb 13 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.10-1
2466 - Update to 0.9.10
2467
2468 * Thu Jan 12 2012 Daniel P. Berrange <berrange@redhat.com> - 0.9.9-2
2469 - Fix LXC I/O handling
2470
2471 * Sat Jan  7 2012 Daniel Veillard <veillard@redhat.com> - 0.9.9-1
2472 - Add API virDomain{S,G}etInterfaceParameters
2473 - Add API virDomain{G, S}etNumaParameters
2474 - Add support for ppc64 qemu
2475 - Support Xen domctl v8
2476 - many improvements and bug fixes
2477
2478 * Thu Dec  8 2011 Daniel P. Berrange <berrange@redhat.com> - 0.9.8-2
2479 - Fix install of libvirt-guests.service & libvirtd.service
2480
2481 * Thu Dec  8 2011 Daniel Veillard <veillard@redhat.com> - 0.9.8-1
2482 - Add support for QEMU 1.0
2483 - Add preliminary PPC cpu driver
2484 - Add new API virDomain{Set, Get}BlockIoTune
2485 - block_resize: Define the new API
2486 - Add a public API to invoke suspend/resume on the host
2487 - various improvements for LXC containers
2488 - Define keepalive protocol and add virConnectIsAlive API
2489 - Add support for STP and VLAN filtering
2490 - many improvements and bug fixes
2491
2492 * Mon Nov 14 2011 Justin M. Forbes <jforbes@redhat.com> - 0.9.7-3
2493 - Remove versioned buildreq for yajl as 2.0.x features are not required.
2494
2495 * Thu Nov 10 2011 Daniel P. Berrange <berrange@redhat.com> - 0.9.7-2
2496 - Rebuild for yajl 2.0.1
2497
2498 * Tue Nov  8 2011 Daniel P. Berrange <berrange@redhat.com> - 0.9.7-1
2499 - Update to 0.9.7 release
2500
2501 * Tue Oct 11 2011 Dan Horák <dan[at]danny.cz> - 0.9.6-3
2502 - xenlight available only on Xen arches (#745020)
2503
2504 * Mon Oct  3 2011 Laine Stump <laine@redhat.com> - 0.9.6-2
2505 - Make PCI multifunction support more manual - Bug 742836
2506 - F15 build still uses cgconfig - Bug 738725
2507
2508 * Thu Sep 22 2011 Daniel Veillard <veillard@redhat.com> - 0.9.6-1
2509 - Fix the qemu reboot bug and a few others bug fixes
2510
2511 * Tue Sep 20 2011 Daniel Veillard <veillard@redhat.com> - 0.9.5-1
2512 - many snapshot improvements (Eric Blake)
2513 - latency: Define new public API and structure (Osier Yang)
2514 - USB2 and various USB improvements (Marc-André Lureau)
2515 - storage: Add fs pool formatting (Osier Yang)
2516 - Add public API for getting migration speed (Jim Fehlig)
2517 - Add basic driver for Microsoft Hyper-V (Matthias Bolte)
2518 - many improvements and bug fixes
2519
2520 * Wed Aug  3 2011 Daniel Veillard <veillard@redhat.com> - 0.9.4-1
2521 - network bandwidth QoS control
2522 - Add new API virDomainBlockPull*
2523 - save: new API to manipulate save file images
2524 - CPU bandwidth limits support
2525 - allow to send NMI and key event to guests
2526 - new API virDomainUndefineFlags
2527 - Implement code to attach to external QEMU instances
2528 - bios: Add support for SGA
2529 - various missing python binding
2530 - many improvements and bug fixes
2531
2532 * Sat Jul 30 2011 Dan Hor?k <dan[at]danny.cz> - 0.9.3-3
2533 - xenlight available only on Xen arches
2534
2535 * Wed Jul  6 2011 Peter Robinson <pbrobinson@gmail.com> - 0.9.3-2
2536 - Add ARM to NUMA platform excludes
2537
2538 * Mon Jul  4 2011 Daniel Veillard <veillard@redhat.com> - 0.9.3-1
2539 - new API virDomainGetVcpupinInfo
2540 - Add TXT record support for virtual DNS service
2541 - Support reboots with the QEMU driver
2542 - New API virDomainGetControlInfo API
2543 - New API virNodeGetMemoryStats
2544 - New API virNodeGetCPUTime
2545 - New API for send-key
2546 - New API virDomainPinVcpuFlags
2547 - support multifunction PCI device
2548 - lxc: various improvements
2549 - many improvements and bug fixes
2550
2551 * Wed Jun 29 2011 Richard W.M. Jones <rjones@redhat.com> - 0.9.2-3
2552 - Rebuild because of libparted soname bump (libparted.so.0 -> libparted.so.1).
2553
2554 * Tue Jun 21 2011 Laine Stump <laine@redhat.com> - 0.9.2-2
2555 - add rule to require netcf-0.1.8 during build so that new transactional
2556   network change APIs are included.
2557 - document that CVE-2011-2178 has been fixed (by virtue of rebase
2558   to 0.9.2 - see https://bugzilla.redhat.com/show_bug.cgi?id=709777)
2559
2560 * Mon Jun  6 2011 Daniel Veillard <veillard@redhat.com> - 0.9.2-1
2561 - Framework for lock manager plugins
2562 - API for network config change transactions
2563 - flags for setting memory parameters
2564 - virDomainGetState public API
2565 - qemu: allow blkstat/blkinfo calls during migration
2566 - Introduce migration v3 API
2567 - Defining the Screenshot public API
2568 - public API for NMI injection
2569 - Various improvements and bug fixes
2570
2571 * Wed May 25 2011 Richard W.M. Jones <rjones@redhat.com> - 0.9.1-3
2572 - Add upstream patches:
2573     0001-json-Avoid-passing-large-positive-64-bit-integers-to.patch
2574     0001-qemudDomainMemoryPeek-change-ownership-selinux-label.patch
2575     0002-remote-remove-bogus-virDomainFree.patch
2576   so that users can try out virt-dmesg.
2577 - Change /var/cache mode to 0711.
2578
2579 * Thu May  5 2011 Daniel Veillard <veillard@redhat.com> - 0.9.1-1
2580 - support various persistent domain updates
2581 - improvements on memory APIs
2582 - Add virDomainEventRebootNew
2583 - various improvements to libxl driver
2584 - Spice: support audio, images and stream compression
2585 - Various improvements and bug fixes
2586
2587 * Thu Apr  7 2011 Daniel Veillard <veillard@redhat.com> - 0.9.0-1
2588 - Support cputune cpu usage tuning
2589 - Add public APIs for storage volume upload/download
2590 - Add public API for setting migration speed on the fly
2591 - Add libxenlight driver
2592 - qemu: support migration to fd
2593 - libvirt: add virDomain{Get,Set}BlkioParameters
2594 - setmem: introduce a new libvirt API (virDomainSetMemoryFlags)
2595 - Expose event loop implementation as a public API
2596 - Dump the debug buffer to libvirtd.log on fatal signal
2597 - Audit support
2598 - Various improvements and bug fixes
2599
2600 * Mon Mar 14 2011 Daniel Veillard <veillard@redhat.com> - 0.8.8-3
2601 - fix a lack of API check on read-only connections
2602 - CVE-2011-1146
2603
2604 * Mon Feb 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.8.8-2
2605 - Fix kernel boot with latest QEMU
2606
2607 * Thu Feb 17 2011 Daniel Veillard <veillard@redhat.com> - 0.8.8-1
2608 - expose new API for sysinfo extraction
2609 - cgroup blkio weight support
2610 - smartcard device support
2611 - qemu: Support per-device boot ordering
2612 - Various improvements and bug fixes
2613
2614 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.7-2
2615 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2616
2617 * Thu Jan  6 2011 Daniel Veillard <veillard@redhat.com> - 0.8.7-1
2618 - Preliminary support for VirtualBox 4.0
2619 - IPv6 support
2620 - Add VMware Workstation and Player driver driver
2621 - Add network disk support
2622 - Various improvements and bug fixes
2623 - from 0.8.6:
2624 - Add support for iSCSI target auto-discovery
2625 - QED: Basic support for QED images
2626 - remote console support
2627 - support for SPICE graphics
2628 - sysinfo and VMBIOS support
2629 - virsh qemu-monitor-command
2630 - various improvements and bug fixes
2631
2632 * Fri Oct 29 2010 Daniel Veillard <veillard@redhat.com> - 0.8.5-1
2633 - Enable JSON and netdev features in QEMU >= 0.13
2634 - framework for auditing integration
2635 - framework DTrace/SystemTap integration
2636 - Setting the number of vcpu at boot
2637 - Enable support for nested SVM
2638 - Virtio plan9fs filesystem QEMU
2639 - Memory parameter controls
2640 - various improvements and bug fixes
2641
2642 * Wed Sep 29 2010 jkeating - 0.8.4-3
2643 - Rebuilt for gcc bug 634757
2644
2645 * Thu Sep 16 2010 Dan Horák <dan[at]danny.cz> - 0.8.4-2
2646 - disable the nwfilterxml2xmltest also on s390(x)
2647
2648 * Mon Sep 13 2010 Daniel Veillard <veillard@redhat.com> - 0.8.4-1
2649 - Upstream release 0.8.4
2650
2651 * Mon Aug 23 2010 Daniel P. Berrange <berrange@redhat.com> - 0.8.3-2
2652 - Fix potential overflow in boot menu code
2653
2654 * Mon Aug 23 2010 Daniel P. Berrange <berrange@redhat.com> - 0.8.3-1
2655 - Upstream release 0.8.3
2656
2657 * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.8.2-3
2658 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2659
2660 * Mon Jul 12 2010 Daniel P. Berrange <berrange@redhat.com> - 0.8.2-2
2661 - CVE-2010-2237 ignoring defined main disk format when looking up disk backing stores
2662 - CVE-2010-2238 ignoring defined disk backing store format when recursing into disk
2663   image backing stores
2664 - CVE-2010-2239 not setting user defined backing store format when creating new image
2665 - CVE-2010-2242 libvirt: improperly mapped source privileged ports may allow for
2666   obtaining privileged resources on the host
2667
2668 * Mon Jul  5 2010 Daniel Veillard <veillard@redhat.com> - 0.8.2-1
2669 - Upstream release 0.8.2
2670 - phyp: adding support for IVM
2671 - libvirt: introduce domainCreateWithFlags API
2672 - add 802.1Qbh and 802.1Qbg switches handling
2673 - Support for VirtualBox version 3.2
2674 - Init script for handling guests on shutdown/boot
2675 - qemu: live migration with non-shared storage for kvm
2676
2677 * Fri Apr 30 2010 Daniel Veillard <veillard@redhat.com> - 0.8.1-1
2678 - Upstream release 0.8.1
2679 - Starts dnsmasq from libvirtd with --dhcp-hostsfile
2680 - Add virDomainGetBlockInfo API to query disk sizing
2681 - a lot of bug fixes and cleanups
2682
2683 * Mon Apr 12 2010 Daniel Veillard <veillard@redhat.com> - 0.8.0-1
2684 - Upstream release 0.8.0
2685 - Snapshotting support (QEmu/VBox/ESX)
2686 - Network filtering API
2687 - XenAPI driver
2688 - new APIs for domain events
2689 - Libvirt managed save API
2690 - timer subselection for domain clock
2691 - synchronous hooks
2692 - API to update guest CPU to host CPU
2693 - virDomainUpdateDeviceFlags new API
2694 - migrate max downtime API
2695 - volume wiping API
2696 - and many bug fixes
2697
2698 * Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 0.7.7-3.fc14
2699 - No change, just rebuild against new libparted with bumped soname.
2700
2701 * Mon Mar 22 2010 Cole Robinson <crobinso@redhat.com> - 0.7.7-2.fc14
2702 - Fix USB devices by product with security enabled (bz 574136)
2703 - Set kernel/initrd in security driver, fixes some URL installs (bz 566425)
2704
2705 * Fri Mar  5 2010 Daniel Veillard <veillard@redhat.com> - 0.7.7-1
2706 - macvtap support
2707 - async job handling
2708 - virtio channel
2709 - computing baseline CPU
2710 - virDomain{Attach,Detach}DeviceFlags
2711 - assorted bug fixes and lots of cleanups
2712
2713 * Tue Feb 16 2010 Adam Jackson <ajax@redhat.com> 0.7.6-2
2714 - libvirt-0.7.6-add-needed.patch: Fix FTBFS from --no-add-needed
2715 - Add BuildRequires: xmlrpc-c-client for libxmlrpc_client.so
2716
2717 * Wed Feb  3 2010 Daniel Veillard <veillard@redhat.com> - 0.7.6-1
2718 - upstream release of 0.7.6
2719 - Use QEmu new device adressing when possible
2720 - Implement CPU topology support for QEMU driver
2721 - Implement SCSI controller hotplug/unplug for QEMU
2722 - Implement support for multi IQN
2723 - a lot of fixes and improvements
2724
2725 * Thu Jan 14 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.7.5-3
2726 - bump for libssh2 rebuild
2727
2728 * Tue Jan 12 2010 Daniel P. Berrange <berrange@redhat.com> - 0.7.5-2
2729 - Rebuild for libparted soname change
2730
2731 * Wed Dec 23 2009 Daniel Veillard <veillard@redhat.com> - 0.7.5-1
2732 - Add new API virDomainMemoryStats
2733 - Public API and domain extension for CPU flags
2734 - vbox: Add support for version 3.1
2735 - Support QEMU's virtual FAT block device driver
2736 - a lot of fixes
2737
2738 * Fri Nov 20 2009 Daniel Veillard <veillard@redhat.com> - 0.7.4-1
2739 - upstream release of 0.7.4
2740 - udev node device backend
2741 - API to check object properties
2742 - better QEmu monitor processing
2743 - MAC address based port filtering for qemu
2744 - support IPv6 and multiple addresses per interfaces
2745 - a lot of fixes
2746
2747 * Thu Nov 19 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-6
2748 - Really fix restore file labelling this time
2749
2750 * Wed Nov 11 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-5
2751 - Disable numactl on s390[x]. Again.
2752
2753 * Wed Nov 11 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-4
2754 - Fix QEMU save/restore permissions / labelling
2755
2756 * Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.2-3
2757 - Avoid compressing small log files (#531030)
2758
2759 * Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.2-2
2760 - Make libvirt-devel require libvirt-client, not libvirt
2761 - Fix qemu machine types handling
2762
2763 * Wed Oct 14 2009 Daniel Veillard <veillard@redhat.com> - 0.7.2-1
2764 - Upstream release of 0.7.2
2765 - Allow to define ESX domains
2766 - Allows suspend and resulme of LXC domains
2767 - API for data streams
2768 - many bug fixes
2769
2770 * Tue Oct 13 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-12
2771 - Fix restore of qemu guest using raw save format (#523158)
2772
2773 * Fri Oct  9 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-11
2774 - Fix libvirtd memory leak during error reply sending (#528162)
2775 - Add several PCI hot-unplug typo fixes from upstream
2776
2777 * Tue Oct  6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-10
2778 - Create /var/log/libvirt/{lxc,uml} dirs for logrotate
2779 - Make libvirt-python dependon on libvirt-client
2780 - Sync misc minor changes from upstream spec
2781
2782 * Tue Oct  6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-9
2783 - Change logrotate config to weekly (#526769)
2784
2785 * Thu Oct  1 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-8
2786 - Disable sound backend, even when selinux is disabled (#524499)
2787 - Re-label qcow2 backing files (#497131)
2788
2789 * Wed Sep 30 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-7
2790 - Fix USB device passthrough (#522683)
2791
2792 * Mon Sep 21 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.7.1-6
2793 - rebuild for libssh2 1.2
2794
2795 * Mon Sep 21 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-5
2796 - Don't set a bogus error in virDrvSupportsFeature()
2797 - Fix raw save format
2798
2799 * Thu Sep 17 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-4
2800 - A couple of hot-unplug memory handling fixes (#523953)
2801
2802 * Thu Sep 17 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-3
2803 - disable numactl on s390[x]
2804
2805 * Thu Sep 17 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-2
2806 - revamp of spec file for modularity and RHELs
2807
2808 * Tue Sep 15 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-1
2809 - Upstream release of 0.7.1
2810 - ESX, VBox driver updates
2811 - mutipath support
2812 - support for encrypted (qcow) volume
2813 - compressed save image format for Qemu/KVM
2814 - QEmu host PCI device hotplug support
2815 - configuration of huge pages in guests
2816 - a lot of fixes
2817
2818 * Mon Sep 14 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-0.2.gitfac3f4c
2819 - Update to newer snapshot of 0.7.1
2820 - Stop libvirt using untrusted 'info vcpus' PID data (#520864)
2821 - Support relabelling of USB and PCI devices
2822 - Enable multipath storage support
2823 - Restart libvirtd upon RPM upgrade
2824
2825 * Sun Sep  6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-0.1.gitg3ef2e05
2826 - Update to pre-release git snapshot of 0.7.1
2827 - Drop upstreamed patches
2828
2829 * Wed Aug 19 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-6
2830 - Fix migration completion with newer versions of qemu (#516187)
2831
2832 * Wed Aug 19 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-5
2833 - Add PCI host device hotplug support
2834 - Allow PCI bus reset to reset other devices (#499678)
2835 - Fix stupid PCI reset error message (bug #499678)
2836 - Allow PM reset on multi-function PCI devices (bug #515689)
2837 - Re-attach PCI host devices after guest shuts down (bug #499561)
2838 - Fix list corruption after disk hot-unplug
2839 - Fix minor 'virsh nodedev-list --tree' annoyance
2840
2841 * Thu Aug 13 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.0-4
2842 - Rewrite policykit support (rhbz #499970)
2843 - Log and ignore NUMA topology problems (rhbz #506590)
2844
2845 * Mon Aug 10 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-3
2846 - Don't fail to start network if ipv6 modules is not loaded (#516497)
2847
2848 * Thu Aug  6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-2
2849 - Make sure qemu can access kernel/initrd (bug #516034)
2850 - Set perms on /var/lib/libvirt/boot to 0711 (bug #516034)
2851
2852 * Wed Aug  5 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-1
2853 - ESX, VBox3, Power Hypervisor drivers
2854 - new net filesystem glusterfs
2855 - Storage cloning for LVM and Disk backends
2856 - interface implementation based on netcf
2857 - Support cgroups in QEMU driver
2858 - QEmu hotplug NIC support
2859 - a lot of fixes
2860
2861 * Fri Jul  3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.5-1
2862 - release of 0.6.5
2863
2864 * Fri May 29 2009 Daniel Veillard <veillard@redhat.com> - 0.6.4-1
2865 - release of 0.6.4
2866 - various new APIs
2867
2868 * Fri Apr 24 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-1
2869 - release of 0.6.3
2870 - VirtualBox driver
2871
2872 * Fri Apr  3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.2-1
2873 - release of 0.6.2
2874
2875 * Wed Mar  4 2009 Daniel Veillard <veillard@redhat.com> - 0.6.1-1
2876 - release of 0.6.1
2877
2878 * Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1
2879 - release of 0.6.0
2880
2881 * Tue Nov 25 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1
2882 - release of 0.5.0
2883
2884 * Tue Sep 23 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-1
2885 - release of 0.4.6
2886
2887 * Mon Sep  8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-1
2888 - release of 0.4.5
2889
2890 * Wed Jun 25 2008 Daniel Veillard <veillard@redhat.com> - 0.4.4-1
2891 - release of 0.4.4
2892 - mostly a few bug fixes from 0.4.3
2893
2894 * Thu Jun 12 2008 Daniel Veillard <veillard@redhat.com> - 0.4.3-1
2895 - release of 0.4.3
2896 - lots of bug fixes and small improvements
2897
2898 * Tue Apr  8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.2-1
2899 - release of 0.4.2
2900 - lots of bug fixes and small improvements
2901
2902 * Mon Mar  3 2008 Daniel Veillard <veillard@redhat.com> - 0.4.1-1
2903 - Release of 0.4.1
2904 - Storage APIs
2905 - xenner support
2906 - lots of assorted improvements, bugfixes and cleanups
2907 - documentation and localization improvements
2908
2909 * Tue Dec 18 2007 Daniel Veillard <veillard@redhat.com> - 0.4.0-1
2910 - Release of 0.4.0
2911 - SASL based authentication
2912 - PolicyKit authentication
2913 - improved NUMA and statistics support
2914 - lots of assorted improvements, bugfixes and cleanups
2915 - documentation and localization improvements
2916
2917 * Sun Sep 30 2007 Daniel Veillard <veillard@redhat.com> - 0.3.3-1
2918 - Release of 0.3.3
2919 - Avahi support
2920 - NUMA support
2921 - lots of assorted improvements, bugfixes and cleanups
2922 - documentation and localization improvements
2923
2924 * Tue Aug 21 2007 Daniel Veillard <veillard@redhat.com> - 0.3.2-1
2925 - Release of 0.3.2
2926 - API for domains migration
2927 - APIs for collecting statistics on disks and interfaces
2928 - lots of assorted bugfixes and cleanups
2929 - documentation and localization improvements
2930
2931 * Tue Jul 24 2007 Daniel Veillard <veillard@redhat.com> - 0.3.1-1
2932 - Release of 0.3.1
2933 - localtime clock support
2934 - PS/2 and USB input devices
2935 - lots of assorted bugfixes and cleanups
2936 - documentation and localization improvements
2937
2938 * Mon Jul  9 2007 Daniel Veillard <veillard@redhat.com> - 0.3.0-1
2939 - Release of 0.3.0
2940 - Secure remote access support
2941 - unification of daemons
2942 - lots of assorted bugfixes and cleanups
2943 - documentation and localization improvements
2944
2945 * Fri Jun  8 2007 Daniel Veillard <veillard@redhat.com> - 0.2.3-1
2946 - Release of 0.2.3
2947 - lot of assorted bugfixes and cleanups
2948 - support for Xen-3.1
2949 - new scheduler API
2950
2951 * Tue Apr 17 2007 Daniel Veillard <veillard@redhat.com> - 0.2.2-1
2952 - Release of 0.2.2
2953 - lot of assorted bugfixes and cleanups
2954 - preparing for Xen-3.0.5
2955
2956 * Thu Mar 22 2007 Jeremy Katz <katzj@redhat.com> - 0.2.1-2.fc7
2957 - don't require xen; we don't need the daemon and can control non-xen now
2958 - fix scriptlet error (need to own more directories)
2959 - update description text
2960
2961 * Fri Mar 16 2007 Daniel Veillard <veillard@redhat.com> - 0.2.1-1
2962 - Release of 0.2.1
2963 - lot of bug and portability fixes
2964 - Add support for network autostart and init scripts
2965 - New API to detect the virtualization capabilities of a host
2966 - Documentation updates
2967
2968 * Fri Feb 23 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-4.fc7
2969 - Fix loading of guest & network configs
2970
2971 * Fri Feb 16 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-3.fc7
2972 - Disable kqemu support since its not in Fedora qemu binary
2973 - Fix for -vnc arg syntax change in 0.9.0  QEMU
2974
2975 * Thu Feb 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-2.fc7
2976 - Fixed path to qemu daemon for autostart
2977 - Fixed generation of <features> block in XML
2978 - Pre-create config directory at startup
2979
2980 * Wed Feb 14 2007 Daniel Veillard <veillard@redhat.com> 0.2.0-1.fc7
2981 - support for KVM and QEmu
2982 - support for network configuration
2983 - assorted fixes
2984
2985 * Mon Jan 22 2007 Daniel Veillard <veillard@redhat.com> 0.1.11-1.fc7
2986 - finish inactive Xen domains support
2987 - memory leak fix
2988 - RelaxNG schemas for XML configs
2989
2990 * Wed Dec 20 2006 Daniel Veillard <veillard@redhat.com> 0.1.10-1.fc7
2991 - support for inactive Xen domains
2992 - improved support for Xen display and vnc
2993 - a few bug fixes
2994 - localization updates
2995
2996 * Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.1.9-2
2997 - rebuild against python 2.5
2998
2999 * Wed Nov 29 2006 Daniel Veillard <veillard@redhat.com> 0.1.9-1
3000 - better error reporting
3001 - python bindings fixes and extensions
3002 - add support for shareable drives
3003 - add support for non-bridge style networking
3004 - hot plug device support
3005 - added support for inactive domains
3006 - API to dump core of domains
3007 - various bug fixes, cleanups and improvements
3008 - updated the localization
3009
3010 * Tue Nov  7 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-3
3011 - it's pkgconfig not pgkconfig !
3012
3013 * Mon Nov  6 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-2
3014 - fixing spec file, added %dist, -devel requires pkgconfig and xen-devel
3015 - Resolves: rhbz#202320
3016
3017 * Mon Oct 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-1
3018 - fix missing page size detection code for ia64
3019 - fix mlock size when getting domain info list from hypervisor
3020 - vcpu number initialization
3021 - don't label crashed domains as shut off
3022 - fix virsh man page
3023 - blktapdd support for alternate drivers like blktap
3024 - memory leak fixes (xend interface and XML parsing)
3025 - compile fix
3026 - mlock/munlock size fixes
3027
3028 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.7-1
3029 - Fix bug when running against xen-3.0.3 hypercalls
3030 - Fix memory bug when getting vcpus info from xend
3031
3032 * Fri Sep 22 2006 Daniel Veillard <veillard@redhat.com> 0.1.6-1
3033 - Support for localization
3034 - Support for new Xen-3.0.3 cdrom and disk configuration
3035 - Support for setting VNC port
3036 - Fix bug when running against xen-3.0.2 hypercalls
3037 - Fix reconnection problem when talking directly to http xend
3038
3039 * Tue Sep  5 2006 Jeremy Katz <katzj@redhat.com> - 0.1.5-3
3040 - patch from danpb to support new-format cd devices for HVM guests
3041
3042 * Tue Sep  5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-2
3043 - reactivating ia64 support
3044
3045 * Tue Sep  5 2006 Daniel Veillard <veillard@redhat.com> 0.1.5-1
3046 - new release
3047 - bug fixes
3048 - support for new hypervisor calls
3049 - early code for config files and defined domains
3050
3051 * Mon Sep  4 2006 Daniel Berrange <berrange@redhat.com> - 0.1.4-5
3052 - add patch to address dom0_ops API breakage in Xen 3.0.3 tree
3053
3054 * Mon Aug 28 2006 Jeremy Katz <katzj@redhat.com> - 0.1.4-4
3055 - add patch to support paravirt framebuffer in Xen
3056
3057 * Mon Aug 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-3
3058 - another patch to fix network handling in non-HVM guests
3059
3060 * Thu Aug 17 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-2
3061 - patch to fix virParseUUID()
3062
3063 * Wed Aug 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.4-1
3064 - vCPUs and affinity support
3065 - more complete XML, console and boot options
3066 - specific features support
3067 - enforced read-only connections
3068 - various improvements, bug fixes
3069
3070 * Wed Aug  2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-6
3071 - add patch from pvetere to allow getting uuid from libvirt
3072
3073 * Wed Aug  2 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-5
3074 - build on ia64 now
3075
3076 * Thu Jul 27 2006 Jeremy Katz <katzj@redhat.com> - 0.1.3-4
3077 - don't BR xen, we just need xen-devel
3078
3079 * Thu Jul 27 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-3
3080 - need rebuild since libxenstore is now versionned
3081
3082 * Mon Jul 24 2006 Mark McLoughlin <markmc@redhat.com> - 0.1.3-2
3083 - Add BuildRequires: xen-devel
3084
3085 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.1.3-1.1
3086 - rebuild
3087
3088 * Tue Jul 11 2006 Daniel Veillard <veillard@redhat.com> 0.1.3-1
3089 - support for HVM Xen guests
3090 - various bugfixes
3091
3092 * Mon Jul  3 2006 Daniel Veillard <veillard@redhat.com> 0.1.2-1
3093 - added a proxy mechanism for read only access using httpu
3094 - fixed header includes paths
3095
3096 * Wed Jun 21 2006 Daniel Veillard <veillard@redhat.com> 0.1.1-1
3097 - extend and cleanup the driver infrastructure and code
3098 - python examples
3099 - extend uuid support
3100 - bug fixes, buffer handling cleanups
3101 - support for new Xen hypervisor API
3102 - test driver for unit testing
3103 - virsh --conect argument
3104
3105 * Mon Apr 10 2006 Daniel Veillard <veillard@redhat.com> 0.1.0-1
3106 - various fixes
3107 - new APIs: for Node information and Reboot
3108 - virsh improvements and extensions
3109 - documentation updates and man page
3110 - enhancement and fixes of the XML description format
3111
3112 * Tue Feb 28 2006 Daniel Veillard <veillard@redhat.com> 0.0.6-1
3113 - added error handling APIs
3114 - small bug fixes
3115 - improve python bindings
3116 - augment documentation and regression tests
3117
3118 * Thu Feb 23 2006 Daniel Veillard <veillard@redhat.com> 0.0.5-1
3119 - new domain creation API
3120 - new UUID based APIs
3121 - more tests, documentation, devhelp
3122 - bug fixes
3123
3124 * Fri Feb 10 2006 Daniel Veillard <veillard@redhat.com> 0.0.4-1
3125 - fixes some problems in 0.0.3 due to the change of names
3126
3127 * Wed Feb  8 2006 Daniel Veillard <veillard@redhat.com> 0.0.3-1
3128 - changed library name to libvirt from libvir, complete and test the python
3129   bindings
3130
3131 * Sun Jan 29 2006 Daniel Veillard <veillard@redhat.com> 0.0.2-1
3132 - upstream release of 0.0.2, use xend, save and restore added, python bindings
3133   fixed
3134
3135 * Wed Nov  2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1
3136 - created
3137