代码拉取完成,页面将自动刷新
Name: yaml-cpp
Version: 0.8.0
Release: 4
Summary: A YAML parser and emitter in C++.
License: MIT
URL: https://github.com/jbeder/yaml-cpp
Source0: https://github.com/jbeder/yaml-cpp/archive/%{version}/%{name}-%{version}.tar.gz
Patch6001: backport-Specify-CMake-policy-range-to-avoid-deprecation-warning.patch
Patch6002: backport-fix-parse-files-with-r-symbols-as-line-ending-correctly.patch
Patch6003: backport-Fix-missing-token-enum-name.patch
Patch6004: backport-Fix-reference-types-in-iterators.patch
Patch6005: backport-remove-build-debug-messages.patch
BuildRequires: cmake >= 3.4 gcc gcc-c++
%description
yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.
%package devel
Summary: Development files for yaml-cpp
Requires: yaml-cpp = %{version}-%{release} boost-devel pkgconfig
Provides: yaml-cpp-static = %{version}-%{release}
Obsoletes: yaml-cpp-static < %{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use yaml-cpp.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%define _vpath_builddir build_static
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DYAML_CPP_BUILD_TOOLS:BOOL=OFF \
-DYAML_CPP_FORMAT_SOURCE:BOOL=OFF \
-DYAML_CPP_INSTALL:BOOL=ON \
-DYAML_BUILD_SHARED_LIBS:BOOL=OFF \
-DYAML_CPP_BUILD_TESTS:BOOL=OFF
%cmake_build
%define _vpath_builddir build_shared
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DYAML_CPP_BUILD_TOOLS:BOOL=OFF \
-DYAML_CPP_FORMAT_SOURCE:BOOL=OFF \
-DYAML_CPP_INSTALL:BOOL=ON \
-DYAML_BUILD_SHARED_LIBS:BOOL=ON \
-DYAML_CPP_BUILD_TESTS:BOOL=OFF
%cmake_build
%install
%define _vpath_builddir build_static
%cmake_install
# Move files so they don't get trampled
mv %{buildroot}%{_libdir}/cmake/%{name} \
%{buildroot}%{_libdir}/cmake/%{name}-static
mv %{buildroot}%{_libdir}/pkgconfig/%{name}.pc \
%{buildroot}%{_libdir}/pkgconfig/%{name}-static.pc
%define _vpath_builddir build_shared
%cmake_install
%files
%license LICENSE
%doc README.md
%{_libdir}/*.so.*
%files devel
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/yaml-cpp
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/*.pc
%changelog
* Sun Oct 12 2025 Funda Wang <fundawang@yeah.net> - 0.8.0-4
- fix build with ninja
* Mon Jul 28 2025 liuzhilin <liuzhilin@kylinos.cn> - 0.8.0-3
- fix: parse files with '\r' symbols as line ending correctly
- fix: missing token enum name
- Fix reference types in iterators
- Remove build debug messages
* Tue Mar 04 2025 Funda Wang <fundawang@yeah.net> - 0.8.0-2
- add upstream patch to build with cmake 4.0
* Mon Sep 30 2024 Ge Wang <wang__ge@126.com> - 0.8.0-1
- Update to version 0.8.0
* Tue Sep 05 2023 yaoxin <yao_xin001@hoperun.com> - 0.7.0-2
- Fix cmake error of referencing yaml-cpp-devel and remove unused patch
* Thu Jul 06 2023 yaoxin <yao_xin001@hoperun.com> - 0.7.0-1
- Update to 0.7.0
- Abi change: libyaml-cpp.so.0.6.3 -> libyaml-cpp.so.0.7.0
* Mon Jan 6 2020 Senlin Xia<xiasenlin1@huawei.com> - 0.6.3-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。