libyaml/libyaml.spec

86 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:00:09 -04:00
Name: libyaml
2020-07-27 15:55:02 +08:00
Version: 0.2.5
Release: 3
2019-09-30 11:00:09 -04:00
Summary: A C library for parsing and emitting YAML
License: MIT
URL: http://pyyaml.org/
Source0: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
Patch0: fix-heap-buffer-overflow-in-yaml_emitter_emit_flow_m.patch
2019-09-30 11:00:09 -04:00
BuildRequires: gcc
%description
2022-02-23 11:36:25 +08:00
%{summary}.
2019-09-30 11:00:09 -04:00
%package devel
Summary: Development files for LibYAML applications
Requires: libyaml = %{version}-%{release}, pkgconfig
%description devel
%{summary}.
%package help
Summary: Documents for using LibYAML
BuildArch: noarch
%description help
%{summary}.
%prep
%autosetup -n yaml-%{version} -p1
%build
%configure --enable-static=no
%make_build
%install
%make_install
rm -vf %{buildroot}%{_libdir}/*.la
2020-03-18 11:42:52 +08:00
soname=$(readelf -d %{buildroot}%{_libdir}/libyaml.so | awk '$2 == "(SONAME)" {print $NF}' | tr -d '[]')
rm -f %{buildroot}%{_libdir}/libyaml.so
echo "INPUT($soname)" > %{buildroot}%{_libdir}/libyaml.so
2019-09-30 11:00:09 -04:00
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
2020-07-27 15:55:02 +08:00
%license License
%doc ReadMe.md
2019-09-30 11:00:09 -04:00
%{_libdir}/%{name}*.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/yaml-0.1.pc
%{_includedir}/yaml.h
%files help
%doc doc/html
%changelog
* Mon Apr 18 2022 panxiaohe <panxh.life@foxmail.com> - 0.2.5-3
- fix heap buffer overflow in yaml_emitter_emit_flow_mapping_key
2022-02-23 11:36:25 +08:00
* Wed Feb 23 2022 fuanan <fuanan3@h-partners.com> - 0.2.5-2
- fix typo in spec
2020-07-27 15:55:02 +08:00
* Mon Jul 27 2020 Hugel <gengqihu1@huawei.com> - 0.2.5-1
- update to 0.2.5
2020-03-18 11:42:52 +08:00
* Wed Mar 18 2020 Leo Fang <leofang_94@163.com> - 0.2.2-2
- Fix overwrite the soname symlink bug in spec
2019-09-30 11:00:09 -04:00
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.2-1
- Package init