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