[packages/OpenColorIO] - added patch for yaml-cpp 0.8, release 2 (Imath and yaml-cpp soname change)

qboosh qboosh at pld-linux.org
Sun Aug 20 21:46:26 CEST 2023


commit 09e1f3a987c8b6e5d8b55dd2e46da5a433c9017b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Aug 20 21:36:28 2023 +0200

    - added patch for yaml-cpp 0.8, release 2 (Imath and yaml-cpp soname change)

 OpenColorIO-yaml-cpp.patch | 20 ++++++++++++++++++++
 OpenColorIO.spec           |  8 +++++---
 2 files changed, 25 insertions(+), 3 deletions(-)
---
diff --git a/OpenColorIO.spec b/OpenColorIO.spec
index 4793951..c7ea019 100644
--- a/OpenColorIO.spec
+++ b/OpenColorIO.spec
@@ -16,13 +16,14 @@ Summary:	Complete color management solution
 Summary(pl.UTF-8):	Kompletny pakiet do zarządzania kolorami
 Name:		OpenColorIO
 Version:	2.2.1
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/imageworks/OpenColorIO/releases
 Source0:	https://github.com/imageworks/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	372d6982cf01818a21a12f9628701a91
 Patch0:		%{name}-java.patch
+Patch1:		%{name}-yaml-cpp.patch
 URL:		http://opencolorio.org/
 BuildRequires:	Imath-devel >= 3.1.2
 BuildRequires:	OpenEXR-devel >= 3.0
@@ -38,7 +39,7 @@ BuildRequires:	python3-pybind11 >= 2.9.2
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.742
 BuildRequires:	tinyxml-devel >= 2.6.1
-BuildRequires:	yaml-cpp-devel >= 0.7.0
+BuildRequires:	yaml-cpp-devel >= 0.8.0
 BuildRequires:	zlib-devel >= 1.2.13
 %if %{with doc}
 BuildRequires:	python3-breathe
@@ -58,7 +59,7 @@ BuildRequires:	glew-devel >= 1.5.1
 Requires:	expat >= 2.4.1
 Requires:	minizip-ng >= 3.0.7
 Requires:	tinyxml >= 2.6.1
-Requires:	yaml-cpp >= 0.7.0
+Requires:	yaml-cpp >= 0.8.0
 Requires:	zlib >= 1.2.13
 %if %{without java}
 Obsoletes:	java-OpenColorIO < 2
@@ -162,6 +163,7 @@ Wiązanie Pythona do biblioteki OpenColorIO.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 # required for cmake to find JNI headers/libs when lib64 is in use
diff --git a/OpenColorIO-yaml-cpp.patch b/OpenColorIO-yaml-cpp.patch
new file mode 100644
index 0000000..d28207d
--- /dev/null
+++ b/OpenColorIO-yaml-cpp.patch
@@ -0,0 +1,20 @@
+--- OpenColorIO-2.2.1/share/cmake/modules/Findyaml-cpp.cmake.orig	2023-01-06 03:05:59.000000000 +0100
++++ OpenColorIO-2.2.1/share/cmake/modules/Findyaml-cpp.cmake	2023-08-20 20:59:15.288585933 +0200
+@@ -43,7 +43,7 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUA
+     endif()
+ 
+     if(yaml-cpp_FOUND)
+-        get_target_property(yaml-cpp_LIBRARY yaml-cpp LOCATION)
++        get_target_property(yaml-cpp_LIBRARY yaml-cpp::yaml-cpp LOCATION)
+     else()
+ 
+         # As yaml-cpp-config.cmake search fails, search an installed library
+@@ -130,7 +130,7 @@ endif()
+ ###############################################################################
+ ### Create target (if previous 'find_package' call hasn't) ###
+ 
+-if(NOT TARGET yaml-cpp)
++if(NOT TARGET yaml-cpp::yaml-cpp)
+     add_library(yaml-cpp UNKNOWN IMPORTED GLOBAL)
+     set(_yaml-cpp_TARGET_CREATE TRUE)
+ endif()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/OpenColorIO.git/commitdiff/09e1f3a987c8b6e5d8b55dd2e46da5a433c9017b



More information about the pld-cvs-commit mailing list