~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to libvirt.spec

  • Committer: James Westby
  • Author(s): Jamie Strandboge
  • Date: 2009-12-02 14:22:21 UTC
  • mfrom: (1.2.3 upstream) (3.4.9 squeeze)
  • Revision ID: james.westby@canonical.com-20091202142221-ltkr0to6h52mla1y
Tags: 0.7.2-4ubuntu1
* Merge from debian testing. Remaining changes:
  - debian/control:
    + Don't build-depend on QEmu
    + Bump bridge-utils, dnsmasq-base, netcat-openbsd, and iptables
      to Depends of libvirt-bin
    + Recommends qemu-kvm (>= 0.11.0-0ubuntu6)
    + Add versioned Conflicts/Replaces to libvirt0 for libvirt0-dbg,
      since we used to ship them as such
    + We call libxen-dev libxen3-dev, so change all references
    + Build-Depends on libxml2-utils
    + Build-Depends on open-iscsi-utils instead of open-iscsi due to
      LP: #414986
  - debian/postinst:
    + rename the libvirt group to libvirtd
    + add each admin user to the libvirtd group
  - debian/libvirt-bin.postrm: rename the libvirt group to libvirtd
  - debian/rules: add DEB_MAKE_CHECK_TARGET := check
  - debian/patches/900[0-7]: updated/refreshed for new paths in 0.7.2
  - debian/patches/series: don't apply 0002-qemu-disable-network.diff.patch
  - AppArmor integration:
    + debian/control: Build-Depends on libapparmor-dev and Suggests
      apparmor (>= 2.3+1289-0ubuntu14)
    + debian/libvirt-bin.dirs: add /etc/apparmor.d/abstractions,
      /etc/apparmor.d/force-complain, /etc/apparmor.d/libvirt,
      /etc/cron.daily and /usr/share/apport/package-hooks
    + add debian/libvirt-bin.cron.daily (LP: #438165)
    + add debian/libvirt-bin.apport
    + debian/libvirt-bin.install: install apparmor profiles, abstractions
      and apport hook
    + debian/postinst: reload apparmor profiles
    + debian/libvirt-bin.postrm: remove apparmor symlinks on purge
    + debian/libvirt-bin.preinst: added to force complain on certain
      upgrades
    + debian/README.Debian: add AppArmor section based on the upstream
      documentation
    + debian/rules: use --with-apparmor and copy apparmor and apport hook to
      debian/tmp
  - Dropped the following patches now included upstream:
    + 0005-Close-logfile-fd-after-spawning-qemu.patch
    + 9090-reenable-nonfile-labels.patch
    + 9091-apparmor.patch
    + 9092-apparmor-autoreconf.patch
* AppArmor integration updates:
  - debian/apparmor/usr.sbin.libvirtd: allow libvirtd access to
    /usr/lib/libvirt/* (LP: #480478)
  - debian/apparmor/libvirt-qemu: allow guests access to
    /etc/pki/libvirt-vnc/** (LP: #484562)
  - debian/libvirt-bin.postinst: 0.7.2 moved /usr/bin/virt-aa-helper to
    /usr/lib/libvirt, so the profile changed from usr.bin.virt-aa-helper
    to usr.lib.libvirt.virt-aa-helper and needs to be migrated. If the user
    made no changes to the old profile, remove it, otherwise, update the
    paths, preserving the shipped usr.lib.libvirt.virt-aa-helper
  - update to 0.7.4 version of the sVirt AppArmor driver (can be dropped in
    0.7.4):
    + debian/patches/9008-apparmor-caps-mockup.patch
    + debian/patches/9009-apparmor-lp453335.patch
    + debian/patches/9010-apparmor-lp460271.patch
    + debian/patches/9011-apparmor-code-cleanups.patch
  - add virt-aa-helper-test and examples/apparmor that were omitted from the
    upstream tarball (can be dropped in 0.7.5):
    + debian/patches/9012-apparmor-add-virt-aa-helper-test.patch
    + debian/patches/9013-apparmor-examples.patch
    + debian/rules: add post-patches target to make virt-aa-helper-test
      executable
* debian/patches/0005-Fix-SELinux-linking-issues.patch: updated to work
  when both apparmor and selinux are available. This patch should be
  dropped in 0.7.4.
* debian/patches/9007-default-config-test-case.patch: updated to not fail
  if building in a deep directory
* debian/patches/9014-event-fuzz.patch: add a little fuzz to not be quite
  so precise with expected expiry time. Fixes FTBFS with HZ=100 kernels.
  Can be dropped in 0.7.5.
* debian/patches/9015-hal-startup-failure-is-nonfatal.patch: disable hal
  driver if hald is not running instead of dying. Can be dropped in
  0.7.4.
* debian/control: temporarily remove Build-Depends on libcap-ng-dev, which
  isn't available in Ubuntu main yet
* revert change to new source format 3.0 (quilt) since Launchpad can't
  handle it yet (see LP: #293106)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- rpm-spec -*-
2
2
 
3
 
%define with_xen           0%{!?_without_xen:1}
4
 
%define with_xen_proxy     0%{!?_without_xen_proxy:1}
5
 
%define with_qemu          0%{!?_without_qemu:1}
6
 
%define with_openvz        0%{!?_without_openvz:1}
7
 
%define with_lxc           0%{!?_without_lxc:1}
8
 
%define with_vbox          0%{!?_without_vbox:1}
9
 
%define with_sasl          0%{!?_without_sasl:1}
10
 
%define with_avahi         0%{!?_without_avahi:1}
11
 
%define with_python        0%{!?_without_python:1}
12
 
%define with_libvirtd      0%{!?_without_libvirtd:1}
13
 
%define with_uml           0%{!?_without_uml:1}
14
 
%define with_one           0%{!?_without_one:1}
15
 
%define with_network       0%{!?_without_network:1}
16
 
%define with_storage_fs    0%{!?_without_storage_fs:1}
17
 
%define with_storage_lvm   0%{!?_without_storage_lvm:1}
18
 
%define with_storage_iscsi 0%{!?_without_storage_iscsi:1}
19
 
%define with_storage_disk  0%{!?_without_storage_disk:1}
20
 
%define with_numactl       0%{!?_without_numactl:1}
21
 
 
22
 
# default to off - selectively enabled below
 
3
# A client only build will create a libvirt.so only containing
 
4
# the generic RPC driver, and test driver and no libvirtd
 
5
# Default to a full server + client build
 
6
%define client_only        0
 
7
 
 
8
# Now turn off server build in certain cases
 
9
 
 
10
# RHEL-5 builds are client-only for s390, ppc
 
11
%if 0%{?rhel} == 5
 
12
%ifnarch i386 i586 i686 x86_64 ia64
 
13
%define client_only        1
 
14
%endif
 
15
%endif
 
16
 
 
17
# Disable all server side drivers if client only build requested
 
18
%if %{client_only}
 
19
%define server_drivers     0
 
20
%else
 
21
%define server_drivers     1
 
22
%endif
 
23
 
 
24
 
 
25
# Now set the defaults for all the important features, independent
 
26
# of any particular OS
 
27
 
 
28
# First the daemon itself
 
29
%define with_libvirtd      0%{!?_without_libvirtd:%{server_drivers}}
 
30
%define with_avahi         0%{!?_without_avahi:%{server_drivers}}
 
31
 
 
32
# Then the hypervisor drivers that run on local host
 
33
%define with_xen           0%{!?_without_xen:%{server_drivers}}
 
34
%define with_xen_proxy     0%{!?_without_xen_proxy:%{server_drivers}}
 
35
%define with_qemu          0%{!?_without_qemu:%{server_drivers}}
 
36
%define with_openvz        0%{!?_without_openvz:%{server_drivers}}
 
37
%define with_lxc           0%{!?_without_lxc:%{server_drivers}}
 
38
%define with_vbox          0%{!?_without_vbox:%{server_drivers}}
 
39
%define with_uml           0%{!?_without_uml:%{server_drivers}}
 
40
# XXX this shouldn't be here, but it mistakenly links into libvirtd
 
41
%define with_one           0%{!?_without_one:%{server_drivers}}
 
42
 
 
43
# Then the hypervisor drivers that talk a native remote protocol
 
44
%define with_phyp          0%{!?_without_phyp:1}
 
45
%define with_esx           0%{!?_without_esx:1}
 
46
 
 
47
# Then the secondary host drivers
 
48
%define with_network       0%{!?_without_network:%{server_drivers}}
 
49
%define with_storage_fs    0%{!?_without_storage_fs:%{server_drivers}}
 
50
%define with_storage_lvm   0%{!?_without_storage_lvm:%{server_drivers}}
 
51
%define with_storage_iscsi 0%{!?_without_storage_iscsi:%{server_drivers}}
 
52
%define with_storage_disk  0%{!?_without_storage_disk:%{server_drivers}}
 
53
%define with_storage_mpath 0%{!?_without_storage_mpath:%{server_drivers}}
 
54
%define with_numactl       0%{!?_without_numactl:%{server_drivers}}
 
55
%define with_selinux       0%{!?_without_selinux:%{server_drivers}}
 
56
%define with_hal           0%{!?_without_hal:%{server_drivers}}
 
57
 
 
58
# A few optional bits off by default, we enable later
23
59
%define with_polkit        0%{!?_without_polkit:0}
24
60
%define with_capng         0%{!?_without_capng:0}
25
61
%define with_netcf         0%{!?_without_netcf:0}
26
62
 
27
 
# default to off
28
 
%define with_phyp          0%{!?_without_phyp:0}
 
63
# Non-server/HV driver defaults which are always enabled
 
64
%define with_python        0%{!?_without_python:1}
 
65
%define with_sasl          0%{!?_without_sasl:1}
 
66
 
 
67
 
 
68
# Finally set the OS / architecture specific special cases
29
69
 
30
70
# Xen is available only on i386 x86_64 ia64
31
71
%ifnarch i386 i586 i686 x86_64 ia64
32
72
%define with_xen 0
33
73
%endif
34
74
 
 
75
 
 
76
# RHEL doesn't ship OpenVZ, VBox, UML, OpenNebula, PowerHypervisor or ESX
 
77
%if 0%{?rhel}
 
78
%define with_openvz 0
 
79
%define with_vbox 0
 
80
%define with_uml 0
 
81
%define with_one 0
 
82
%define with_phyp 0
 
83
%define with_esx 0
 
84
%endif
 
85
 
 
86
# RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
 
87
%if 0%{?rhel} == 5
 
88
%ifnarch x86_64
 
89
%define with_qemu 0
 
90
%endif
 
91
%define with_lxc 0
 
92
%endif
 
93
 
 
94
# RHEL-6 has restricted QEMU to x86_64 only, stopped including Xen
 
95
# on all archs. Other archs all have LXC available though
 
96
%if 0%{?rhel} >= 6
 
97
%ifnarch x86_64
 
98
%define with_qemu 0
 
99
%endif
 
100
%define with_xen 0
 
101
%endif
 
102
 
 
103
# If Xen isn't turned on, we shouldn't build the xen proxy either
35
104
%if ! %{with_xen}
36
105
%define with_xen_proxy 0
37
106
%endif
38
107
 
 
108
# Fedora doesn't have any QEMU on ppc64 - only ppc
39
109
%if 0%{?fedora}
40
110
%ifarch ppc64
41
111
%define with_qemu 0
42
112
%endif
43
113
%endif
44
114
 
45
 
%if 0%{?fedora} >= 8
 
115
# PolicyKit was introduced in Fedora 8 / RHEL-6 or newer, allowing
 
116
# the setuid Xen proxy to be killed off
 
117
%if 0%{?fedora} >= 8 || 0%{?rhel} >= 6
46
118
%define with_polkit    0%{!?_without_polkit:1}
47
119
%define with_xen_proxy 0
48
120
%endif
49
121
 
50
 
%if 0%{?fedora} >= 12
 
122
# libcapng is used to manage capabilities in Fedora 12 / RHEL-6 or newer
 
123
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
51
124
%define with_capng     0%{!?_without_capng:1}
52
125
%endif
53
126
 
54
 
%if 0%{?fedora} >= 12
55
 
%define with_netcf     0%{!?_without_netcf:1}
 
127
# netcf is used to manage network interfaces in Fedora 12 / RHEL-6 or newer
 
128
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
 
129
%define with_netcf     0%{!?_without_netcf:%{server_drivers}}
56
130
%endif
57
131
 
58
 
%if 0%{?fedora} >= 12
 
132
# Force QEMU to run as non-root
 
133
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
59
134
%define qemu_user  qemu
60
135
%define qemu_group  qemu
61
136
%else
63
138
%define qemu_group  root
64
139
%endif
65
140
 
66
 
#
67
 
# If building on RHEL switch on the specific support
68
 
#
69
 
%if 0%{?fedora}
 
141
 
 
142
# The RHEL-5 Xen package has some feature backports. This
 
143
# flag is set to enable use of those special bits on RHEL-5
 
144
%if 0%{?rhel} == 5
 
145
%define with_rhel5  1
 
146
%else
70
147
%define with_rhel5  0
71
 
%else
72
 
%define with_rhel5  1
73
 
%define with_polkit 0
74
 
%define with_one    0
75
148
%endif
76
149
 
77
150
 
78
151
Summary: Library providing a simple API virtualization
79
152
Name: libvirt
80
 
Version: 0.7.0
 
153
Version: 0.7.2
81
154
Release: 1%{?dist}%{?extra_release}
82
155
License: LGPLv2+
83
156
Group: Development/Libraries
84
 
Source: libvirt-%{version}.tar.gz
 
157
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
85
158
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
86
159
URL: http://libvirt.org/
87
160
BuildRequires: python-devel
89
162
# The client side, i.e. shared libs and virsh are in a subpackage
90
163
Requires: libvirt-client = %{version}-%{release}
91
164
 
 
165
# Used by many of the drivers, so turn it on whenever the
 
166
# daemon is present
 
167
%if %{with_libvirtd}
 
168
Requires: bridge-utils
 
169
%endif
 
170
%if %{with_network}
92
171
Requires: dnsmasq
93
 
Requires: bridge-utils
94
172
Requires: iptables
 
173
%endif
95
174
# needed for device enumeration
 
175
%if %{with_hal}
96
176
Requires: hal
 
177
%endif
97
178
%if %{with_polkit}
 
179
%if 0%{?fedora} >= 12 || 0%{?rhel} >=6
 
180
Requires: polkit >= 0.93
 
181
%else
98
182
Requires: PolicyKit >= 0.6
99
183
%endif
 
184
%endif
100
185
%if %{with_storage_fs}
101
186
# For mount/umount in FS driver
102
187
BuildRequires: util-linux
104
189
BuildRequires: nfs-utils
105
190
Requires: nfs-utils
106
191
# For glusterfs
 
192
%if 0%{?fedora} >= 11
107
193
Requires: glusterfs-client >= 2.0.1
108
194
%endif
 
195
%endif
109
196
%if %{with_qemu}
110
197
# From QEMU RPMs
111
198
Requires: /usr/bin/qemu-img
 
199
# For image compression
 
200
Requires: gzip
 
201
Requires: bzip2
 
202
Requires: lzop
 
203
Requires: xz
112
204
%else
113
205
%if %{with_xen}
114
206
# From Xen RPMs
127
219
# For disk driver
128
220
Requires: parted
129
221
%endif
 
222
%if %{with_storage_mpath}
 
223
# For multipath support
 
224
Requires: device-mapper
 
225
%endif
130
226
%if %{with_xen}
131
227
BuildRequires: xen-devel
132
228
%endif
139
235
BuildRequires: ncurses-devel
140
236
BuildRequires: gettext
141
237
BuildRequires: gnutls-devel
 
238
%if %{with_hal}
142
239
BuildRequires: hal-devel
 
240
%endif
143
241
%if %{with_avahi}
144
242
BuildRequires: avahi-devel
145
243
%endif
 
244
%if %{with_selinux}
146
245
BuildRequires: libselinux-devel
 
246
%endif
 
247
%if %{with_network}
147
248
BuildRequires: dnsmasq
 
249
%endif
148
250
BuildRequires: bridge-utils
149
251
%if %{with_sasl}
150
252
BuildRequires: cyrus-sasl-devel
151
253
%endif
152
254
%if %{with_polkit}
 
255
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
 
256
# Only need the binary, not -devel
 
257
BuildRequires: polkit >= 0.93
 
258
%else
153
259
BuildRequires: PolicyKit-devel >= 0.6
154
260
%endif
 
261
%endif
155
262
%if %{with_storage_fs}
156
263
# For mount/umount in FS driver
157
264
BuildRequires: util-linux
176
283
%if %{with_storage_disk}
177
284
# For disk driver
178
285
BuildRequires: parted-devel
 
286
%if 0%{?rhel} == 5
 
287
# Broken RHEL-5 parted RPM is missing a dep
 
288
BuildRequires: e2fsprogs-devel
 
289
%endif
 
290
%endif
 
291
%if %{with_storage_mpath}
 
292
# For Multipath support
 
293
%if 0%{?rhel} == 5
 
294
# Broken RHEL-5 packaging has header files in main RPM :-(
 
295
BuildRequires: device-mapper
 
296
%else
 
297
BuildRequires: device-mapper-devel
 
298
%endif
179
299
%endif
180
300
%if %{with_numactl}
181
301
# For QEMU/LXC numa info
185
305
BuildRequires: libcap-ng-devel >= 0.5.0
186
306
%endif
187
307
%if %{with_phyp}
188
 
BuildRequires: libssh-devel >= 0.3.1
 
308
BuildRequires: libssh2-devel
189
309
%endif
190
310
%if %{with_netcf}
191
311
BuildRequires: netcf-devel
235
355
%package python
236
356
Summary: Python bindings for the libvirt library
237
357
Group: Development/Libraries
238
 
Requires: libvirt = %{version}-%{release}
 
358
Requires: libvirt-client = %{version}-%{release}
239
359
 
240
360
%description python
241
361
The libvirt-python package contains a module that permits applications
280
400
%define _without_phyp --without-phyp
281
401
%endif
282
402
 
 
403
%if ! %{with_esx}
 
404
%define _without_esx --without-esx
 
405
%endif
 
406
 
283
407
%if ! %{with_polkit}
284
408
%define _without_polkit --without-polkit
285
409
%endif
324
448
%define _without_storage_disk --without-storage-disk
325
449
%endif
326
450
 
 
451
%if ! %{with_storage_mpath}
 
452
%define _without_storage_mpath --without-storage-mpath
 
453
%endif
 
454
 
327
455
%if ! %{with_numactl}
328
456
%define _without_numactl --without-numactl
329
457
%endif
336
464
%define _without_netcf --without-netcf
337
465
%endif
338
466
 
 
467
%if ! %{with_selinux}
 
468
%define _without_selinux --without-selinux
 
469
%endif
 
470
 
 
471
%if ! %{with_hal}
 
472
%define _without_hal --without-hal
 
473
%endif
 
474
 
339
475
%configure %{?_without_xen} \
340
476
           %{?_without_qemu} \
341
477
           %{?_without_openvz} \
349
485
           %{?_without_uml} \
350
486
           %{?_without_one} \
351
487
           %{?_without_phyp} \
 
488
           %{?_without_esx} \
352
489
           %{?_without_network} \
353
490
           %{?_with_rhel5_api} \
354
491
           %{?_without_storage_fs} \
355
492
           %{?_without_storage_lvm} \
356
493
           %{?_without_storage_iscsi} \
357
494
           %{?_without_storage_disk} \
 
495
           %{?_without_storage_mpath} \
358
496
           %{?_without_numactl} \
359
497
           %{?_without_capng} \
360
498
           %{?_without_netcf} \
 
499
           %{?_without_selinux} \
 
500
           %{?_without_hal} \
361
501
           --with-qemu-user=%{qemu_user} \
362
502
           --with-qemu-group=%{qemu_group} \
363
503
           --with-init-script=redhat \
369
509
rm -fr %{buildroot}
370
510
 
371
511
%makeinstall
372
 
(cd docs/examples ; make clean ; rm -rf .deps Makefile Makefile.in)
373
 
(cd docs/examples/python ; rm -rf .deps Makefile Makefile.in)
374
 
(cd examples/hellolibvirt ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
375
 
(cd examples/domain-events/events-c ;  make clean ;rm -rf .deps .libs Makefile Makefile.in)
 
512
for i in domain-events/events-c dominfo domsuspend hellolibvirt python
 
513
do
 
514
  (cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
 
515
done
376
516
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
377
517
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
378
518
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
379
519
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
380
520
 
381
 
%if %{with_qemu}
 
521
%if %{with_network}
382
522
# We don't want to install /etc/libvirt/qemu/networks in the main %files list
383
523
# because if the admin wants to delete the default network completely, we don't
384
524
# want to end up re-incarnating it on every RPM upgrade.
392
532
%else
393
533
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
394
534
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
 
535
%endif
 
536
%if ! %{with_qemu}
395
537
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug
396
538
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
397
539
%endif
398
540
%find_lang %{name}
399
541
 
 
542
%if ! %{with_lxc}
 
543
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
 
544
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
 
545
%endif
 
546
 
400
547
%if ! %{with_python}
401
548
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-python-%{version}
402
549
%endif
403
550
 
 
551
%if %{client_only}
 
552
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version}
 
553
%endif
 
554
 
404
555
%if ! %{with_qemu}
405
556
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
406
557
%endif
 
558
%if ! %{with_lxc}
 
559
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
 
560
%endif
407
561
 
408
562
%if %{with_libvirtd}
409
563
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/libvirtd
413
567
rm -fr %{buildroot}
414
568
 
415
569
%pre
416
 
%if 0%{?fedora} >= 12
 
570
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
417
571
# Normally 'setup' adds this in /etc/passwd, but this is
418
 
# here for case of upgrades from earlier Fedora. This
 
572
# here for case of upgrades from earlier Fedora/RHEL. This
419
573
# UID/GID pair is reserved for qemu:qemu
420
574
getent group kvm >/dev/null || groupadd -g 36 -r kvm
421
575
getent group qemu >/dev/null || groupadd -g 107 -r qemu
427
581
%post
428
582
 
429
583
%if %{with_libvirtd}
430
 
%if %{with_qemu}
 
584
%if %{with_network}
431
585
# We want to install the default network for initial RPM installs
432
586
# or on the first upgrade from a non-network aware libvirt only.
433
587
# We check this by looking to see if the daemon is already installed
443
597
%endif
444
598
 
445
599
/sbin/chkconfig --add libvirtd
 
600
if [ "$1" -ge "1" ]; then
 
601
        /sbin/service libvirtd condrestart > /dev/null 2>&1
 
602
fi
446
603
%endif
447
604
 
448
605
%preun
457
614
 
458
615
%postun client -p /sbin/ldconfig
459
616
 
 
617
%if %{with_libvirtd}
460
618
%files
461
619
%defattr(-, root, root)
462
620
 
463
621
%doc AUTHORS ChangeLog.gz NEWS README COPYING.LIB TODO
464
622
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
465
623
 
466
 
%if %{with_qemu}
 
624
%if %{with_network}
467
625
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
468
626
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
469
627
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
470
628
%endif
471
629
 
472
 
%if %{with_libvirtd}
473
630
%{_sysconfdir}/rc.d/init.d/libvirtd
474
631
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
475
632
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
476
633
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
477
 
%endif
 
634
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
 
635
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
 
636
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
478
637
 
479
638
%if %{with_qemu}
480
639
%config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
481
640
%endif
 
641
%if %{with_lxc}
 
642
%config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
 
643
%endif
482
644
 
483
 
%if %{with_qemu}
484
645
%dir %{_datadir}/libvirt/
 
646
 
 
647
%if %{with_network}
485
648
%dir %{_datadir}/libvirt/networks/
486
649
%{_datadir}/libvirt/networks/default.xml
487
650
%endif
490
653
 
491
654
%dir %{_localstatedir}/lib/libvirt/
492
655
%dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/
493
 
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
 
656
%dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/
494
657
%dir %attr(0700, root, root) %{_localstatedir}/cache/libvirt/
495
658
 
496
659
%if %{with_qemu}
497
 
%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/run/libvirt/qemu/
 
660
%dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
498
661
%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
499
662
%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
500
663
%endif
519
682
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
520
683
%endif
521
684
 
522
 
%if %{with_libvirtd}
 
685
%if %{with_lxc}
 
686
%{_datadir}/augeas/lenses/libvirtd_lxc.aug
 
687
%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
 
688
%endif
 
689
 
523
690
%{_datadir}/augeas/lenses/libvirtd.aug
524
691
%{_datadir}/augeas/lenses/tests/test_libvirtd.aug
525
 
%endif
526
692
 
527
693
%if %{with_polkit}
 
694
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
 
695
%{_datadir}/polkit-1/actions/org.libvirt.unix.policy
 
696
%else
528
697
%{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
529
698
%endif
 
699
%endif
530
700
 
531
701
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
532
 
%if %{with_qemu}
533
 
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
534
 
%endif
535
702
 
536
703
%if %{with_xen_proxy}
537
704
%attr(4755, root, root) %{_libexecdir}/libvirt_proxy
541
708
%attr(0755, root, root) %{_libexecdir}/libvirt_lxc
542
709
%endif
543
710
 
544
 
%if %{with_libvirtd}
545
711
%attr(0755, root, root) %{_libexecdir}/libvirt_parthelper
546
712
%attr(0755, root, root) %{_sbindir}/libvirtd
547
 
%endif
548
713
 
549
714
%doc docs/*.xml
 
715
%endif
550
716
 
551
717
%files client -f %{name}.lang
552
718
%defattr(-, root, root)
554
720
 
555
721
%{_mandir}/man1/virsh.1*
556
722
%{_mandir}/man1/virt-xml-validate.1*
 
723
%{_mandir}/man1/virt-pki-validate.1*
557
724
%{_bindir}/virsh
558
725
%{_bindir}/virt-xml-validate
 
726
%{_bindir}/virt-pki-validate
559
727
%{_libdir}/lib*.so.*
560
728
 
561
729
%dir %{_datadir}/libvirt/
568
736
%{_datadir}/libvirt/schemas/nodedev.rng
569
737
%{_datadir}/libvirt/schemas/capability.rng
570
738
%{_datadir}/libvirt/schemas/interface.rng
 
739
%{_datadir}/libvirt/schemas/secret.rng
 
740
%{_datadir}/libvirt/schemas/storageencryption.rng
571
741
 
572
742
%if %{with_sasl}
573
743
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
587
757
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
588
758
 
589
759
%doc docs/*.html docs/html docs/*.gif
590
 
%doc docs/examples
591
760
%doc docs/libvirt-api.xml
592
 
%doc examples
 
761
%doc examples/hellolibvirt
 
762
%doc examples/domain-events/events-c
 
763
%doc examples/dominfo
 
764
%doc examples/domsuspend
 
765
%doc examples/xml
593
766
 
594
767
%if %{with_python}
595
768
%files python
600
773
%{_libdir}/python*/site-packages/libvirtmod*
601
774
%doc python/tests/*.py
602
775
%doc python/TODO
603
 
%doc python/libvirtclass.txt
604
 
%doc docs/examples/python
 
776
%doc examples/python
 
777
%doc examples/domain-events/events-python
605
778
%endif
606
779
 
607
780
%changelog
 
781
* Tue Sep 15 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-1
 
782
- ESX, VBox driver updates
 
783
- mutipath support
 
784
- support for encrypted (qcow) volume
 
785
- compressed save image format for Qemu/KVM
 
786
- QEmu host PCI device hotplug support
 
787
- configuration of huge pages in guests
 
788
- a lot of fixes
 
789
 
608
790
* Wed Aug  5 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-1
609
791
- ESX, VBox3, Power Hypervisor drivers
610
792
- new net filesystem glusterfs