added a patch to fix broken cmake targets [release 0.7.0-2mamba;Tue Aug 23 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 19:59:51 +01:00
parent 2a6a264a7a
commit c950ce50a7
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 4f48727b365962e31451cd91027bd797bc7d2ee7 Mon Sep 17 00:00:00 2001
From: Artturin <Artturin@artturin.com>
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)

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.7.0-2mamba
- added a patch to fix broken cmake targets
* Sun Jul 18 2021 Automatic Build System <autodist@mambasoft.it> 0.7.0-1mamba
- automatic version update by autodist