diff --git a/imath.spec b/imath.spec index 9c7c133..365bd1c 100644 --- a/imath.spec +++ b/imath.spec @@ -1,5 +1,6 @@ %global srcname Imath %global sover 28 +%global pyver_under %(%{python3} -Esc "import sys; sys.stdout.write('{0.major}_{0.minor}'.format(sys.version_info))") Name: imath Version: 3.0.2 @@ -77,7 +78,7 @@ rm -rf html/.{doctrees,buildinfo} %{_libdir}/libImath-3_0.so.%{sover}* %files -n python3-%{name} -%{_libdir}/libPyImath_Python3_9-3_0.so.%{sover}* +%{_libdir}/libPyImath_Python%{pyver_under}-3_0.so.%{sover}* %{python3_sitearch}/imath.so %{python3_sitearch}/imathnumpy.so @@ -89,7 +90,7 @@ rm -rf html/.{doctrees,buildinfo} %{_libdir}/cmake/Imath/ %{_libdir}/libImath.so %{_libdir}/libImath-3_0.so -%{_libdir}/libPyImath_Python3_9-3_0.so +%{_libdir}/libPyImath_Python%{pyver_under}-3_0.so %changelog