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