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