Open
fix build with system openjph #191
Funda WangAdd on 4 days ago
fix build with system openjph #191
Open
Funda WangAdd on 4 days ago
Total: 2 files changed+18-1
@@ -3,12 +3,13 @@
3Name: OpenEXR3Name: OpenEXR
4Summary: A high dynamic-range (HDR) image file format for use in computer imaging applications4Summary: A high dynamic-range (HDR) image file format for use in computer imaging applications
5Version: 3.5.35Version: 3.5.3
6-Release: 16+Release: 2
7License: BSD-3-Clause7License: BSD-3-Clause
8URL: https://www.openexr.com/8URL: https://www.openexr.com/
9Source0: https://github.com/AcademySoftwareFoundation/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz9Source0: https://github.com/AcademySoftwareFoundation/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz
10# for test images10# for test images
11Source1: https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz11Source1: https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz
12+Patch0: openexr-Fix-building-with-system-OpenJPH.patch
12BuildRequires: cmake >= 3.1413BuildRequires: cmake >= 3.14
13BuildRequires: gcc gcc-c++14BuildRequires: gcc gcc-c++
14BuildRequires: python315BuildRequires: python3
@@ -79,6 +80,9 @@ cp -fr openexr-images-1.0/* %{__cmake_builddir}/src/test/bin/
79%{_libdir}/pkgconfig/OpenEXR.pc80%{_libdir}/pkgconfig/OpenEXR.pc
80 81 
81%changelog82%changelog
83+* Tue Nov 03 2026 Funda Wang <fundawang@yeah.net> - 3.5.3-2
84+- fix build with system openjph
85+ 
82* Tue Nov 03 2026 Funda Wang <fundawang@yeah.net> - 3.5.3-186* Tue Nov 03 2026 Funda Wang <fundawang@yeah.net> - 3.5.3-1
83- update to 3.5.387- update to 3.5.3
84 88 
@@ -0,0 +1,13 @@
1+diff --git a/cmake/OpenEXRSetup.cmake b/cmake/OpenEXRSetup.cmake
2+index 9d7ee1e..a02de4e 100644
3+--- a/cmake/OpenEXRSetup.cmake
4++++ b/cmake/OpenEXRSetup.cmake
5+@@ -272,7 +272,7 @@ set(OPENEXR_USE_INTERNAL_OPENJPH 0 CACHE INTERNAL
6+ "Whether OpenEXR bundles vendored OpenJPH into OpenEXRCore (0 or 1)")
7+
8+ if (NOT OPENEXR_FORCE_INTERNAL_OPENJPH)
9+- find_package(openjph 0.32.0 CONFIG QUIET)
10++ find_package(openjph CONFIG QUIET)
11+ if(openjph_FOUND)
12+ message(STATUS "Using OpenJPH ${openjph_VERSION} from ${openjph_DIR}")
13+ set(EXR_OPENJPH_LIB openjph)