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