From af5d9fc11197ce7118c51bf75375e47535559d89 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Sun, 26 Jan 2025 16:15:01 -0600 Subject: [PATCH] Add patch for FTBFS, BZ#2341591. --- yaml-cpp-include.patch | 9 +++++++++ yaml-cpp.spec | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 yaml-cpp-include.patch diff --git a/yaml-cpp-include.patch b/yaml-cpp-include.patch new file mode 100644 index 0000000..b248543 --- /dev/null +++ b/yaml-cpp-include.patch @@ -0,0 +1,9 @@ +Index: yaml-cpp-0.8.0/src/emitterutils.cpp +=================================================================== +--- yaml-cpp-0.8.0.orig/src/emitterutils.cpp ++++ yaml-cpp-0.8.0/src/emitterutils.cpp +@@ -1,3 +1,4 @@ ++#include + #include + #include + #include diff --git a/yaml-cpp.spec b/yaml-cpp.spec index d27e996..c71b4d7 100644 --- a/yaml-cpp.spec +++ b/yaml-cpp.spec @@ -2,12 +2,14 @@ Name: yaml-cpp Version: 0.8.0 -Release: 2%{?dist} +Release: 1%{?dist} License: MIT Summary: A YAML parser and emitter for C++ URL: https://github.com/jbeder/yaml-cpp -Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +Source0: https://github.com/jbeder/yaml-cpp/archive/%{version}/%{name}-%{version}.tar.gz + +Patch0: yaml-cpp-include.patch BuildRequires: cmake BuildRequires: gcc @@ -34,7 +36,7 @@ Requires: %{name}-devel%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} The %{name}-static package contains the static library for %{name}. %prep -%autosetup -n %{name}-%{version} -p1 +%autosetup -p1 %build %cmake -B build_static \