[packages/Imath] - up to 3.2.2

baggins baggins at pld-linux.org
Sat Nov 29 10:46:33 CET 2025


commit 3f9563b4b4da3f261ce3bcc0db421d5912c05c80
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Nov 29 12:46:27 2025 +0100

    - up to 3.2.2

 Imath.spec           | 27 ++++++++++++++++-----------
 python-install.patch | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 11 deletions(-)
---
diff --git a/Imath.spec b/Imath.spec
index 511e083..bfcfa5f 100644
--- a/Imath.spec
+++ b/Imath.spec
@@ -1,18 +1,19 @@
 #
 # Conditional build:
-%bcond_without	python2	# CPython 2.x binding
+%bcond_with	python2	# CPython 2.x binding
 %bcond_without	python3	# CPython 3.x binding
 
 Summary:	High dynamic-range (HDR) image file format support libraries
 Summary(pl.UTF-8):	Biblioteki obsługujące format plików obrazu o wysokiej dynamice (HDR)
 Name:		Imath
-Version:	3.1.12
+Version:	3.2.2
 Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/AcademySoftwareFoundation/Imath/releases
 Source0:	https://github.com/AcademySoftwareFoundation/Imath/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	2262c2f1f2915695eb38523e632c31ea
+# Source0-md5:	e29f25ce926ac53d8e0a52197299f61b
+Patch0:		python-install.patch
 URL:		https://openexr.com/
 BuildRequires:	cmake >= 3.12
 BuildRequires:	libstdc++-devel >= 6:5
@@ -31,6 +32,8 @@ BuildRequires:	python3-numpy-devel
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		skip_post_check_so	libPyImath_Python3.*.so.*
+
 %description
 Imath is a basic, light-weight, and efficient C++ representation of 2D
 and 3D vectors and matrices and other simple but useful mathematical
@@ -118,6 +121,7 @@ Pliki nagłówkowe wiązań Pythona do biblioteki Imath.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %if %{with python2}
@@ -172,12 +176,12 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.md CONTRIBUTORS.md GOVERNANCE.md LICENSE.md README.md SECURITY.md
-%attr(755,root,root) %{_libdir}/libImath-3_1.so.*.*.*
-%ghost %{_libdir}/libImath-3_1.so.29
+%{_libdir}/libImath-3_2.so.*.*.*
+%ghost %{_libdir}/libImath-3_2.so.30
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libImath-3_1.so
+%{_libdir}/libImath-3_2.so
 %{_libdir}/libImath.so
 %dir %{_includedir}/Imath
 %{_includedir}/Imath/Imath*.h
@@ -188,8 +192,9 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files -n python-pyimath
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libPyImath_Python2_*-3_1.so.*.*.*
-%ghost %{_libdir}/libPyImath_Python2_*-3_1.so.29
+%{_libdir}/libPyImath_Python2_*-3_2.so.*.*.*
+%ghost %{_libdir}/libPyImath_Python2_*-3_2.so.30
+%{_libdir}/libPyImath.so
 %attr(755,root,root) %{py_sitedir}/imath.so
 %attr(755,root,root) %{py_sitedir}/imathnumpy.so
 
@@ -203,14 +208,14 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-pyimath
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libPyImath_Python3_*-3_1.so.*.*.*
-%ghost %{_libdir}/libPyImath_Python3_*-3_1.so.29
+%{_libdir}/libPyImath_Python3_*-3_2.so.*.*.*
+%ghost %{_libdir}/libPyImath_Python3_*-3_2.so.30
 %attr(755,root,root) %{py3_sitedir}/imath.so
 %attr(755,root,root) %{py3_sitedir}/imathnumpy.so
 
 %files -n python3-pyimath-devel
 %defattr(644,root,root,755)
-%{_libdir}/libPyImath_Python3_*-3_1.so
+%{_libdir}/libPyImath_Python3_*-3_2.so
 %{_includedir}/Imath/PyImath*.h
 %{_pkgconfigdir}/PyImath.pc
 %endif
diff --git a/python-install.patch b/python-install.patch
new file mode 100644
index 0000000..2eaf7f9
--- /dev/null
+++ b/python-install.patch
@@ -0,0 +1,33 @@
+--- Imath-3.2.2/src/python/PyImathNumpy/CMakeLists.txt~	2025-10-07 17:17:20.000000000 +0200
++++ Imath-3.2.2/src/python/PyImathNumpy/CMakeLists.txt	2025-11-29 12:36:16.336655705 +0100
+@@ -57,7 +57,7 @@
+   
+   if (NOT DEFINED PYTHON_INSTALL_DIR)
+ 
+-    set(PYTHON_INSTALL_DIR "lib/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages")
++	  set(PYTHON_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages")
+     message(STATUS "installing ${PYIMATHNUMPY_MODULE} module to ${PYTHON_INSTALL_DIR}")
+ 
+   else()
+--- Imath-3.2.2/src/python/PyImath/CMakeLists.txt~	2025-10-07 17:17:20.000000000 +0200
++++ Imath-3.2.2/src/python/PyImath/CMakeLists.txt	2025-11-29 12:36:48.436655696 +0100
+@@ -213,7 +213,7 @@
+     # which allows an externally-set value to take effect.
+     #
+   
+-    set(PYTHON_INSTALL_DIR "lib/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages")
++    set(PYTHON_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages")
+     message(STATUS "installing ${PYIMATH_MODULE_NAME} module to ${PYTHON_INSTALL_DIR}")
+ 
+   else()
+--- Imath-3.2.2/src/pybind11/PyBindImath/CMakeLists.txt~	2025-10-07 17:17:20.000000000 +0200
++++ Imath-3.2.2/src/pybind11/PyBindImath/CMakeLists.txt	2025-11-29 12:37:28.356655688 +0100
+@@ -128,7 +128,7 @@
+     # which allows an externally-set value to take effect.
+     #
+   
+-    set(PYTHON_INSTALL_DIR "lib/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages")
++    set(PYTHON_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages")
+     message(STATUS "installing ${PYBINDIMATH_MODULE_NAME} to ${PYTHON_INSTALL_DIR}")
+ 
+   else()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Imath.git/commitdiff/3f9563b4b4da3f261ce3bcc0db421d5912c05c80




More information about the pld-cvs-commit mailing list