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