# # Conditional build: %bcond_without esx # VMware ESX support %bcond_without hyperv # Hyper-V support %bcond_without libxl # libxenlight %bcond_without lxc # LXC support %bcond_without netcf # host interfaces support %bcond_without openvz # OpenVZ support %bcond_without phyp # PHYP support %bcond_without polkit # PolicyKit %bcond_without qemu # Qemu %bcond_without sanlock # sanlock storage lock manager %bcond_without uml # UML support %bcond_without vbox # VirtualBox support %bcond_without vmware # VMware Workstation/Player support %bcond_with xenapi # XenAPI support %bcond_without xen_proxy # Xen proxy %bcond_without xen # xen # qemu available only on x86 and ppc %ifnarch %{ix86} %{x8664} ppc %undefine with_qemu %endif # Xen is available only on x86 and ia64 %ifnarch %{ix86} %{x8664} ia64 %undefine with_xen %endif %if %{without xen} %undefine with_xen_proxy %endif %define pre rc2 Summary: Toolkit to interact with virtualization capabilities Summary(pl.UTF-8): Narzędzia współpracujące z funkcjami wirtualizacji Name: libvirt Version: 0.9.11 Release: 0.%{pre}.1 License: LGPL v2.1+ Group: Libraries Source0: ftp://ftp.libvirt.org/libvirt/%{name}-%{version}%{?pre:-%{pre}}.tar.gz # Source0-md5: 7c63519e2b8340165d9b915af49a8169 Source1: %{name}.init Source2: %{name}.tmpfiles Patch0: %{name}-sasl.patch Patch1: %{name}-lxc.patch Patch2: %{name}-qemu-acl.patch Patch3: %{name}-xend.patch Patch4: lxc-without-selinux.patch Patch5: %{name}-driver-modules.patch URL: http://www.libvirt.org/ BuildRequires: audit-libs-devel BuildRequires: augeas-devel BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: avahi-devel >= 0.6.0 BuildRequires: curl-devel >= 7.18.0 BuildRequires: cyrus-sasl-devel BuildRequires: device-mapper-devel >= 1.0.0 BuildRequires: gawk BuildRequires: gettext-devel >= 0.17 BuildRequires: gnutls-devel >= 1.0.25 BuildRequires: libapparmor-devel BuildRequires: libblkid-devel >= 2.17 BuildRequires: libcap-ng-devel >= 0.4.0 BuildRequires: libgcrypt-devel BuildRequires: libnl1-devel >= 1.1 BuildRequires: libpcap-devel >= 1.0.0 BuildRequires: libselinux-devel >= 2.0.82 BuildRequires: libssh2-devel >= 1.0 BuildRequires: libstdc++-devel BuildRequires: libtool BuildRequires: libxml2-devel >= 1:2.6.0 BuildRequires: libxslt-devel BuildRequires: ncurses-devel %{?with_netcf:BuildRequires: netcf-devel >= 0.1.4} BuildRequires: numactl-devel BuildRequires: openldap-devel BuildRequires: openwsman-devel >= 2.2.3 BuildRequires: parted-devel >= 1.8.0 BuildRequires: perl-tools-pod %{?with_polkit:BuildRequires: polkit >= 0.90} BuildRequires: pkgconfig BuildRequires: python BuildRequires: python-devel BuildRequires: readline-devel BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.627 %{?with_sanlock:BuildRequires: sanlock-devel >= 0.8} BuildRequires: udev-devel >= 145 %{?with_xen:BuildRequires: xen-devel >= 4.1.2} # For disk driver BuildRequires: xorg-lib-libpciaccess-devel >= 0.10.0 BuildRequires: yajl-devel Requires: curl-libs >= 7.18.0 Requires: device-mapper >= 1.0.0 Requires: libcap-ng >= 0.4.0 Requires: libnl1 >= 1.1 Requires: libpcap >= 1.0.0 Requires: libselinux >= 2.0.82 Requires: libssh2 >= 1.0 Requires: libxml2 >= 1:2.6.0 Requires: openwsman-libs >= 2.2.3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurently on a single hardware system where the basic resources are driven by a Linux instance. The library aim at providing long term stable C API initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms if needed. %description -l pl.UTF-8 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji obecnych wersji Linuksa. Wirtualizacja w systemie operacyjnym Linux oznacza możliwość jednoczesnego uruchamiania wielu instancji systemu operacyjnego na pojedynczym systemie sprzętowym, którego podstawowe zasoby są zarządzane przez instancję Linuksa. Celem biblioteki jest zapewnienie długotrwale stabilnego API C, początkowo do parawirtualizacji Xen, ale dającej się zintegrować w razie potrzeby z innymi mechanizmami wirtualizacji. %package devel Summary: Development files for programs using libvirt Summary(pl.UTF-8): Pliki programistyczne do programów wykorzystujących libvirt Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: audit-libs-devel Requires: curl-devel >= 7.18.0 Requires: device-mapper-devel >= 1.0.0 Requires: gnutls-devel >= 1.0.25 Requires: libapparmor-devel Requires: libcap-ng-devel >= 0.4.0 Requires: libgcrypt-devel Requires: libnl1-devel >= 1.1 Requires: libpcap-devel >= 1.0.0 Requires: libselinux-devel >= 2.0.82 Requires: libxml2-devel >= 1:2.6.0 Requires: numactl-devel Requires: openwsman-devel >= 2.2.3 %{?with_xen:Requires: xen-devel} Requires: yajl-devel %description devel Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux. This package contains the header files needed for developing programs using the libvirt library. %description devel -l pl.UTF-8 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji obecnych wersji Linuksa. Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów wykorzystujących bibliotekę libvirt. %package static Summary: Development static libraries for programs using libvirt Summary(pl.UTF-8): Statyczne biblioteki programistyczne do programów wykorzystujących libvirt Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux. This package contains the static libraries for developing programs using the libvirt library. %description static -l pl.UTF-8 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji obecnych wersji Linuksa. Ten pakiet zawiera biblioteki statyczne do tworzenia programów wykorzystujących bibliotekę libvirt. %package -n python-%{name} Summary: Python bindings to interact with virtualization capabilities Summary(pl.UTF-8): Wiązania Pythona do współpracy z funkcjami wirtualizacji Group: Development/Languages/Python Requires: %{name} = %{version}-%{release} %description -n python-%{name} Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux. This package contains the Python bindings for the libvirt library. %description -n python-%{name} -l pl.UTF-8 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji obecnych wersji Linuksa. Ten pakiet zawiera wiązania Pythona do biblioteki libvirt. %package lock-sanlock Summary: Sanlock lock manager plugin for libvirt Summary(pl.UTF-8): Zarządca blokad sanlock dla biblioteki libvirt Group: Libraries Requires: %{name} = %{version}-%{release} %description lock-sanlock Sanlock lock manager plugin for libvirt. %description lock-sanlock -l pl.UTF-8 Zarządca blokad sanlock dla biblioteki libvirt. %package daemon Summary: Server side daemon and supporting files for libvirt library Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: avahi-libs >= 0.6.0 Requires: iproute2 Requires: libblkid >= 2.17 Provides: libvirt(hypervisor) Requires: parted-libs >= 1.8.0 # Needed for probing the power management features of the host. Requires: pm-utils Requires: systemd-units >= 37-0.10 Requires: udev-libs >= 145 Requires: util-linux Requires: virtual(module-tools) Requires: xorg-lib-libpciaccess >= 0.10.0 Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Suggests: bridge-utils Suggests: cyrus-sasl Suggests: cyrus-sasl-digest-md5 Suggests: dmidecode Suggests: dnsmasq >= 2.41 Suggests: ebtables Suggests: gawk Suggests: glusterfs-client >= 2.0.1 Suggests: iptables Suggests: iptables Suggests: libcgroup Suggests: lvm2 Suggests: numad Suggests: open-iscsi Suggests: parted Suggests: polkit >= 0.93 Suggests: radvd Suggests: scrub %description daemon Server side daemon required to manage the virtualization capabilities of recent versions of Linux. Requires a hypervisor specific sub-RPM for specific drivers. %package daemon-esx Summary: Server side daemon & driver required to run VMware ESX guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-esx Server side daemon and driver required to manage the virtualization capabilities of the VMware ESX emulators %package daemon-hyperv Summary: Server side daemon & driver required to run Microsoft Hyper-V guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-hyperv Server side daemon and driver required to manage the virtualization capabilities of the Microsoft Hyper-V emulators %package daemon-libxl Summary: Server side daemon & driver required to run XEN guests (xenlight) Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Requires: /usr/sbin/qcow-create Requires: xen Provides: libvirt(hypervisor) %description daemon-libxl Server side daemon and driver required to manage the virtualization capabilities of XEN via xenlight interface %package daemon-lxc Summary: Server side daemon & driver required to run LXC guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-lxc Server side daemon and driver required to manage the virtualization capabilities of LXC %package daemon-openvz Summary: Server side daemon & driver required to run OpenVZ guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-openvz Server side daemon and driver required to manage the virtualization capabilities of OpenVZ %package daemon-phyp Summary: Server side daemon & driver required to run Power Hypervisors guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-phyp Server side daemon and driver required to manage the virtualization capabilities of Power Hypervisors %package daemon-qemu Summary: Server side daemon & driver required to run QEMU guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Requires: /usr/bin/qemu-img Requires: qemu Requires: bzip2 Requires: gzip Requires: lzop Requires: xz Provides: libvirt(hypervisor) %description daemon-qemu Server side daemon and driver required to manage the virtualization capabilities of the QEMU emulators %package daemon-uml Summary: Server side daemon & driver required to run UML guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-uml Server side daemon and driver required to manage the virtualization capabilities of UML %package daemon-vbox Summary: Server side daemon & driver required to run Oracle VirtualBox guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-vbox Server side daemon and driver required to manage the virtualization capabilities of Oracle VirtualBox %package daemon-vmware Summary: Server side daemon & driver required to run VMware Workstation guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Provides: libvirt(hypervisor) %description daemon-vmware Server side daemon and driver required to manage the virtualization capabilities of VMware Workstation %package daemon-xen Summary: Server side daemon & driver required to run XEN guests Group: Development/Libraries Requires: %{name}-daemon = %{version}-%{release} Requires: /usr/sbin/qcow-create Requires: xen Requires: xen-xend Provides: libvirt(hypervisor) %description daemon-xen Server side daemon and driver required to manage the virtualization capabilities of XEN %package client Summary: Client side library and utilities of the libvirt library Group: Applications/System Requires: gettext >= 0.18.1.1-6 Requires: gnutls >= 1.0.25 Requires: netcat-openbsd Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units %description client Shared libraries and client binaries needed to access to the virtualization capabilities of recent versions of Linux (and other OSes). %package utils Summary: Tools to interact with virtualization capabilities Summary(pl.UTF-8): Narzędzia do współpracy z funkcjami wirtualizacyjnymi Group: Applications/System Requires: %{name}-client = %{version}-%{release} Requires: %{name}-daemon = %{version}-%{release} Requires: %{name}-daemon-esx = %{version}-%{release} Requires: %{name}-daemon-hyperv = %{version}-%{release} Requires: %{name}-daemon-libxl = %{version}-%{release} Requires: %{name}-daemon-lxc = %{version}-%{release} Requires: %{name}-daemon-openvz = %{version}-%{release} Requires: %{name}-daemon-phyp = %{version}-%{release} Requires: %{name}-daemon-qemu = %{version}-%{release} Requires: %{name}-daemon-uml = %{version}-%{release} Requires: %{name}-daemon-vbox = %{version}-%{release} Requires: %{name}-daemon-vmware = %{version}-%{release} Requires: %{name}-daemon-xen = %{version}-%{release} %description utils Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux. This package contains tools for the libvirt library. %description utils -l pl.UTF-8 Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji obecnych wersji Linuksa. Ten pakiet zawiera narzędzia do biblioteki libvirt. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 # weird translations %{__rm} po/{my,eu_ES}.{po,gmo} mv po/vi_VN.po po/vi.po mv po/vi_VN.gmo po/vi.gmo %build %{__libtoolize} %{__aclocal} -I gnulib/m4 -I m4 %{__autoconf} %{__autoheader} %{__automake} %configure \ PVCREATE=/sbin/pvcreate \ VGCREATE=/sbin/vgcreate \ LVCREATE=/sbin/lvcreate \ PVREMOVE=/sbin/pvremove \ VGREMOVE=/sbin/vgremove \ LVREMOVE=/sbin/lvremove \ VGCHANGE=/sbin/vgchange \ LVCHANGE=/sbin/lvchange \ VGSCAN=/sbin/vgscan \ PVS=/sbin/pvs \ VGS=/sbin/vgs \ LVS=/sbin/lvs \ TC=/sbin/tc \ BRCTL=/sbin/brctl \ ISCSIADM=/sbin/iscsiadm \ SHOWMOUNT=/usr/sbin/showmount \ MOUNT=/bin/mount \ UMOUNT=/bin/umount \ MKFS=/sbin/mkfs \ SHOWMOUNT=/usr/sbin/showmount \ IPTABLES_PATH=/usr/sbin/iptables \ IP6TABLES_PATH=/usr/sbin/ip6tables \ EBTABLES_PATH=/usr/sbin/ebtables \ ISCSIADM=/sbin/iscsiadm \ DNSMASQ=/usr/sbin/dnsmasq \ RADVD=/usr/sbin/radvd \ UDEVADM=/sbin/udevadm \ MODPROBE=/sbin/modprobe \ SCRUB=/usr/bin/scrub \ OVSVSCTL=/usr/bin/ovs-vsctl \ NUMAD=/usr/bin/numad \ --disable-silent-rules \ --with-html-dir=%{_gtkdocdir} \ --with-html-subdir=%{name} \ --with-init-script=redhat \ --with-storage-lvm \ --with-storage-fs \ --with-storage-iscsi \ --with-storage-scsi \ --with-storage-mpath \ --with-storage-disk \ --with-macvtap \ --with-virtualport \ --with-udev \ --with-libssh2 \ --with-avahi \ --with-audit \ --with-libblkid \ --with-macvtap \ --with-virtualport \ --with-numad \ --with-numactl \ --with-sasl \ --with-yajl \ --with-selinux \ --with-apparmor \ --with-qemu-user=qemu \ --with-qemu-group=qemu \ --without-hal \ --with-driver-modules \ %{__with_without polkit} \ %{__with_without esx} \ %{__with_without hyperv} \ %{__with_without libxl} \ %{__with_without lxc} \ %{__with_without netcf} \ %{__with_without openvz} \ %{__with_without phyp} \ %{__with_without qemu} \ %{__with_without sanlock} \ %{__with_without uml} \ %{__with_without vbox vbox %{_libdir}/VirtualBox} \ %{__with_without vmware} \ %{__with_without xen} \ %{__with_without xenapi} \ --x-libraries=%{_libdir} \ --with-init-script=systemd %{__make} \ AWK=gawk %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ $RPM_BUILD_ROOT%{systemdtmpfilesdir} %{__make} install \ DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/libvirtd install %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf %py_comp $RPM_BUILD_ROOT%{py_sitedir} %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} %py_postclean %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/connection-driver/*.{a,la} %if %{with sanlock} %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt/lock-driver/*.{a,la} %endif %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post daemon %systemd_post libvirtd.service %preun daemon %systemd_preun libvirtd.service %postun daemon %systemd_reload %post client NORESTART=1 %systemd_post libvirt-guests.service %preun client %systemd_preun libvirt-guests.service %postun client %systemd_reload %files -f %{name}.lang %defattr(644,root,root,755) %doc ChangeLog README TODO NEWS %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirt.conf %attr(755,root,root) %{_libdir}/libvirt.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libvirt.so.0 %if %{with qemu} %attr(755,root,root) %{_libdir}/libvirt-qemu.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libvirt-qemu.so.0 %endif %dir %{_libdir}/libvirt %if %{with sanlock} %files lock-sanlock %defattr(644,root,root,755) %attr(755,root,root) %{_sbindir}/virt-sanlock-cleanup %dir %{_libdir}/libvirt/lock-driver %attr(755,root,root) %{_libdir}/libvirt/lock-driver/sanlock.so %{_datadir}/augeas/lenses/libvirt_sanlock.aug %{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug %dir /var/lib/libvirt/sanlock %{_mandir}/man8/virt-sanlock-cleanup.8* %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu-sanlock.conf %endif %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libvirt.so %attr(755,root,root) %{_libdir}/libvirt-qemu.so %{_datadir}/%{name}/api %{_gtkdocdir}/%{name} %{_includedir}/%{name} %{_pkgconfigdir}/%{name}.pc %files static %defattr(644,root,root,755) %{_libdir}/libvirt.a %{_libdir}/libvirt-qemu.a %files -n python-%{name} %defattr(644,root,root,755) %doc %{_docdir}/%{name}-python-%{version} %attr(755,root,root) %{py_sitedir}/libvirtmod.so %attr(755,root,root) %{py_sitedir}/libvirtmod_qemu.so %{py_sitedir}/libvirt.py[co] %{py_sitedir}/libvirt_qemu.py[co] %files daemon %defattr(644,root,root,755) %doc docs/*.xml %dir %{_sysconfdir}/libvirt %dir %attr(700,root,root) %{_sysconfdir}/libvirt/nwfilter %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks %dir %attr(700,root,root) %{_sysconfdir}/libvirt/qemu/networks/autostart %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/libvirtd.conf %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/default.xml %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/nwfilter/*.xml %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/libvirt.conf %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirtd %attr(754,root,root) /etc/rc.d/init.d/libvirtd %{systemdunitdir}/libvirtd.service %config(noreplace) %verify(not md5 mtime size) /etc/sysctl.d/libvirtd %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd %attr(755,root,root) %{_libdir}/libvirt_iohelper %attr(755,root,root) %{_libdir}/libvirt_parthelper %attr(755,root,root) %{_libdir}/virt-aa-helper %attr(755,root,root) %{_sbindir}/libvirtd %{_datadir}/augeas/lenses/libvirtd.aug %{_datadir}/augeas/lenses/tests/test_libvirtd.aug %{?with_polkit:%{_datadir}/polkit-1/actions/org.libvirt.unix.policy} %{_mandir}/man8/libvirtd.8* %dir /var/lib/libvirt %dir /var/lib/libvirt/dnsmasq %attr(711,root,root) %dir /var/lib/libvirt/boot %attr(700,root,root) %dir /var/lib/libvirt/network %attr(711,root,root) %dir /var/lib/libvirt/images %attr(711,root,root) %dir /var/lib/libvirt/filesystems %attr(700,root,root) %dir /var/log/libvirt %attr(711,root,root) %dir /var/cache/libvirt %dir /var/run/libvirt %dir /var/run/libvirt/network %{systemdtmpfilesdir}/%{name}.conf %dir %{_libdir}/libvirt/connection-driver %{?with_netcf:%{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so} %{_libdir}/libvirt/connection-driver/libvirt_driver_network.so %{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so %{_libdir}/libvirt/connection-driver/libvirt_driver_remote.so %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so %{_libdir}/libvirt/connection-driver/libvirt_driver_test.so %if %{with_esx} %files daemon-esx %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_esx.so %endif %if %{with_hyperv} %files daemon-hyperv %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_hyperv.so %endif %if %{with_libxl} %files daemon-libxl %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so %attr(700,root,root) %dir /var/lib/libvirt/libxl %attr(700,root,root) %dir /var/run/libvirt/libxl %attr(700,root,root) %dir /var/log/libvirt/libxl %endif %if %{with_lxc} %files daemon-lxc %defattr(644,root,root,755) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/lxc.conf %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.lxc %attr(700,root,root) %dir /var/lib/libvirt/lxc %attr(700,root,root) %dir /var/run/libvirt/lxc %attr(700,root,root) %dir /var/log/libvirt/lxc %{_datadir}/augeas/lenses/libvirtd_lxc.aug %{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug %attr(755,root,root) %{_libdir}/libvirt_lxc %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so %endif %if %{with_openvz} %files daemon-openvz %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_openvz.so %endif %if %{with_phyp} %files daemon-phyp %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_phyp.so %endif %if %{with qemu} %files daemon-qemu %defattr(644,root,root,755) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt/qemu.conf %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.qemu %attr(750,qemu,qemu) %dir /var/cache/libvirt/qemu %attr(750,qemu,qemu) %dir /var/lib/libvirt/qemu %attr(700,root,root) %dir /var/log/libvirt/qemu %attr(700,root,root) %dir /var/run/libvirt/qemu %{_datadir}/augeas/lenses/libvirtd_qemu.aug %{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug %{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so %endif %if %{with_uml} %files daemon-uml %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_uml.so %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/libvirtd.uml %attr(700,root,root) %dir /var/lib/libvirt/uml %attr(700,root,root) %dir /var/run/libvirt/uml %attr(700,root,root) %dir /var/log/libvirt/uml %endif %if %{with_vbox} %files daemon-vbox %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so %endif %if %{with_vmware} %files daemon-vmware %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_vmware.so %endif %if %{with_xen} %files daemon-xen %defattr(644,root,root,755) %{_libdir}/libvirt/connection-driver/libvirt_driver_xen.so %endif %files client %defattr(644,root,root,755) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-guests %attr(754,root,root) /etc/rc.d/init.d/libvirt-guests %{systemdunitdir}/libvirt-guests.service %attr(755,root,root) %{_bindir}/virsh %attr(755,root,root) %{_bindir}/virt-host-validate %attr(755,root,root) %{_bindir}/virt-xml-validate %attr(755,root,root) %{_bindir}/virt-pki-validate %{_mandir}/man1/virsh.1* %{_mandir}/man1/virt-host-validate.1* %{_mandir}/man1/virt-xml-validate.1* %{_mandir}/man1/virt-pki-validate.1* %dir %{_datadir}/libvirt %{_datadir}/libvirt/cpu_map.xml %dir %{_datadir}/libvirt/schemas %{_datadir}/libvirt/schemas/basictypes.rng %{_datadir}/libvirt/schemas/capability.rng %{_datadir}/libvirt/schemas/domain.rng %{_datadir}/libvirt/schemas/domaincommon.rng %{_datadir}/libvirt/schemas/domainsnapshot.rng %{_datadir}/libvirt/schemas/interface.rng %{_datadir}/libvirt/schemas/network.rng %{_datadir}/libvirt/schemas/networkcommon.rng %{_datadir}/libvirt/schemas/nodedev.rng %{_datadir}/libvirt/schemas/nwfilter.rng %{_datadir}/libvirt/schemas/secret.rng %{_datadir}/libvirt/schemas/storageencryption.rng %{_datadir}/libvirt/schemas/storagepool.rng %{_datadir}/libvirt/schemas/storagevol.rng %files utils %defattr(644,root,root,755)