diff --git a/libzypp-yaml-cpp.patch b/libzypp-yaml-cpp.patch new file mode 100644 index 0000000..4cfaa13 --- /dev/null +++ b/libzypp-yaml-cpp.patch @@ -0,0 +1,15 @@ +Index: libzypp-17.31.1/CMakeLists.txt +=================================================================== +--- libzypp-17.31.1.orig/CMakeLists.txt ++++ libzypp-17.31.1/CMakeLists.txt +@@ -219,6 +219,10 @@ IF ( NOT YAML-CPP_FOUND) + MESSAGE( FATAL_ERROR " yaml-cpp not found" ) + ELSE ( NOT YAML-CPP_FOUND) + INCLUDE_DIRECTORIES(${YAML_CPP_INCLUDE_DIR}) ++ IF ( NOT YAML_CPP_LIBRARIES) ++ # Must have been found by config insted of module, use target instead. ++ SET(YAML_CPP_LIBRARIES "yaml-cpp") ++ ENDIF( NOT YAML_CPP_LIBRARIES) + ENDIF( NOT YAML-CPP_FOUND) + + diff --git a/libzypp.spec b/libzypp.spec index 7319f1d..f006117 100644 --- a/libzypp.spec +++ b/libzypp.spec @@ -25,6 +25,7 @@ Source0: https://github.com/openSUSE/%{name}/archive/%{version}/%{name}-% # Fedora specific patches ## Fix include paths for fcgi headers Patch1001: libzypp-17.23.1-fix-fcgi-header-paths.patch +Patch1002: libzypp-yaml-cpp.patch BuildRequires: %{_bindir}/asciidoctor BuildRequires: %{_bindir}/xsltproc