From 90b0bf74804e4b20ce2bad9bd1ed61ff1f0d1e3d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Aug 03 2018 15:08:55 +0000 Subject: macros.python: drop last %__python2 occurrence This is needed so people can do things like: %if %{with python3} %global __python %__python3 %else %global __python %__python2 %else And than just use %__python, %py_build, %py_install, %python_sitelib, ... --- diff --git a/macros.python b/macros.python index 4107d68..70eb148 100644 --- a/macros.python +++ b/macros.python @@ -5,7 +5,7 @@ # the macro %py_build() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ - %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py_shbang_opts}" %{?*} + %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python} %{py_shbang_opts}" %{?*} sleep 1 }