From 3c03148d38e4936d3707bada41c83f5adea5ee57 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Tue, 8 Jun 2021 07:49:20 -0500 Subject: [PATCH] Rebuilt for Python 3.10 --- imath.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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