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