mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
spec: mingw cleanups
* libvirt.spec.in (%configure): Drop unused %{one} macro. * mingw32-libvirt.spec.in (%{rhel}): Compile ESX but not HyperV on mingw build for RHEL. (%build): Make configure honor spec conditionals. Reorder to match libvirt.spec. * autobuild.sh (mingw): Update list to match. Suggested by Daniel P. Berrange.
This commit is contained in:
parent
f65eda365a
commit
df92bab4a8
16
autobuild.sh
16
autobuild.sh
@ -71,21 +71,23 @@ if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then
|
|||||||
--host=i686-pc-mingw32 \
|
--host=i686-pc-mingw32 \
|
||||||
--prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \
|
--prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \
|
||||||
--enable-compile-warnings=error \
|
--enable-compile-warnings=error \
|
||||||
|
--without-xen \
|
||||||
|
--without-qemu \
|
||||||
|
--without-openvz \
|
||||||
|
--without-lxc \
|
||||||
|
--without-vbox \
|
||||||
|
--without-xenapi \
|
||||||
|
--without-uml \
|
||||||
--without-sasl \
|
--without-sasl \
|
||||||
--without-avahi \
|
--without-avahi \
|
||||||
--without-polkit \
|
--without-polkit \
|
||||||
--without-python \
|
--without-python \
|
||||||
--without-xen \
|
--without-libvirtd \
|
||||||
--without-qemu \
|
|
||||||
--without-lxc \
|
|
||||||
--without-uml \
|
|
||||||
--without-vbox \
|
|
||||||
--without-openvz \
|
|
||||||
--without-phyp \
|
--without-phyp \
|
||||||
|
--without-hyperv \
|
||||||
--without-netcf \
|
--without-netcf \
|
||||||
--without-audit \
|
--without-audit \
|
||||||
--without-dtrace \
|
--without-dtrace \
|
||||||
--without-libvirtd
|
|
||||||
|
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
%define with_libxl 0%{!?_without_libxl:%{server_drivers}}
|
%define with_libxl 0%{!?_without_libxl:%{server_drivers}}
|
||||||
%define with_vmware 0%{!?_without_vmware:%{server_drivers}}
|
%define with_vmware 0%{!?_without_vmware:%{server_drivers}}
|
||||||
|
|
||||||
# Then the hypervisor drivers that talk a native remote protocol
|
# Then the hypervisor drivers that talk via a native remote protocol
|
||||||
%define with_phyp 0%{!?_without_phyp:1}
|
%define with_phyp 0%{!?_without_phyp:1}
|
||||||
%define with_esx 0%{!?_without_esx:1}
|
%define with_esx 0%{!?_without_esx:1}
|
||||||
%define with_hyperv 0%{!?_without_hyperv:1}
|
%define with_hyperv 0%{!?_without_hyperv:1}
|
||||||
@ -711,7 +711,6 @@ of recent versions of Linux (and other OSes).
|
|||||||
%{?_without_python} \
|
%{?_without_python} \
|
||||||
%{?_without_libvirtd} \
|
%{?_without_libvirtd} \
|
||||||
%{?_without_uml} \
|
%{?_without_uml} \
|
||||||
%{?_without_one} \
|
|
||||||
%{?_without_phyp} \
|
%{?_without_phyp} \
|
||||||
%{?_without_esx} \
|
%{?_without_esx} \
|
||||||
%{?_without_hyperv} \
|
%{?_without_hyperv} \
|
||||||
|
@ -5,6 +5,21 @@
|
|||||||
%define __find_provides %{_mingw32_findprovides}
|
%define __find_provides %{_mingw32_findprovides}
|
||||||
%define __debug_install_post %{_mingw32_debug_install_post}
|
%define __debug_install_post %{_mingw32_debug_install_post}
|
||||||
|
|
||||||
|
# The mingw build is client only. Set up defaults for hypervisor drivers
|
||||||
|
# that talk via a native remote protocol, and for which prereq mingw
|
||||||
|
# libraries exist.
|
||||||
|
%define with_phyp 0%{!?_without_phyp:1}
|
||||||
|
%define with_esx 0%{!?_without_esx:1}
|
||||||
|
%define with_hyperv 0%{!?_without_hyperv:0} # missing libwsman
|
||||||
|
%define with_xenapi 0%{!?_without_xenapi:1}
|
||||||
|
|
||||||
|
# RHEL ships ESX but not PowerHypervisor, HyperV, or libxenserver (xenapi)
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%define with_phyp 0
|
||||||
|
%define with_xenapi 0
|
||||||
|
%define with_hyperv 0
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: mingw32-libvirt
|
Name: mingw32-libvirt
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: 3%{?dist}%{?extra_release}
|
Release: 3%{?dist}%{?extra_release}
|
||||||
@ -29,6 +44,13 @@ BuildRequires: pkgconfig
|
|||||||
# Need native version for msgfmt
|
# Need native version for msgfmt
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
|
||||||
|
%if %{with_phyp}
|
||||||
|
BuildRequires: mingw32-libssh2
|
||||||
|
%endif
|
||||||
|
%if %{with_esx}
|
||||||
|
BuildRequires: mingw32-curl
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%{?_mingw32_debug_package}
|
%{?_mingw32_debug_package}
|
||||||
@ -42,23 +64,43 @@ MinGW Windows libvirt virtualization library.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if ! %{with_phyp}
|
||||||
|
%define _without_phyp --without-phyp
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with_esx}
|
||||||
|
%define _without_esx --without-esx
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with_hyperv}
|
||||||
|
%define _without_hyperv --without-hyperv
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with_xenapi}
|
||||||
|
%define _without_xenapi --without-xenapi
|
||||||
|
%endif
|
||||||
|
|
||||||
# XXX enable SASL in future
|
# XXX enable SASL in future
|
||||||
%{_mingw32_configure} \
|
%{_mingw32_configure} \
|
||||||
|
--without-xen \
|
||||||
|
--without-qemu \
|
||||||
|
--without-openvz \
|
||||||
|
--without-lxc \
|
||||||
|
--without-vbox \
|
||||||
|
%{?_without_xenapi} \
|
||||||
--without-sasl \
|
--without-sasl \
|
||||||
--without-avahi \
|
--without-avahi \
|
||||||
--without-polkit \
|
--without-polkit \
|
||||||
--without-python \
|
--without-python \
|
||||||
--without-xen \
|
--without-libvirtd \
|
||||||
--without-qemu \
|
|
||||||
--without-lxc \
|
|
||||||
--without-uml \
|
--without-uml \
|
||||||
--without-vbox \
|
%{?_without_phyp} \
|
||||||
--without-openvz \
|
%{?_without_esx} \
|
||||||
--without-phyp \
|
%{?_without_hyperv} \
|
||||||
|
--without-vmware \
|
||||||
--without-netcf \
|
--without-netcf \
|
||||||
--without-audit \
|
--without-audit \
|
||||||
--without-dtrace \
|
--without-dtrace
|
||||||
--without-libvirtd
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user