libvirt spec file fix
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=138
This commit is contained in:
parent
a4696e813d
commit
f37ca0feb5
29
libvirt.spec
29
libvirt.spec
@ -148,6 +148,22 @@
|
|||||||
# All supported version of openSUSE/SLE contain audit
|
# All supported version of openSUSE/SLE contain audit
|
||||||
%define with_audit 0%{!?_without_audit:1}
|
%define with_audit 0%{!?_without_audit:1}
|
||||||
|
|
||||||
|
# Disable some drivers when building without libvirt daemon.
|
||||||
|
# The logic is the same as in configure.ac
|
||||||
|
%if ! %{with_libvirtd}
|
||||||
|
%define with_network 0
|
||||||
|
%define with_qemu 0
|
||||||
|
%define with_lxc 0
|
||||||
|
%define with_uml 0
|
||||||
|
%define with_hal 0
|
||||||
|
%define with_udev 0
|
||||||
|
%define with_storage_fs 0
|
||||||
|
%define with_storage_lvm 0
|
||||||
|
%define with_storage_iscsi 0
|
||||||
|
%define with_storage_mpath 0
|
||||||
|
%define with_storage_disk 0
|
||||||
|
%endif
|
||||||
|
|
||||||
# Enable libpcap library
|
# Enable libpcap library
|
||||||
%if %{with_qemu}
|
%if %{with_qemu}
|
||||||
%if 0%{?suse_version} >= 1140
|
%if 0%{?suse_version} >= 1140
|
||||||
@ -167,12 +183,6 @@
|
|||||||
%define with_libnl 1
|
%define with_libnl 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# there's no use compiling the network driver without
|
|
||||||
# the libvirt daemon
|
|
||||||
%if ! %{with_libvirtd}
|
|
||||||
%define with_network 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
||||||
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
@ -182,6 +192,7 @@ BuildRequires: libxslt
|
|||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
BuildRequires: libtasn1-devel
|
||||||
BuildRequires: gnutls-devel
|
BuildRequires: gnutls-devel
|
||||||
BuildRequires: bridge-utils
|
BuildRequires: bridge-utils
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -299,7 +310,7 @@ Requires: virt-utils
|
|||||||
Recommends: bridge-utils
|
Recommends: bridge-utils
|
||||||
# for modprobe of pci devices
|
# for modprobe of pci devices
|
||||||
Requires: module-init-tools
|
Requires: module-init-tools
|
||||||
# for /sbin/ip
|
# for /sbin/ip & /sbin/tc
|
||||||
Requires: iproute
|
Requires: iproute
|
||||||
%endif
|
%endif
|
||||||
%if %{with_network}
|
%if %{with_network}
|
||||||
@ -833,9 +844,11 @@ fi
|
|||||||
%{_datadir}/libvirt/schemas/interface.rng
|
%{_datadir}/libvirt/schemas/interface.rng
|
||||||
%{_datadir}/libvirt/schemas/secret.rng
|
%{_datadir}/libvirt/schemas/secret.rng
|
||||||
%{_datadir}/libvirt/schemas/storageencryption.rng
|
%{_datadir}/libvirt/schemas/storageencryption.rng
|
||||||
%{_datadir}/libvirt/cpu_map.xml
|
|
||||||
%{_datadir}/libvirt/schemas/nwfilter.rng
|
%{_datadir}/libvirt/schemas/nwfilter.rng
|
||||||
%{_datadir}/libvirt/schemas/domainsnapshot.rng
|
%{_datadir}/libvirt/schemas/domainsnapshot.rng
|
||||||
|
%{_datadir}/libvirt/schemas/basictypes.rng
|
||||||
|
%{_datadir}/libvirt/schemas/networkcommon.rng
|
||||||
|
%{_datadir}/libvirt/cpu_map.xml
|
||||||
%if %{with_sasl}
|
%if %{with_sasl}
|
||||||
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user