summaryrefslogtreecommitdiff
path: root/mingw-libvirt.spec.in
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2017-05-08 11:35:17 +0100
committerDaniel P. Berrange <berrange@redhat.com>2017-05-08 17:04:30 +0100
commit42c7b9e5e893cd6b49f1e109418516a38dd10389 (patch)
treea5588c78b1278d9b9325915202c6362ebde63a7c /mingw-libvirt.spec.in
parentd7acab0bfeec5c9ae75db21b3519486e3586250c (diff)
downloadlibvirt-42c7b9e5e893cd6b49f1e109418516a38dd10389.tar.gz
configure: enforce presence of python for build
The API docs extractor, ESX code generator and keycodemapdb tools rely on python. Historically every platform that this present, but with switch to Python3 by default, we're increasingly seeing installs without a /usr/bin/python. This tightens up the check during configure, so it exits immediately if python is missing, rather than leaving an empty $(PYTHON) make variable which leads to more obscure errors later. Also add it as a build dep for Mingw, since Fedora build roots no longer get python2 by default. This was not previously a major problem, since both ESX & API generated files were included in EXTRA_DIST, but the keycodemapdb generated files are not, so we require python all the time now. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'mingw-libvirt.spec.in')
-rw-r--r--mingw-libvirt.spec.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/mingw-libvirt.spec.in b/mingw-libvirt.spec.in
index dec799b40a..302f66396e 100644
--- a/mingw-libvirt.spec.in
+++ b/mingw-libvirt.spec.in
@@ -54,6 +54,7 @@ BuildRequires: mingw64-portablexdr
BuildRequires: pkgconfig
# Need native version for msgfmt
BuildRequires: gettext
+BuildRequires: python
BuildRequires: perl
BuildRequires: perl(Getopt::Long)
%if 0%{?enable_autotools}