From f688fdb8aed20083f329cfac64029baf1b1c5895 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Sep 17 2019 11:12:07 +0000 Subject: Remove unused macro definitions, use %{python3_sitearch} --- 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