From 0f5a14fa20d70679128bb2f3456979b91715497e Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Dec 14 2016 10:48:29 +0000 Subject: Fix python3 subpackage so it really uses python3 (RHBZ#1404631). --- diff --git a/nbdkit.spec b/nbdkit.spec index ad402c2..7f587a6 100644 --- a/nbdkit.spec +++ b/nbdkit.spec @@ -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 - 1.1.12-4 +- Fix python3 subpackage so it really uses python3 (RHBZ#1404631). + * Sat Nov 05 2016 Richard W.M. Jones - 1.1.12-3 - Rebuild for OCaml 4.04.0.