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 \