From 1f532ef99c5ad90cc6008427792e905df55d6ed7 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Sep 17 2019 11:16:01 +0000 Subject: Make PYTHON_VERSION work with Python 3.10 See https://bugzilla.redhat.com/show_bug.cgi?id=1745601 --- diff --git a/blender.spec b/blender.spec index dcaf088..8066425 100644 --- a/blender.spec +++ b/blender.spec @@ -175,7 +175,7 @@ pushd cmake-make -DBOOST_ROOT=%{_prefix} \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_SKIP_RPATH=ON \ - -DPYTHON_VERSION=$(%{__python3} -c "import sys ; print(sys.version[:3])") \ + -DPYTHON_VERSION=%{python3_version} \ -DOpenGL_GL_PREFERENCE=GLVND \ -DWITH_ALEMBIC=ON \ -DWITH_BUILDINFO=ON \