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