代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/yaml-cpp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: yaml-cpp
Version: 0.7.0
Release: 1
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/%{name}-%{version}.tar.gz
Patch0001: yaml-cpp-cmake.patch
BuildRequires: cmake 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}-%{name}-%{version} -p1
%build
rm -rf build_*
mkdir build_dynamic_lib
mkdir build_static_lib
cd build_dynamic_lib
%cmake -DYAML_BUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF ../
%make_build
cd ../build_static_lib
%cmake -DYAML_BUILD_SHARED_LIBS=OFF -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF ../
%make_build
cd -
%install
cd build_dynamic_lib
%make_install
mv %{buildroot}%{_libdir}/cmake/yaml-cpp %{buildroot}%{_libdir}/cmake/yaml-cpp-dynamic
mv %{buildroot}%{_libdir}/pkgconfig/yaml-cpp.pc %{buildroot}%{_libdir}/pkgconfig/yaml-cpp-dynamic.pc
cd ../build_static_lib
%make_install
mv %{buildroot}%{_libdir}/cmake/yaml-cpp %{buildroot}%{_libdir}/cmake/yaml-cpp-static
mv %{buildroot}%{_libdir}/pkgconfig/yaml-cpp.pc %{buildroot}%{_libdir}/pkgconfig/yaml-cpp-static.pc
cd -
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%license LICENSE
%doc README.md
%{_libdir}/*.so.*
%files devel
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/yaml-cpp/
%{_libdir}/cmake/
%{_libdir}/pkgconfig/
%changelog
* 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。