]> git.pld-linux.org Git - packages/libvirt.git/blob - libvirt.spec
libvirt-guests uses bash specific for loop, force bash shell
[packages/libvirt.git] / libvirt.spec
1 #
2 # TODO:
3 # - kill CFLAGS from libvirt.pc:Libs
4 # - seems that lxc patch is not needed anymore, verify that before removing
5 # - pldize virtlockd.init
6 #
7 # Conditional build:
8 %bcond_without  ceph            # RADOS BD (Ceph) storage support
9 %bcond_without  esx             # VMware ESX support
10 %bcond_without  glusterfs       # GlusterFS storage support
11 %bcond_without  hyperv          # Hyper-V support
12 %bcond_without  libxl           # libxenlight support
13 %bcond_without  lxc             # LXC support
14 %bcond_without  netcf           # host interfaces support
15 %bcond_without  openvz          # OpenVZ support
16 %bcond_without  phyp            # PHYP support
17 %bcond_without  polkit          # PolicyKit support
18 %bcond_without  qemu            # Qemu support
19 %bcond_without  sanlock         # sanlock storage lock manager
20 %bcond_without  systemtap       # systemtap/dtrace probes
21 %bcond_without  uml             # UML support
22 %bcond_without  vbox            # VirtualBox support
23 %bcond_without  vmware          # VMware Workstation/Player support
24 %bcond_with     vserver         # Support for Linux-VServer guests
25 %bcond_without  xenapi          # Xen API (Citrix XenServer) support
26 %bcond_without  xen             # Xen support
27 %bcond_without  static_libs     # static libraries build
28
29 # qemu available only on x86 and ppc
30 %ifnarch %{ix86} %{x8664} ppc
31 %undefine       with_qemu
32 %endif
33 # Xen is available only on x86 and ia64
34 %ifnarch %{ix86} %{x8664} ia64
35 %undefine       with_xen
36 %endif
37
38 Summary:        Toolkit to interact with virtualization capabilities
39 Summary(pl.UTF-8):      Narzędzia współpracujące z funkcjami wirtualizacji
40 Name:           libvirt
41 Version:        1.2.3
42 Release:        2
43 License:        LGPL v2.1+
44 Group:          Libraries
45 Source0:        ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz
46 # Source0-md5:  ad1602a2fcc3609c83b885a28f3eecbd
47 Source1:        %{name}.init
48 Source2:        %{name}.tmpfiles
49 Patch0:         %{name}-sasl.patch
50 Patch1:         %{name}-lxc.patch
51 Patch2:         %{name}-qemu-acl.patch
52 Patch3:         %{name}-xend.patch
53 Patch4:         virtlockd.init.patch
54 Patch5:         %{name}-udevadm-settle.patch
55 Patch6:         vserver.patch
56 Patch7:         bashisms.patch
57 URL:            http://www.libvirt.org/
58 BuildRequires:  audit-libs-devel
59 BuildRequires:  augeas-devel
60 BuildRequires:  autoconf >= 2.50
61 BuildRequires:  automake
62 BuildRequires:  avahi-devel >= 0.6.0
63 %{?with_ceph:BuildRequires:     ceph-devel}
64 BuildRequires:  curl-devel >= 7.18.0
65 BuildRequires:  cyrus-sasl-devel
66 BuildRequires:  dbus-devel >= 1.0.0
67 BuildRequires:  device-mapper-devel >= 1.0.0
68 BuildRequires:  gawk
69 BuildRequires:  gettext-devel >= 0.17
70 %{?with_glusterfs:BuildRequires:        glusterfs-devel >= 3.4.1}
71 BuildRequires:  gnutls-devel >= 1.0.25
72 BuildRequires:  libapparmor-devel
73 BuildRequires:  libblkid-devel >= 2.17
74 BuildRequires:  libcap-ng-devel >= 0.4.0
75 BuildRequires:  libfuse-devel >= 2.8.6
76 BuildRequires:  libgcrypt-devel
77 BuildRequires:  libnl-devel >= 3.2
78 BuildRequires:  libpcap-devel >= 1.0.0
79 BuildRequires:  libselinux-devel >= 2.0.82
80 BuildRequires:  libssh2-devel >= 1.3
81 BuildRequires:  libstdc++-devel
82 BuildRequires:  libtool
83 %{?with_xenapi:BuildRequires:   libxenserver-devel}
84 BuildRequires:  libxml2-devel >= 1:2.6.0
85 BuildRequires:  libxslt-devel
86 BuildRequires:  ncurses-devel
87 %{?with_netcf:BuildRequires:    netcf-devel >= 0.2.0}
88 BuildRequires:  numactl-devel
89 BuildRequires:  openldap-devel
90 BuildRequires:  openwsman-devel >= 2.2.3
91 BuildRequires:  parted-devel >= 1.8.0
92 BuildRequires:  perl-tools-pod
93 BuildRequires:  pkgconfig
94 %{?with_polkit:BuildRequires:   polkit-devel >= 0.90}
95 BuildRequires:  readline-devel
96 BuildRequires:  rpmbuild(macros) >= 1.627
97 %{?with_sanlock:BuildRequires:  sanlock-devel >= 0.8}
98 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
99 BuildRequires:  udev-devel >= 1:145
100 %{?with_xen:BuildRequires:      xen-devel >= 4.2}
101 # For disk driver
102 BuildRequires:  xorg-lib-libpciaccess-devel >= 0.10.0
103 BuildRequires:  yajl-devel
104 Requires:       curl-libs >= 7.18.0
105 Requires:       device-mapper >= 1.0.0
106 Requires:       libcap-ng >= 0.4.0
107 Requires:       libnl >= 3.2
108 Requires:       libpcap >= 1.0.0
109 Requires:       libselinux >= 2.0.82
110 Requires:       libssh2 >= 1.3
111 Requires:       libxml2 >= 1:2.6.0
112 Requires:       openwsman-libs >= 2.2.3
113 Obsoletes:      libvirt-daemon-esx
114 Obsoletes:      libvirt-daemon-hyperv
115 Obsoletes:      libvirt-daemon-openvz
116 Obsoletes:      libvirt-daemon-phyp
117 Obsoletes:      libvirt-daemon-vbox
118 Obsoletes:      libvirt-daemon-vmware
119 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
120
121 %description
122 Libvirt is a C toolkit to interact with the virtualization
123 capabilities of recent versions of Linux.
124
125 Virtualization of the Linux Operating System means the ability to run
126 multiple instances of Operating Systems concurently on a single
127 hardware system where the basic resources are driven by a Linux
128 instance. The library aim at providing long term stable C API
129 initially for the Xen paravirtualization but should be able to
130 integrate other virtualization mechanisms if needed.
131
132 This package contains the base libraries and configuration file.
133
134 %description -l pl.UTF-8
135 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
136 obecnych wersji Linuksa.
137
138 Wirtualizacja w systemie operacyjnym Linux oznacza możliwość
139 jednoczesnego uruchamiania wielu instancji systemu operacyjnego na
140 pojedynczym systemie sprzętowym, którego podstawowe zasoby są
141 zarządzane przez instancję Linuksa. Celem biblioteki jest zapewnienie
142 długotrwale stabilnego API C, początkowo do parawirtualizacji Xen, ale
143 dającej się zintegrować w razie potrzeby z innymi mechanizmami
144 wirtualizacji.
145
146 Ten pakiet zawiera podstawowe biblioteki oraz plik konfiguracyjny.
147
148 %package devel
149 Summary:        Development files for programs using libvirt
150 Summary(pl.UTF-8):      Pliki programistyczne do programów wykorzystujących libvirt
151 Group:          Development/Libraries
152 Requires:       %{name} = %{version}-%{release}
153 Requires:       audit-libs-devel
154 Requires:       curl-devel >= 7.18.0
155 Requires:       dbus-devel >= 1.0.0
156 Requires:       device-mapper-devel >= 1.0.0
157 Requires:       gnutls-devel >= 1.0.25
158 Requires:       libapparmor-devel
159 Requires:       libcap-ng-devel >= 0.4.0
160 Requires:       libgcrypt-devel
161 Requires:       libnl-devel >= 3.2
162 Requires:       libpcap-devel >= 1.0.0
163 Requires:       libselinux-devel >= 2.0.82
164 Requires:       libxml2-devel >= 1:2.6.0
165 Requires:       numactl-devel
166 Requires:       openwsman-devel >= 2.2.3
167 %{?with_xen:Requires:   xen-devel >= 4.2}
168 Requires:       yajl-devel
169
170 %description devel
171 Libvirt is a C toolkit to interact with the virtualization
172 capabilities of recent versions of Linux.
173
174 This package contains the header files needed for developing programs
175 using the libvirt library.
176
177 %description devel -l pl.UTF-8
178 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
179 obecnych wersji Linuksa.
180
181 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
182 wykorzystujących bibliotekę libvirt.
183
184 %package static
185 Summary:        Development static libraries for programs using libvirt
186 Summary(pl.UTF-8):      Statyczne biblioteki programistyczne do programów wykorzystujących libvirt
187 Group:          Development/Libraries
188 Requires:       %{name}-devel = %{version}-%{release}
189
190 %description static
191 Libvirt is a C toolkit to interact with the virtualization
192 capabilities of recent versions of Linux.
193
194 This package contains the static libraries for developing programs
195 using the libvirt library.
196
197 %description static -l pl.UTF-8
198 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
199 obecnych wersji Linuksa.
200
201 Ten pakiet zawiera biblioteki statyczne do tworzenia programów
202 wykorzystujących bibliotekę libvirt.
203
204 %package lock-sanlock
205 Summary:        Sanlock lock manager plugin for libvirt
206 Summary(pl.UTF-8):      Zarządca blokad sanlock dla biblioteki libvirt
207 Group:          Libraries
208 Requires:       %{name}-daemon = %{version}-%{release}
209
210 %description lock-sanlock
211 Sanlock lock manager plugin for libvirt.
212
213 %description lock-sanlock -l pl.UTF-8
214 Zarządca blokad sanlock dla biblioteki libvirt.
215
216 %package daemon
217 Summary:        Server side daemon and supporting files for libvirt library
218 Summary(pl.UTF-8):      Demon działający po stronie serwera oraz pliki wspierające dla biblioteki libvirt
219 Group:          Applications/System
220 Requires:       %{name} = %{version}-%{release}
221 Requires:       avahi-libs >= 0.6.0
222 Requires:       iproute2
223 Requires:       libblkid >= 2.17
224 %{?with_netcf:Requires: netcf >= 0.2.0}
225 Requires:       parted-libs >= 1.8.0
226 Requires:       rc-scripts
227 # Needed for probing the power management features of the host.
228 Requires:       pm-utils
229 Requires:       systemd-units >= 37-0.10
230 Requires:       udev-libs >= 1:145
231 Requires:       util-linux
232 Requires:       virtual(module-tools)
233 Requires:       xorg-lib-libpciaccess >= 0.10.0
234 Requires(post): systemd-units
235 Requires(post,preun):   /sbin/chkconfig
236 Requires(postun):       systemd-units
237 Requires(preun):        systemd-units
238 Suggests:       bridge-utils
239 Suggests:       cyrus-sasl
240 Suggests:       cyrus-sasl-digest-md5
241 Suggests:       dmidecode
242 Suggests:       dnsmasq >= 2.41
243 Suggests:       ebtables
244 Suggests:       gawk
245 Suggests:       glusterfs-client >= 2.0.1
246 Suggests:       iptables
247 Suggests:       iptables
248 Suggests:       libcgroup
249 Suggests:       lvm2
250 Suggests:       numad
251 Suggests:       open-iscsi
252 Suggests:       parted >= 1.8.0
253 Suggests:       polkit >= 0.93
254 #Suggests:      radvd
255 Suggests:       scrub
256 #Suggests:      sheepdog
257 Provides:       libvirt(hypervisor)
258
259 %description daemon
260 Server side daemon required to manage the virtualization capabilities
261 of recent versions of Linux. Requires a hypervisor specific sub-RPM
262 for specific drivers.
263
264 %description daemon -l pl.UTF-8
265 Demon działający po stronie serwera wymagany do zarządzania funkcjami
266 wirtualizacji nowych wersji Linuksa. Wymaga podpakietu specyficznego
267 dla hipernadzorcy.
268
269 %package daemon-libxl
270 Summary:        Server side driver required to run XEN guests (xenlight)
271 Summary(pl.UTF-8):      Sterownik wymagany po stronie serwera do uruchamiania gości XEN (xenlight)
272 Group:          Libraries
273 Requires:       %{name}-daemon = %{version}-%{release}
274 Requires:       /usr/sbin/qcow-create
275 Requires:       xen
276 Provides:       libvirt(hypervisor)
277
278 %description daemon-libxl
279 Server side driver required to manage the virtualization capabilities
280 of XEN via xenlight interface.
281
282 %description daemon-libxl -l pl.UTF-8
283 Sterownik wymagany po stronie serwera do zarządzania funkcjami
284 wirtualizacji XEN poprzez interfejs xenlight.
285
286 %package daemon-lxc
287 Summary:        Server side driver required to run LXC guests
288 Summary(pl.UTF-8):      Sterownik wymagany po stronie serwera do uruchamiania gości LXC
289 Group:          Libraries
290 Requires:       %{name}-daemon = %{version}-%{release}
291 Requires:       libfuse >= 2.8.6
292 Provides:       libvirt(hypervisor)
293
294 %description daemon-lxc
295 Server side driver required to manage the virtualization capabilities
296 of LXC.
297
298 %description daemon-lxc -l pl.UTF-8
299 Sterownik wymagany po stronie serwera do zarządzania funkcjami
300 wirtualizacji LXC.
301
302 %package daemon-qemu
303 Summary:        Server side driver required to run QEMU guests
304 Summary(pl.UTF-8):      Sterownik wymagany po stronie serwera do uruchamiania gości QEMU
305 Group:          Libraries
306 Requires:       %{name}-daemon = %{version}-%{release}
307 Requires:       /usr/bin/qemu-img
308 Requires:       bzip2
309 Requires:       gzip
310 Requires:       lzop
311 Requires:       qemu
312 Requires:       xz
313 Provides:       libvirt(hypervisor)
314
315 %description daemon-qemu
316 Server side driver required to manage the virtualization capabilities
317 of the QEMU emulators.
318
319 %description daemon-qemu -l pl.UTF-8
320 Sterownik wymagany po stronie serwera do zarządzania funkcjami
321 wirtualizacji emulatora QEMU.
322
323 %package daemon-uml
324 Summary:        Server side driver required to run UML guests
325 Summary(pl.UTF-8):      Sterownik wymagany po stronie serwera do uruchamiania gości UML
326 Group:          Libraries
327 Requires:       %{name}-daemon = %{version}-%{release}
328 Provides:       libvirt(hypervisor)
329
330 %description daemon-uml
331 Server side driver required to manage the virtualization capabilities
332 of UML.
333
334 %description daemon-uml -l pl.UTF-8
335 Sterownik wymagany po stronie serwera do zarządzania funkcjami
336 wirtualizacji UML.
337
338 %package daemon-xen
339 Summary:        Server side driver required to run XEN guests
340 Summary(pl.UTF-8):      Sterownik wymagany po stronie serwera do uruchamiania gości XEN
341 Group:          Libraries
342 Requires:       %{name}-daemon = %{version}-%{release}
343 Requires:       /usr/sbin/qcow-create
344 Requires:       xen
345 Requires:       xen-xend
346 Provides:       libvirt(hypervisor)
347
348 %description daemon-xen
349 Server side driver required to manage the virtualization capabilities
350 of XEN.
351
352 %description daemon-xen -l pl.UTF-8
353 Sterownik wymagany po stronie serwera do zarządzania funkcjami
354 wirtualizacji XEN.
355
356 %package client
357 Summary:        Client side utilities of the libvirt library
358 Summary(pl.UTF-8):      Narzędzia klienckie do biblioteki libvirt
359 Group:          Applications/System
360 Requires:       %{name} = %{version}-%{release}
361 Requires:       gettext >= 0.18.1.1-6
362 Requires:       gnutls >= 1.0.25
363 Requires:       netcat-openbsd
364 Requires:       rc-scripts
365 Requires(post): systemd-units
366 Requires(post,preun):   /sbin/chkconfig
367 Requires(postun):       systemd-units
368 Requires(preun):        systemd-units
369
370 %description client
371 Client binaries needed to access to the virtualization capabilities of
372 recent versions of Linux (and other OSes).
373
374 %description client -l pl.UTF-8
375 Programy klienckie potrzebne do funkcji wirtualizacji nowych wersji
376 Linuksa (oraz innych systemów operacyjnych).
377
378 %package utils
379 Summary:        Tools to interact with virtualization capabilities (metapackage)
380 Summary(pl.UTF-8):      Narzędzia do współpracy z funkcjami wirtualizacyjnymi (metapakiet)
381 Group:          Applications/System
382 Requires:       %{name}-client = %{version}-%{release}
383 Requires:       %{name}-daemon = %{version}-%{release}
384 %{?with_libxl:Requires: %{name}-daemon-libxl = %{version}-%{release}}
385 Requires:       %{name}-daemon-lxc = %{version}-%{release}
386 Requires:       %{name}-daemon-qemu = %{version}-%{release}
387 Requires:       %{name}-daemon-uml = %{version}-%{release}
388 Requires:       %{name}-daemon-xen = %{version}-%{release}
389
390 %description utils
391 Libvirt is a C toolkit to interact with the virtualization
392 capabilities of recent versions of Linux.
393
394 This is metapackage gathering all tools for the libvirt library.
395
396 %description utils -l pl.UTF-8
397 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
398 obecnych wersji Linuksa.
399
400 To jest metapakiet zbierający wszystkie narzędzia przeznaczone dla
401 biblioteki libvirt.
402
403 %package -n systemtap-libvirt
404 Summary:        systemtap/dtrace probes for libvirt
405 Summary(pl.UTF-8):      Sondy systemtap/dtrace dla libvirt
406 Group:          Development/Tools
407 Requires:       %{name} = %{version}-%{release}
408 Requires:       systemtap-client
409
410 %description -n systemtap-libvirt
411 systemtap/dtrace probes for libvirt.
412
413 %description -n systemtap-libvirt -l pl.UTF-8
414 Sondy systemtap/dtrace dla libvirt.
415
416 %prep
417 %setup -q
418 %patch0 -p1
419 # TODO
420 #patch1 -p1
421 %patch2 -p1
422 %patch3 -p1
423 %patch4 -p1
424 %patch5 -p1
425 %{?with_vserver:%patch6 -p1}
426 %patch7 -p1
427
428 %build
429 %{__libtoolize}
430 %{__aclocal} -I gnulib/m4 -I m4
431 %{__autoconf}
432 %{__autoheader}
433 %{__automake}
434
435 %configure \
436         PVCREATE=/sbin/pvcreate \
437         VGCREATE=/sbin/vgcreate \
438         LVCREATE=/sbin/lvcreate \
439         PVREMOVE=/sbin/pvremove \
440         VGREMOVE=/sbin/vgremove \
441         LVREMOVE=/sbin/lvremove \
442         VGCHANGE=/sbin/vgchange \
443         LVCHANGE=/sbin/lvchange \
444           VGSCAN=/sbin/vgscan   \
445              PVS=/sbin/pvs      \
446              VGS=/sbin/vgs      \
447              LVS=/sbin/lvs      \
448               TC=/sbin/tc \
449            BRCTL=/sbin/brctl    \
450         ISCSIADM=/sbin/iscsiadm \
451         SHOWMOUNT=/usr/sbin/showmount \
452         MOUNT=/bin/mount \
453         UMOUNT=/bin/umount \
454         MKFS=/sbin/mkfs \
455         SHOWMOUNT=/usr/sbin/showmount \
456         IPTABLES_PATH=/usr/sbin/iptables \
457         IP6TABLES_PATH=/usr/sbin/ip6tables \
458         EBTABLES_PATH=/usr/sbin/ebtables \
459         ISCSIADM=/sbin/iscsiadm \
460         DNSMASQ=/usr/sbin/dnsmasq \
461         RADVD=/usr/sbin/radvd \
462         UDEVADM=/sbin/udevadm \
463         MODPROBE=/sbin/modprobe \
464         SCRUB=/usr/bin/scrub \
465         OVSVSCTL=/usr/bin/ovs-vsctl \
466         NUMAD=/usr/bin/numad \
467         COLLIE=/usr/sbin/collie \
468         --disable-silent-rules \
469         %{?with_static_libs:--enable-static} \
470         --with-html-dir=%{_gtkdocdir} \
471         --with-html-subdir=%{name} \
472         --with-init-script=systemd+redhat \
473         --with-packager="PLD-Linux" \
474         --with-packager-version="%{name}-%{version}-%{release}.%{_target_cpu}" \
475         --with-qemu-user=qemu \
476         --with-qemu-group=qemu \
477         --with-storage-disk \
478         --with-storage-fs \
479         --with-storage-gluster%{!?with_glusterfs:=no} \
480         --with-storage-iscsi \
481         --with-storage-lvm \
482         --with-storage-mpath \
483         --with-storage-rbd%{!?with_ceph:=no} \
484         --with-storage-scsi \
485         --with-storage-sheepdog \
486         --with-apparmor \
487         --with-audit \
488         --with-avahi \
489         %{__with_without systemtap dtrace} \
490         %{__with_without esx} \
491         --with-driver-modules \
492         --without-hal \
493         %{__with_without hyperv} \
494         --with-blkid \
495         --with-ssh2 \
496         %{__with_without libxl} \
497         %{__with_without lxc} \
498         --with-macvtap \
499         %{__with_without netcf} \
500         --with-numactl \
501         --with-numad \
502         %{__with_without openvz} \
503         %{__with_without phyp} \
504         %{__with_without polkit} \
505         %{__with_without qemu} \
506         %{__with_without sanlock} \
507         --with-sasl \
508         --with-selinux \
509         --with-udev \
510         %{__with_without uml} \
511         %{__with_without vbox vbox %{_libdir}/VirtualBox} \
512         --with-virtualport \
513         %{__with_without vmware} \
514         %{__with_without xen} \
515         %{__with_without xenapi} \
516         --with-yajl \
517         --x-libraries=%{_libdir}
518
519 %{__make} \
520         AWK=gawk
521
522 %install
523 rm -rf $RPM_BUILD_ROOT
524 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \
525         $RPM_BUILD_ROOT%{systemdtmpfilesdir}
526
527 %{__make} install \
528         DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \
529         SYSTEMD_UNIT_DIR=%{systemdunitdir} \
530         DESTDIR=$RPM_BUILD_ROOT
531
532 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd
533 install %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
534
535 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
536 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.la \
537         %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.a}
538
539 %if %{with sanlock}
540 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.la \
541         %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.a}
542 %endif
543
544 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{eu_ES,eu}
545 # duplicate of vi, just one less message translated
546 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/vi_VN
547
548 %find_lang %{name}
549
550 %clean
551 rm -rf $RPM_BUILD_ROOT
552
553 %post   -p /sbin/ldconfig
554 %postun -p /sbin/ldconfig
555
556 %post daemon
557 /sbin/chkconfig --add libvirtd
558 %service libvirtd restart
559 %systemd_post libvirtd.service
560
561 %preun daemon
562 if [ "$1" = "0" ]; then
563         %service -q libvirtd stop
564         /sbin/chkconfig --del libvirtd
565 fi
566 %systemd_preun libvirtd.service
567
568 %postun daemon
569 %systemd_reload
570
571 %post client
572 /sbin/chkconfig --add libvirt-guests
573 %service -n libvirt-guests restart
574 NORESTART=1
575 %systemd_post libvirt-guests.service
576
577 %preun client
578 %systemd_preun libvirt-guests.service
579 if [ "$1" = "0" ]; then
580         %service -q libvirt-guests stop
581         /sbin/chkconfig --del libvirt-guests
582 fi
583
584 %postun client
585 %systemd_reload
586
587 %files -f %{name}.lang
588 %defattr(644,root,root,755)
589 %doc ChangeLog README TODO NEWS
590 %dir %{_sysconfdir}/libvirt
591 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf
592 %attr(755,root,root) %{_libdir}/libvirt.so.*.*.*
593 %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0
594 %if %{with lxc}
595 %attr(755,root,root) %{_libdir}/libvirt-lxc.so.*.*.*
596 %attr(755,root,root) %ghost %{_libdir}/libvirt-lxc.so.0
597 %endif
598 %if %{with qemu}
599 %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.*
600 %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0
601 %endif
602
603 %dir %{_libdir}/libvirt
604 %dir %{_datadir}/libvirt
605 %{_datadir}/libvirt/libvirtLogo.png
606
607 %files devel
608 %defattr(644,root,root,755)
609 %attr(755,root,root) %{_libdir}/libvirt.so
610 %{?with_lxc:%attr(755,root,root) %{_libdir}/libvirt-lxc.so}
611 %{?with_qemu:%attr(755,root,root) %{_libdir}/libvirt-qemu.so}
612 %{_datadir}/%{name}/api
613 %{_gtkdocdir}/%{name}
614 %{_includedir}/%{name}
615 %{_pkgconfigdir}/%{name}.pc
616
617 %files static
618 %defattr(644,root,root,755)
619 %{_libdir}/libvirt.a
620 %{?with_lxc:%{_libdir}/libvirt-lxc.a}
621 %{?with_qemu:%{_libdir}/libvirt-qemu.a}
622
623 %if %{with sanlock}
624 %files lock-sanlock
625 %defattr(644,root,root,755)
626 %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup
627 %attr(755,root,root) %{_libdir}/libvirt_sanlock_helper
628 %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so
629 %{_datadir}/augeas/lenses/libvirt_sanlock.aug
630 %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
631 %dir /var/lib/libvirt/sanlock
632 %{_mandir}/man8/virt-sanlock-cleanup.8*
633 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf
634 %endif
635
636 %files daemon
637 %defattr(644,root,root,755)
638 %doc docs/*.xml
639 %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter
640 %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu
641 %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks
642 %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart
643 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf
644 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-lockd.conf
645 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virtlockd.conf
646 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml
647 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
648 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml
649 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf
650 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd
651 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/virtlockd
652 %attr(754,root,root) /etc/rc.d/init.d/libvirtd
653 %attr(754,root,root) /etc/rc.d/init.d/virtlockd
654 %{systemdunitdir}/libvirtd.service
655 %{systemdunitdir}/virtlockd.service
656 %{systemdunitdir}/virtlockd.socket
657 %config(noreplace) %verify(not md5 mtime size) /usr/lib/sysctl.d/libvirtd.conf
658 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd
659 %attr(755,root,root) %{_libdir}/libvirt_iohelper
660 %attr(755,root,root) %{_libdir}/libvirt_parthelper
661 %attr(755,root,root) %{_libdir}/virt-aa-helper
662 %attr(755,root,root) %{_sbindir}/libvirtd
663 %attr(755,root,root) %{_sbindir}/virtlockd
664 %{_datadir}/augeas/lenses/libvirtd.aug
665 %{_datadir}/augeas/lenses/libvirt_lockd.aug
666 %{_datadir}/augeas/lenses/virtlockd.aug
667 %{_datadir}/augeas/lenses/tests/test_libvirtd.aug
668 %{_datadir}/augeas/lenses/tests/test_libvirt_lockd.aug
669 %{_datadir}/augeas/lenses/tests/test_virtlockd.aug
670 %if %{with polkit}
671 %{_datadir}/polkit-1/actions/org.libvirt.api.policy
672 %{_datadir}/polkit-1/actions/org.libvirt.unix.policy
673 %endif
674 %{_mandir}/man8/libvirtd.8*
675 %{_mandir}/man8/virtlockd.8*
676 %dir /var/lib/libvirt
677 %dir /var/lib/libvirt/dnsmasq
678 %attr(711,root,root) %dir /var/lib/libvirt/boot
679 %attr(700,root,root) %dir /var/lib/libvirt/network
680 %attr(711,root,root) %dir /var/lib/libvirt/images
681 %attr(711,root,root) %dir /var/lib/libvirt/filesystems
682 %attr(700,root,root) %dir /var/log/libvirt
683 %attr(711,root,root) %dir /var/cache/libvirt
684 %dir /var/run/libvirt
685 %dir /var/run/libvirt/network
686 %{systemdtmpfilesdir}/%{name}.conf
687 %dir %{_libdir}/libvirt/connection-driver
688 %{_datadir}/libvirt/cpu_map.xml
689 %{?with_netcf:%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so}
690 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so
691 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so
692 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so
693 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so
694 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so
695 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so
696 %dir %{_libdir}/libvirt/lock-driver
697 %attr(755,root,root) %{_libdir}/libvirt/lock-driver/lockd.so
698
699 %if %{with libxl}
700 %files daemon-libxl
701 %defattr(644,root,root,755)
702 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so
703 %attr(700,root,root) %dir /var/lib/libvirt/libxl
704 %attr(700,root,root) %dir /var/run/libvirt/libxl
705 %attr(700,root,root) %dir /var/log/libvirt/libxl
706 %endif
707
708 %if %{with lxc}
709 %files daemon-lxc
710 %defattr(644,root,root,755)
711 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf
712 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc
713 %attr(700,root,root) %dir /var/lib/libvirt/lxc
714 %attr(700,root,root) %dir /var/run/libvirt/lxc
715 %attr(700,root,root) %dir /var/log/libvirt/lxc
716 %{_datadir}/augeas/lenses/libvirtd_lxc.aug
717 %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
718 %attr(755,root,root) %{_libdir}/libvirt_lxc
719 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so
720 %endif
721
722 %if %{with qemu}
723 %files daemon-qemu
724 %defattr(644,root,root,755)
725 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf
726 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu
727 %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu
728 %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu
729 %attr(700,root,root) %dir /var/log/libvirt/qemu
730 %attr(700,root,root) %dir /var/run/libvirt/qemu
731 %{_datadir}/augeas/lenses/libvirtd_qemu.aug
732 %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
733 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so
734 %endif
735
736 %if %{with uml}
737 %files daemon-uml
738 %defattr(644,root,root,755)
739 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_uml.so
740 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.uml
741 %attr(700,root,root) %dir /var/lib/libvirt/uml
742 %attr(700,root,root) %dir /var/run/libvirt/uml
743 %attr(700,root,root) %dir /var/log/libvirt/uml
744 %endif
745
746 %if %{with xen}
747 %files daemon-xen
748 %defattr(644,root,root,755)
749 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_xen.so
750 %endif
751
752 %files client
753 %defattr(644,root,root,755)
754 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests
755 %attr(754,root,root) /etc/rc.d/init.d/libvirt-guests
756 %{systemdunitdir}/libvirt-guests.service
757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/virt-login-shell.conf
758 %attr(755,root,root) %{_bindir}/virsh
759 %attr(755,root,root) %{_bindir}/virt-host-validate
760 %attr(4755,root,root) %{_bindir}/virt-login-shell
761 %attr(755,root,root) %{_bindir}/virt-xml-validate
762 %attr(755,root,root) %{_bindir}/virt-pki-validate
763 %attr(754,root,root) %{_libexecdir}/libvirt-guests.sh
764 %{_mandir}/man1/virsh.1*
765 %{_mandir}/man1/virt-host-validate.1*
766 %{_mandir}/man1/virt-login-shell.1*
767 %{_mandir}/man1/virt-xml-validate.1*
768 %{_mandir}/man1/virt-pki-validate.1*
769 %dir %{_datadir}/libvirt/schemas
770 %{_datadir}/libvirt/schemas/basictypes.rng
771 %{_datadir}/libvirt/schemas/capability.rng
772 %{_datadir}/libvirt/schemas/domain.rng
773 %{_datadir}/libvirt/schemas/domaincommon.rng
774 %{_datadir}/libvirt/schemas/domainsnapshot.rng
775 %{_datadir}/libvirt/schemas/interface.rng
776 %{_datadir}/libvirt/schemas/network.rng
777 %{_datadir}/libvirt/schemas/networkcommon.rng
778 %{_datadir}/libvirt/schemas/nodedev.rng
779 %{_datadir}/libvirt/schemas/nwfilter.rng
780 %{_datadir}/libvirt/schemas/secret.rng
781 %{_datadir}/libvirt/schemas/storageencryption.rng
782 %{_datadir}/libvirt/schemas/storagefilefeatures.rng
783 %{_datadir}/libvirt/schemas/storagepool.rng
784 %{_datadir}/libvirt/schemas/storagevol.rng
785
786 %files utils
787 %defattr(644,root,root,755)
788
789 %if %{with systemtap}
790 %files -n systemtap-libvirt
791 %defattr(644,root,root,755)
792 %{_datadir}/systemtap/tapset/libvirt_functions.stp
793 %{_datadir}/systemtap/tapset/libvirt_probes.stp
794 %{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp
795 %endif
This page took 0.734588 seconds and 4 git commands to generate.