Fix python3 subpackage so it really uses python3 (RHBZ#1404631).

This commit is contained in:
Richard W.M. Jones 2016-12-14 10:48:29 +00:00
parent 55008d7e3b
commit 0f5a14fa20

View File

@ -6,7 +6,7 @@
Name: nbdkit
Version: 1.1.12
Release: 3%{?dist}
Release: 4%{?dist}
Summary: NBD server
License: BSD
@ -299,9 +299,13 @@ mv "$copy" python3
make %{?_smp_mflags}
pushd python3
PYTHON=/usr/bin/python3 \
export PYTHON=%{_bindir}/python3
%configure --disable-static --disable-perl --disable-ocaml --disable-ruby
# Verify that it picked the correct version of Python
# to avoid RHBZ#1404631 happening again silently.
grep '^PYTHON_VERSION = 3' Makefile
make %{?_smp_mflags}
unset PYTHON
popd
@ -476,6 +480,9 @@ popd
%changelog
* Wed Dec 14 2016 Richard W.M. Jones <rjones@redhat.com> - 1.1.12-4
- Fix python3 subpackage so it really uses python3 (RHBZ#1404631).
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 1.1.12-3
- Rebuild for OCaml 4.04.0.