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