File remove-rpath.patch of Package python-OpenEXR

diff -rubN openexr-3.4.5/cmake/OpenEXRSetup.cmake openexr-3.4.5-patched/cmake/OpenEXRSetup.cmake
--- openexr-3.4.5/cmake/OpenEXRSetup.cmake	2022-11-09 13:37:21.000000000 +0100
+++ openexr-3.4.5-patched/cmake/OpenEXRSetup.cmake	2026-03-01 16:39:58.310680882 +0100
@@ -118,37 +118,6 @@
 # would use -lOpenEXR_static (or target_link_libraries(xxx OpenEXR::OpenEXR_static))
 set(OPENEXR_STATIC_LIB_SUFFIX "_static" CACHE STRING "When building both static and shared, name to append to static library (in addition to normal suffix)")
 
-# rpath related setup
-# make sure we force an rpath to the rpath we're compiling
-set(CMAKE_SKIP_BUILD_RPATH FALSE)
-set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
-# adds the automatically determined parts of the rpath
-# which point to directories outside the build tree to the install RPATH
-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
-if(APPLE)
-  set(CMAKE_MACOSX_RPATH ON)
-endif()
-# if the user sets an install rpath
-# then just use that, or otherwise set one for them
-if(NOT CMAKE_INSTALL_RPATH)
-  list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
-  if("${isSystemDir}" STREQUAL "-1")
-    if("${CMAKE_SYSTEM}" MATCHES "Linux")
-      get_filename_component(tmpSysPath "${CMAKE_INSTALL_FULL_LIBDIR}" NAME)
-      if(NOT tmpSysPath)
-        set(tmpSysPath "lib")
-      endif()
-      set(CMAKE_INSTALL_RPATH "\\\$ORIGIN/../${tmpSysPath};${CMAKE_INSTALL_FULL_LIBDIR}")
-      set(tmpSysPath)
-	elseif(APPLE)
-      set(CMAKE_INSTALL_RPATH "@loader_path/../lib;@executable_path/../lib;${CMAKE_INSTALL_FULL_LIBDIR}")
-    else()
-      set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
-    endif()
-  endif()
-  set(isSystemDir)
-endif()
-
 ########################
 
 # set a default build type if not set
openSUSE Build Service is sponsored by