diff --git a/openvdb.spec b/openvdb.spec index 75bc654..613ae36 100644 --- a/openvdb.spec +++ b/openvdb.spec @@ -1,6 +1,3 @@ -%global python_version %(%{__python3} -c "import sys ; print(sys.version[:3])") -%{!?python3_sitearch: %global python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - # Set to 1 to enable testsuite. Fails everywhere with GCC 8+. %global with_tests 0 @@ -130,7 +127,7 @@ find %{buildroot} -name '*.a' -delete %{_libdir}/*.so.* %files python3 -%{_libdir}/python%{python_version}/py%{name}.so +%{python3_sitearch}/py%{name}.so %files devel %doc html