blob: a61c9c5c6d39e13dac17f252a83702b0a0ea7f8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
Name: libyaml
Version: 0.2.5
Release: 7
Summary: A C library for parsing and emitting YAML
License: MIT
URL: https://github.com/yaml/libyaml
Source0: https://github.com/yaml/libyaml/releases/download/%{version}/yaml-%{version}.tar.gz
Patch0: fix-heap-buffer-overflow-in-yaml_emitter_emit_flow_m.patch
Patch1: backport-Improve-CMake-build-system.patch
Patch2: backport-CVE-2024-3205-Fix-emitter-states-handling-when-write_indicator-fails.patch
BuildRequires: gcc cmake
%description
YAML is a data serialization format designed for human readability and
interaction with scripting languages. LibYAML is a YAML parser and
emitter written in C.
%package devel
Summary: Development files for LibYAML applications
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use LibYAML.
%package_help
%prep
%autosetup -n yaml-%{version} -p1
%build
%cmake -DBUILD_SHARED_LIBS=ON
%cmake_build
%install
%cmake_install
%check
%ctest
%files
%license License
%doc ReadMe.md
%{_libdir}/%{name}*.so.*
%files devel
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/yaml-0.1.pc
%{_includedir}/yaml.h
%files help
%doc doc/html
%changelog
* Sun Aug 11 2024 Funda Wang <fundawang@yeah.net> - 0.2.5-7
- cleanup spec
- build with cmake
* Thu Apr 25 2024 fuanan <fuanan3@h-partners.com> - 0.2.5-6
- fix CVE-2024-3205
* Sat May 27 2023 fuanan <fuanan3@h-partners.com> - 0.2.5-5
- Support cmake build system
- Modify URL and Source0
* Fri Nov 18 2022 chenziyang <chenziyang4@huawei.com> - 0.2.5-4
- Fix heap buffer overflow in yaml_emitter_emit_flow_sequence_item
* Mon Apr 18 2022 panxiaohe <panxh.life@foxmail.com> - 0.2.5-3
- fix heap buffer overflow in yaml_emitter_emit_flow_mapping_key
* Wed Feb 23 2022 fuanan <fuanan3@h-partners.com> - 0.2.5-2
- fix typo in spec
* Mon Jul 27 2020 Hugel <gengqihu1@huawei.com> - 0.2.5-1
- update to 0.2.5
* Wed Mar 18 2020 Leo Fang <leofang_94@163.com> - 0.2.2-2
- Fix overwrite the soname symlink bug in spec
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.2-1
- Package init
|