make sure to use python2 in specfile
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 26 Feb 2020 15:48:10 +0000 (16:48 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 26 Feb 2020 15:48:10 +0000 (16:48 +0100)
sfa.spec

index 41318d3..44dfc47 100644 (file)
--- a/sfa.spec
+++ b/sfa.spec
@@ -3,8 +3,8 @@
 %define taglevel 2
 
 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
-%global python_sitearch        %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%global python_sitearch        %( python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" )
+%{!?python_sitelib: %define python_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name: %{name}
 Version: %{version}