123 Star 0 Fork 16

src-openEuler/yaml-cpp
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
yaml-cpp.spec 3.12 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2025-10-12 19:18 +08:00 . fix build with ninja
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/yaml-cpp.git
git@gitee.com:src-openeuler/yaml-cpp.git
src-openeuler
yaml-cpp
yaml-cpp
master

搜索帮助