Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
OpenNebula
>
libvirt
> libvirt.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libvirt.spec of Package libvirt (Revision 20)
Currently displaying revision
20
,
show latest
# # spec file for package libvirt # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # For now, default to a full server + client build %define client_only 0 # Disable all server side drivers if client only build requested %if %{client_only} %define server_drivers 0 %else %define server_drivers 1 %endif # Now set the defaults for all the important features, independent # of any particular OS # First the daemon itself %define with_libvirtd 0%{!?_without_libvirtd:%{server_drivers}} %define with_avahi 0%{!?_without_avahi:%{server_drivers}} # Then the hypervisor drivers that run on local host %define with_xen 0%{!?_without_xen:%{server_drivers}} %define with_qemu 0%{!?_without_qemu:%{server_drivers}} %define with_openvz 0%{!?_without_openvz:%{server_drivers}} %define with_lxc 0%{!?_without_lxc:%{server_drivers}} %define with_vbox 0%{!?_without_vbox:%{server_drivers}} %define with_uml 0%{!?_without_uml:%{server_drivers}} %define with_xenapi 0%{!?_without_xenapi:%{server_drivers}} %define with_libxl 0%{!?_without_libxl:%{server_drivers}} # Then the hypervisor drivers that talk a native remote protocol %define with_phyp 0%{!?_without_phyp:1} %define with_esx 0%{!?_without_esx:1} %define with_vmware 0%{!?_without_vmware:1} %define with_hyperv 0%{!?_without_hyperv:1} # Then the secondary host drivers %define with_network 0%{!?_without_network:%{server_drivers}} %define with_storage_fs 0%{!?_without_storage_fs:%{server_drivers}} %define with_storage_lvm 0%{!?_without_storage_lvm:%{server_drivers}} %define with_storage_iscsi 0%{!?_without_storage_iscsi:%{server_drivers}} %define with_storage_disk 0%{!?_without_storage_disk:%{server_drivers}} %define with_storage_mpath 0%{!?_without_storage_mpath:%{server_drivers}} %define with_numactl 0%{!?_without_numactl:%{server_drivers}} %define with_selinux 0%{!?_without_selinux:%{server_drivers}} %define with_apparmor 0%{!?_without_apparmor:0} # A few optional bits off by default, we enable later %define with_polkit 0%{!?_without_polkit:0} %define with_capng 0%{!?_without_capng:0} %define with_netcf 0%{!?_without_netcf:0} %define with_udev 0%{!?_without_udev:0} %define with_hal 0%{!?_without_hal:0} %define with_yajl 0%{!?_without_yajl:0} %define with_nwfilter 0%{!?_without_nwfilter:0} %define with_libpcap 0%{!?_without_libpcap:0} %define with_macvtap 0%{!?_without_macvtap:0} %define with_libnl 0%{!?_without_libnl:0} %define with_audit 0%{!?_without_audit:0} %define with_dtrace 0%{!?_without_dtrace:0} %define with_cgconfig 0%{!?_without_cgconfig:0} # Non-server/HV driver defaults which are always enabled %define with_python 0%{!?_without_python:1} %define with_sasl 0%{!?_without_sasl:1} # Set the OS / architecture specific special cases # Xen is available only on i386 x86_64 %ifnarch %ix86 x86_64 %define with_xen 0 %define with_libxl 0 %endif # libxenlight driver requires Xen >= 4.1, which is only # available in openSUSE >= 12.1 or SLE >= 11sp2 %if 0%{?suse_version} < 1210 %define with_libxl 0 %endif # numactl only on x86_64 and ia64 %ifnarch x86_64 ia64 %define with_numactl 0 %endif # SLES doesn't contain OpenVZ, VBox, UML, ESX, VMWare, or Citrix XenAPI %if 0%{?sles_version} %define with_openvz 0 %define with_vbox 0 %define with_uml 0 %define with_esx 1 %define with_vmware 1 %define with_hyperv 1 %define with_xenapi 1 %endif # Enable phyp driver for IBM Power systems %ifarch ppc64 %define with_phyp 1 %endif # LXC and selinux are not available on anything < openSUSE 11.1 %if 0%{?suse_version} < 1110 %define with_lxc 0 %define with_selinux 0 %endif # udev is used to manage host devices in 11.1 or newer %if 0%{?suse_version} > 1110 %define with_udev 0%{!?_without_udev:%{server_drivers}} %else %define with_hal 0%{!?_without_hal:%{server_drivers}} %endif # libcapng is used to manage capabilities in 11.3 or newer. # It is also used by lxc and needs to be enabled if lxc is enabled. %if 0%{?suse_version} >= 1130 || %{with_lxc} %define with_capng 0%{!?_without_capng:1} %endif # netcf is used to manage network interfaces in 11.4 or newer %if 0%{?suse_version} >= 1140 %define with_netcf 0%{!?_without_netcf:%{server_drivers}} %endif # Enable yajl library for JSON mode with QEMU in 11.4 or newer %if 0%{?suse_version} >= 1140 %define with_yajl 0%{!?_without_yajl:%{server_drivers}} %endif # Enable libpcap library %if %{with_qemu} %if 0%{?suse_version} >= 1140 %define with_nwfilter 0%{!?_without_nwfilter:%{server_drivers}} %define with_libpcap 0%{!?_without_libpcap:%{server_drivers}} %define with_macvtap 0%{!?_without_macvtap:%{server_drivers}} %endif %endif %if %{with_macvtap} %define with_libnl 1 %endif # there's no use compiling the network driver without # the libvirt daemon %if ! %{with_libvirtd} %define with_network 0 %endif BuildRequires: python-devel BuildRequires: libxml2-devel BuildRequires: xhtml-dtd BuildRequires: libxslt BuildRequires: readline-devel BuildRequires: ncurses-devel BuildRequires: gettext BuildRequires: gnutls-devel BuildRequires: bridge-utils BuildRequires: fdupes BuildRequires: pkg-config BuildRequires: python-xml # Only for directory ownership: BuildRequires: gtk-doc %if %{with_xen} || %{with_libxl} BuildRequires: xen-devel %endif %if %{with_sasl} BuildRequires: cyrus-sasl-devel %endif %if %{with_hal} BuildRequires: hal-devel %endif %if %{with_udev} BuildRequires: libudev-devel >= 145 BuildRequires: libpciaccess0-devel >= 0.10.9 %endif %if %{with_avahi} %if 0%{?suse_version} > 1030 BuildRequires: libavahi-devel %else BuildRequires: avahi-devel %endif %endif %if %{with_selinux} BuildRequires: libselinux-devel %endif %if %{with_apparmor} BuildRequires: libapparmor-devel %endif %if %{with_numactl} BuildRequires: libnuma-devel %endif %if %{with_polkit} %if 0%{?suse_version} > 1110 BuildRequires: polkit >= 0.9 %else BuildRequires: PolicyKit-devel >= 0.6 %endif %endif %if %{with_phyp} BuildRequires: libssh2-devel >= 1.0 Requires: libssh2-1 >= 1.0 %endif %if %{with_yajl} BuildRequires: libyajl-devel %endif %if %{with_macvtap} BuildRequires: libnl-devel %endif %if %{with_esx} BuildRequires: libcurl-devel %endif %if %{with_hyperv} BuildRequires: libwsman-devel %endif %if %{with_capng} BuildRequires: libcap-ng-devel >= 0.5.0 %endif %if %{with_netcf} BuildRequires: netcf-devel >= 0.1.4 %endif %if %{with_network} BuildRequires: dnsmasq >= 2.41 BuildRequires: iptables-devel BuildRequires: radvd %endif %if %{with_nwfilter} BuildRequires: ebtables %endif %if %{with_libpcap} BuildRequires: libpcap-devel %endif %if %{with_libnl} BuildRequires: libnl-devel %endif %if %{with_storage_fs} # For mount/umount in FS driver BuildRequires: util-linux %endif %if %{with_storage_lvm} # For LVM drivers BuildRequires: lvm2 %endif %if %{with_storage_iscsi} # For ISCSI driver BuildRequires: open-iscsi %endif %if %{with_storage_disk} # For disk driver BuildRequires: parted-devel %endif %if %{with_storage_mpath} # For Multipath support BuildRequires: device-mapper-devel %endif Name: libvirt Url: http://libvirt.org/ License: LGPLv2.1+ Group: Development/Libraries/C and C++ AutoReqProv: yes Version: 0.9.13 Release: 1 Summary: A C toolkit to interract with the virtualization capabilities of Linux # The client side, i.e. shared libs and virsh are in a subpackage Requires: %{name}-client = %{version}-%{release} Requires: virt-utils # Used by many of the drivers, so turn it on whenever the # daemon is present %if %{with_libvirtd} Recommends: bridge-utils # for modprobe of pci devices Requires: module-init-tools # for /sbin/ip Requires: iproute %endif %if %{with_network} Recommends: dnsmasq >= 2.41 Recommends: radvd %endif %if %{with_network} || %{with_nwfilter} Recommends: iptables %endif %if %{with_nwfilter} Recommends: ebtables %endif Recommends: logrotate Recommends: nfs-client %if %{with_hal} Requires: hal %endif Requires: /usr/sbin/dmidecode %if %{with_udev} Requires: udev >= 145 %endif %if %{with_polkit} %if 0%{?suse_version} > 1110 Recommends: polkit >= 0.9 %else Recommends: PolicyKit >= 0.6 %endif %endif %if %{with_storage_fs} Recommends: nfs-utils %endif %if %{with_storage_lvm} # For LVM drivers Recommends: lvm2 %endif %if %{with_storage_iscsi} # For ISCSI driver Recommends: open-iscsi %endif %if %{with_storage_disk} # For disk driver Recommends: parted Recommends: device-mapper %endif %if %{with_storage_mpath} # For multipath support Recommends: device-mapper %endif Source0: %{name}-%{version}.tar.bz2 Source1: libvirtd.init # Upstream patches # Need to go upstream Patch100: xen-name-for-devid.patch Patch101: clone-0.9.10.patch Patch102: xen-pv-cdrom.patch # Our patches Patch200: libvirtd-defaults-0.9.12.patch Patch201: use-init-script-redhat-0.9.12.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Libvirt is a C toolkit to interact with the virtualization capabilities of Linux. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurrently on a single hardware system where the basic resources are driven by a Linux instance. The library aims to provide long term stable C API to interact with Linux virtualization technologies. Authors: -------- Daniel Veillard <veillard@redhat.com> Karel Zak <kzak@redhat.com> %package client License: LGPLv2.1+ Summary: Client side library and utilities of the libvirt library Group: Development/Libraries/C and C++ Requires: readline Requires: ncurses # Needed by libvirt-guests init script. Requires: gettext Requires: cyrus-sasl Recommends: cyrus-sasl-digestmd5 # So remote clients can access libvirt over SSH tunnel # (client invokes 'nc' against the UNIX socket on the server) Recommends: netcat-openbsd %description client Libvirt is a C toolkit to interract with the virtualization capabilities of Linux. The libvirt-client package contains shared libraries and client binaries needed to access the virtualization capabilities of recent versions of Linux (and other OSes). Authors: -------- Daniel Veillard <veillard@redhat.com> Karel Zak <kzak@redhat.com> %package devel License: LGPLv2.1+ Summary: A C toolkit to interract with the virtualization capabilities of Linux Group: Development/Libraries/C and C++ Requires: %{name}-client = %{version}-%{release} libxml2-devel Requires: pkg-config %if %{with_xen} || %{with_libxl} Requires: xen-devel %endif %description devel Libvirt is a C toolkit to interract with the virtualization capabilities of Linux. The libvirt-devel package contains headers and libraries needed for developing libvirt applications. Authors: -------- Daniel Veillard <veillard@redhat.com> Karel Zak <kzak@redhat.com> %package doc License: LGPLv2.1+ Summary: A C toolkit to interract with the virtualization capabilities of Linux Group: Development/Libraries/C and C++ Requires: %{name}-client = %{version}-%{release} %description doc Libvirt is a C toolkit to interract with the virtualization capabilities of Linux. The libvirt-doc packages contains documentation for the libvirt API and tools. Authors: -------- Daniel Veillard <veillard@redhat.com> Karel Zak <kzak@redhat.com> %if %{with_python} %package python License: LGPLv2.1+ Summary: A C toolkit to interract with the virtualization capabilities of Linux Group: Development/Libraries/C and C++ Requires: %{name}-client = %{version}-%{release} %py_requires %description python Libvirt is a C toolkit to interract with the virtualization capabilities of Linux. The libvirt-python package provides python bindings for the libvirt C API. Authors: -------- Daniel Veillard <veillard@redhat.com> Karel Zak <kzak@redhat.com> %endif %prep %setup -q %patch100 -p1 %patch101 %patch102 -p1 %patch200 -p1 %patch201 -p1 %build %if ! %{with_xen} %define _without_xen --without-xen %endif %if ! %{with_qemu} %define _without_qemu --without-qemu %endif %if ! %{with_openvz} %define _without_openvz --without-openvz %endif %if ! %{with_lxc} %define _without_lxc --without-lxc %endif %if ! %{with_vbox} %define _without_vbox --without-vbox %endif %if ! %{with_xenapi} %define _without_xenapi --without-xenapi %endif %if ! %{with_uml} %define _without_uml --without-uml %endif %if ! %{with_phyp} %define _without_phyp --without-phyp %endif %if ! %{with_esx} %define _without_esx --without-esx %endif %if ! %{with_vmware} %define _without_vmware --without-vmware %endif %if ! %{with_hyperv} %define _without_hyperv --without-hyperv %endif %if ! %{with_libxl} %define _without_libxl --without-libxl %endif %if ! %{with_libvirtd} %define _without_libvirtd --without-libvirtd %endif %if ! %{with_storage_fs} %define _without_storage_fs --without-storage-fs %endif %if ! %{with_storage_lvm} %define _without_storage_lvm --without-storage-lvm %endif %if ! %{with_storage_iscsi} %define _without_storage_iscsi --without-storage-iscsi %endif %if ! %{with_storage_disk} %define _without_storage_disk --without-storage-disk %endif %if ! %{with_storage_mpath} %define _without_storage_mpath --without-storage-mpath %endif %if ! %{with_numactl} %define _without_numactl --without-numactl %endif %if ! %{with_selinux} %define _without_selinux --without-selinux %endif %if ! %{with_apparmor} %define _without_apparmor --without-apparmor %endif %if ! %{with_capng} %define _without_capng --without-capng %endif %if ! %{with_netcf} %define _without_netcf --without-netcf %endif %if ! %{with_hal} %define _without_hal --without-hal %endif %if ! %{with_udev} %define _without_udev --without-udev %endif %if ! %{with_yajl} %define _without_yajl --without-yajl %endif %if ! %{with_macvtap} %define _without_macvtap --without-macvtap %endif %if ! %{with_polkit} %define _without_polkit --without-polkit %endif %if ! %{with_network} %define _without_network --without-network %endif %if ! %{with_sasl} %define _without_sasl --without-sasl %endif %if ! %{with_python} %define _without_python --without-python %endif %if ! %{with_libpcap} %define _without_libpcap --without-libpcap %endif autoreconf -f -i export CFLAGS="$RPM_OPT_FLAGS" %configure --disable-static --with-pic \ %{?_without_xen} \ %{?_without_qemu} \ %{?_without_openvz} \ %{?_without_lxc} \ %{?_without_vbox} \ %{?_without_xenapi} \ %{?_without_uml} \ %{?_without_phyp} \ %{?_without_esx} \ %{?_without_vmware} \ %{?_without_hyperv} \ %{?_without_libxl} \ %{?_without_libvirtd} \ %{?_without_storage_fs} \ %{?_without_storage_lvm} \ %{?_without_storage_iscsi} \ %{?_without_storage_disk} \ %{?_without_storage_mpath} \ %{?_without_numactl} \ %{?_without_selinux} \ %{?_without_apparmor} \ %{?_without_capng} \ %{?_without_netcf} \ %{?_without_hal} \ %{?_without_udev} \ %{?_without_yajl} \ %{?_without_macvtap} \ %{?_without_polkit} \ %{?_without_network} \ %{?_without_sasl} \ %{?_without_python} \ %{?_without_libpcap} \ --libexecdir=%{_libdir}/%{name} \ --with-remote-pid-file=%{_localstatedir}/run/libvirtd.pid \ --with-init-script=redhat \ ac_cv_path_MODPROBE=/sbin/modprobe \ ac_cv_path_UDEVADM=/sbin/udevadm \ ac_cv_path_SHOWMOUNT=/usr/sbin/showmount make %{?jobs:-j%jobs} DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name} %install %makeinstall DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name} cp -a AUTHORS ChangeLog COPYING NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}/ cd docs ; cp -a *.html $RPM_BUILD_ROOT%{_docdir}/%{name} ; cp -a *.png $RPM_BUILD_ROOT%{_docdir}/%{name} ; cd .. # remove currently unsupported locale(s) rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin %if 0%{?suse_version} < 1130 rm -rf $RPM_BUILD_ROOT/usr/share/locale/vi_VN %endif mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/libvirt rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a %find_lang %{name} %if %{with_network} install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/dnsmasq/ install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/ cp $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml \ $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml # Strip auto-generated UUID - we need it generated per-install sed -i -e "/<uuid>/d" $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml %else rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml %endif %if ! %{with_lxc} rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc %endif %if ! %{with_qemu} rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu %endif %if ! %{with_uml} rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml %endif %if ! %{with_python} rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-python %endif %if ! %{with_libvirtd} rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter %endif ln_dupes() { target="" fdupes -r "$1" | while read file; do if [ -z "$file" ] || [ -z "$target" ]; then target="$file" continue fi ln -sf "${target#.}" "$file" done } ( cd $RPM_BUILD_ROOT ln_dupes .%{_docdir}/%{name} ln_dupes ./usr/share/locale ) # init scripts mkdir -p $RPM_BUILD_ROOT/etc/init.d %if %{with_libvirtd} install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/init.d/libvirtd ln -s /etc/init.d/libvirtd $RPM_BUILD_ROOT%{_sbindir}/rclibvirtd %endif ln -s /etc/init.d/libvirt-guests $RPM_BUILD_ROOT%{_sbindir}/rclibvirt-guests %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %if %{with_libvirtd} %if %{with_network} # Install the default network if one doesn't exist if test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml then UUID=`/usr/bin/uuidgen` sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \ < %{_datadir}/libvirt/networks/default.xml \ > %{_sysconfdir}/libvirt/qemu/networks/default.xml fi %endif %if 0%{?sles_version} %{fillup_and_insserv -y libvirtd} %else %{fillup_only -n libvirtd} %endif %endif %{fillup_only -n libvirt-guests} %preun %if %{with_libvirtd} %stop_on_removal libvirtd %endif %postun /sbin/ldconfig %if %{with_libvirtd} %restart_on_update libvirtd %endif %insserv_cleanup %post client -p /sbin/ldconfig %postun client -p /sbin/ldconfig %if %{with_libvirtd} %files %defattr(-, root, root) %{_sbindir}/libvirtd %dir %{_libdir}/%{name} %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/ %dir %{_sysconfdir}/sysctl.d %config %{_sysconfdir}/sysctl.d/libvirtd %if %{with_network} %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/ %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/ %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/ %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/ %dir %{_datadir}/libvirt/networks/ %{_datadir}/libvirt/networks/default.xml %endif %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/ %{_sysconfdir}/libvirt/nwfilter/*.xml %{_localstatedir}/adm/fillup-templates/sysconfig.libvirtd %config /etc/init.d/libvirtd %{_sbindir}/rclibvirtd %config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd %dir %{_localstatedir}/lib/libvirt/ %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/ %dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/ %dir %attr(0711, root, root) %{_localstatedir}/cache/libvirt/ %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/ %if %{with_polkit} %if 0%{?suse_version} > 1110 %{_datadir}/polkit-1/actions/org.libvirt.unix.policy %else %{_datadir}/PolicyKit/policy/org.libvirt.unix.policy %endif %endif %{_datadir}/augeas %if %{with_qemu} %config(noreplace) %{_sysconfdir}/libvirt/qemu.conf %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu %dir %attr(0750, root, root) %{_localstatedir}/lib/libvirt/qemu/ %dir %attr(0750, root, root) %{_localstatedir}/cache/libvirt/qemu/ %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/ %endif %if %{with_lxc} %config(noreplace) %{_sysconfdir}/libvirt/lxc.conf %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/ %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/ %attr(0755, root, root) %{_libdir}/%{name}/libvirt_lxc %endif %if %{with_uml} %config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/ %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/ %endif %if %{with_libxl} %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/ %dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/ %endif %if %{with_storage_disk} %attr(0755, root, root) %{_libdir}/%{name}/libvirt_parthelper %endif %attr(0755, root, root) %{_libdir}/%{name}/libvirt_iohelper %doc %{_mandir}/man8/libvirtd.8* %endif %files client -f %{name}.lang %defattr(-, root, root) %doc %dir %{_docdir}/%{name} %doc %{_docdir}/%{name}/[CNRT]* %doc %{_docdir}/%{name}/AUTHORS %doc %{_mandir}/man1/virsh.1* %doc %{_mandir}/man1/virt-xml-validate.1* %doc %{_mandir}/man1/virt-pki-validate.1* %doc %{_mandir}/man1/virt-host-validate.1* %{_bindir}/virsh %{_bindir}/virt-xml-validate %{_bindir}/virt-pki-validate %{_bindir}/virt-host-validate %dir %{_libdir}/%{name} %{_libdir}/lib*.so.* %{_localstatedir}/adm/fillup-templates/sysconfig.libvirt-guests %config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf %config /etc/init.d/libvirt-guests %{_sbindir}/rclibvirt-guests %dir %{_datadir}/libvirt/ %dir %{_datadir}/libvirt/schemas/ %{_datadir}/libvirt/schemas/basictypes.rng %{_datadir}/libvirt/schemas/networkcommon.rng %{_datadir}/libvirt/schemas/domain.rng %{_datadir}/libvirt/schemas/network.rng %{_datadir}/libvirt/schemas/storagepool.rng %{_datadir}/libvirt/schemas/storagevol.rng %{_datadir}/libvirt/schemas/nodedev.rng %{_datadir}/libvirt/schemas/capability.rng %{_datadir}/libvirt/schemas/interface.rng %{_datadir}/libvirt/schemas/secret.rng %{_datadir}/libvirt/schemas/storageencryption.rng %{_datadir}/libvirt/cpu_map.xml %{_datadir}/libvirt/schemas/nwfilter.rng %{_datadir}/libvirt/schemas/domainsnapshot.rng %{_datadir}/libvirt/schemas/domaincommon.rng %if %{with_sasl} %config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf %endif %files devel %defattr(-, root, root) %dir %{_includedir}/libvirt %{_includedir}/libvirt/*.h %{_libdir}/*.so %{_libdir}/pkgconfig/libvirt.pc %dir %{_datadir}/libvirt/api/ %{_datadir}/libvirt/api/libvirt-api.xml %{_datadir}/libvirt/api/libvirt-qemu-api.xml %files doc %defattr(-, root, root) %{_datadir}/gtk-doc/html/libvirt %doc %{_docdir}/%{name}/*.png %doc %{_docdir}/%{name}/*.html %doc %{_docdir}/%{name}/*.gif %doc %{_docdir}/%{name}/*.css %doc %{_docdir}/%{name}/html %if %{with_python} %files python %defattr(-, root, root) %doc %{_docdir}/%{name}-python %{py_sitedir}/libvirt.py* %{py_sitedir}/libvirtmod* %{py_sitedir}/libvirt_qemu* %endif %changelog