From c950ce50a717ab2d50323cec298bc13e84079194 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:59:51 +0100 Subject: [PATCH] added a patch to fix broken cmake targets [release 0.7.0-2mamba;Tue Aug 23 2022] --- yaml-cpp-0.7.0-fix-broken-cmake-targets.patch | 27 +++++++++++++++++++ yaml-cpp.spec | 7 ++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 yaml-cpp-0.7.0-fix-broken-cmake-targets.patch diff --git a/yaml-cpp-0.7.0-fix-broken-cmake-targets.patch b/yaml-cpp-0.7.0-fix-broken-cmake-targets.patch new file mode 100644 index 0000000..2d37d64 --- /dev/null +++ b/yaml-cpp-0.7.0-fix-broken-cmake-targets.patch @@ -0,0 +1,27 @@ +From 4f48727b365962e31451cd91027bd797bc7d2ee7 Mon Sep 17 00:00:00 2001 +From: Artturin +Date: Tue, 28 Sep 2021 00:11:04 +0300 +Subject: [PATCH] yaml-cpp-config.cmake.in: apply patch to fix #774 + +From https://github.com/jbeder/yaml-cpp/issues/774#issuecomment-909274732 +--- + yaml-cpp-config.cmake.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/yaml-cpp-config.cmake.in b/yaml-cpp-config.cmake.in +index 7b41e3f30..de0981df9 100644 +--- a/yaml-cpp-config.cmake.in ++++ b/yaml-cpp-config.cmake.in +@@ -5,10 +5,10 @@ + + # Compute paths + get_filename_component(YAML_CPP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +-set(YAML_CPP_INCLUDE_DIR "@CONFIG_INCLUDE_DIRS@") + + # Our library dependencies (contains definitions for IMPORTED targets) + include("${YAML_CPP_CMAKE_DIR}/yaml-cpp-targets.cmake") + + # These are IMPORTED targets created by yaml-cpp-targets.cmake +-set(YAML_CPP_LIBRARIES "@EXPORT_TARGETS@") ++get_target_property(YAML_CPP_INCLUDE_DIR yaml-cpp INTERFACE_INCLUDE_DIRECTORIES) ++get_target_property(YAML_CPP_LIBRARIES yaml-cpp IMPORTED_LOCATION_RELEASE) diff --git a/yaml-cpp.spec b/yaml-cpp.spec index 2ea7bec..f43b17e 100644 --- a/yaml-cpp.spec +++ b/yaml-cpp.spec @@ -1,6 +1,6 @@ Name: yaml-cpp Version: 0.7.0 -Release: 1mamba +Release: 2mamba Summary: A YAML parser and emitter in C++ matching the YAML 1.2 spec Group: Development/Tools Vendor: openmamba @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/jbeder/yaml-cpp Source: https://github.com/jbeder/yaml-cpp.git/yaml-cpp-%{version}/yaml-cpp-%{version}.tar.bz2 +Patch0: yaml-cpp-0.7.0-fix-broken-cmake-targets.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -42,6 +43,7 @@ This package contains libraries and header files for developing applications tha %prep %setup -q +%patch0 -p1 -b .fix-broken-cmake-targets %build %cmake -d build \ @@ -80,6 +82,9 @@ This package contains libraries and header files for developing applications tha %{_datadir}/cmake/yaml-cpp/yaml-cpp*.cmake %changelog +* Tue Aug 23 2022 Silvan Calarco 0.7.0-2mamba +- added a patch to fix broken cmake targets + * Sun Jul 18 2021 Automatic Build System 0.7.0-1mamba - automatic version update by autodist