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