From e357f5580113590a3b849f015acc3934a40a73a2 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 11 Aug 2024 01:59:59 +0800 Subject: [PATCH] cleanup spec (cherry picked from commit 15cda1ec17e6d1a70e3cd0476630a9b8f9062ffd) --- libyaml.spec | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/libyaml.spec b/libyaml.spec index 0fb101d..979db2a 100644 --- a/libyaml.spec +++ b/libyaml.spec @@ -1,6 +1,6 @@ Name: libyaml Version: 0.2.5 -Release: 6 +Release: 7 Summary: A C library for parsing and emitting YAML License: MIT URL: https://github.com/yaml/libyaml @@ -19,19 +19,13 @@ emitter written in C. %package devel Summary: Development files for LibYAML applications -Requires: libyaml = %{version}-%{release}, pkgconfig +Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use LibYAML. -%package help -Summary: Documents for using LibYAML -BuildArch: noarch - -%description help -%{summary}. - +%package_help %prep %autosetup -n yaml-%{version} -p1 @@ -42,29 +36,18 @@ BuildArch: noarch %install %make_install - -rm -vf %{buildroot}%{_libdir}/*.la - -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 +%delete_la %check -make check - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%make_build check %files -%defattr(-,root,root) %license License %doc ReadMe.md %{_libdir}/%{name}*.so.* %files devel -%defattr(-,root,root) %{_libdir}/%{name}*.so %{_libdir}/pkgconfig/yaml-0.1.pc %{_includedir}/yaml.h @@ -72,8 +55,10 @@ make check %files help %doc doc/html - %changelog +* Sun Aug 11 2024 Funda Wang - 0.2.5-7 +- cleanup spec + * Thu Apr 25 2024 fuanan - 0.2.5-6 - fix CVE-2024-3205 -- Gitee