]> git.pld-linux.org Git - packages/OpenColorIO.git/commitdiff
- added patch for yaml-cpp 0.8, release 2 (Imath and yaml-cpp soname change) auto/th/OpenColorIO-2.2.1-2
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Aug 2023 19:36:28 +0000 (21:36 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 20 Aug 2023 19:36:37 +0000 (21:36 +0200)
OpenColorIO-yaml-cpp.patch [new file with mode: 0644]
OpenColorIO.spec

diff --git a/OpenColorIO-yaml-cpp.patch b/OpenColorIO-yaml-cpp.patch
new file mode 100644 (file)
index 0000000..d28207d
--- /dev/null
@@ -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()
index 4793951a79ba4c113a3a3395b0d3225dc4d96598..c7ea0191f2e09aa83fa365865d60b277f4f3c1f9 100644 (file)
@@ -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
This page took 0.188781 seconds and 4 git commands to generate.