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