Explicitly tell autotools to use python2

This commit is contained in:
Miro Hrončok 2019-08-01 01:15:25 +02:00
parent 84b0c25e22
commit bbdb77eed4

View File

@ -12,7 +12,7 @@ BuildRequires: gcc swig
BuildRequires: openldap-devel BuildRequires: openldap-devel
BuildRequires: krb5-devel libcap-ng-devel BuildRequires: krb5-devel libcap-ng-devel
BuildRequires: kernel-headers >= 2.6.29 BuildRequires: kernel-headers >= 2.6.29
BuildRequires: python2 python-unversioned-command BuildRequires: python2
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
BuildRequires: systemd BuildRequires: systemd
Requires(post): systemd coreutils Requires(post): systemd coreutils
@ -100,6 +100,9 @@ Management Facility) database, through an IBM Tivoli Directory Server
cp %{SOURCE1} . cp %{SOURCE1} .
%build %build
# autotools expect "python" to be Python 2, but have a configurable PYTHON variable
export PYTHON=%{__python2}
%configure --sbindir=/sbin --libdir=/%{_lib} --with-python=yes \ %configure --sbindir=/sbin --libdir=/%{_lib} --with-python=yes \
--with-python3=yes \ --with-python3=yes \
--enable-gssapi-krb5=yes --with-arm --with-aarch64 \ --enable-gssapi-krb5=yes --with-arm --with-aarch64 \