!49 [sync] PR-47: Cleanup spec
From: @openeuler-sync-bot Reviewed-by: @dillon_chen Signed-off-by: @dillon_chen
This commit is contained in:
commit
2ea62abe5c
31
libyaml.spec
31
libyaml.spec
@ -1,6 +1,6 @@
|
|||||||
Name: libyaml
|
Name: libyaml
|
||||||
Version: 0.2.5
|
Version: 0.2.5
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A C library for parsing and emitting YAML
|
Summary: A C library for parsing and emitting YAML
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/yaml/libyaml
|
URL: https://github.com/yaml/libyaml
|
||||||
@ -19,19 +19,13 @@ emitter written in C.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for LibYAML applications
|
Summary: Development files for LibYAML applications
|
||||||
Requires: libyaml = %{version}-%{release}, pkgconfig
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use LibYAML.
|
developing applications that use LibYAML.
|
||||||
|
|
||||||
%package help
|
%package_help
|
||||||
Summary: Documents for using LibYAML
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description help
|
|
||||||
%{summary}.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n yaml-%{version} -p1
|
%autosetup -n yaml-%{version} -p1
|
||||||
@ -42,29 +36,18 @@ BuildArch: noarch
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
%delete_la
|
||||||
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
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
%make_build check
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%license License
|
%license License
|
||||||
%doc ReadMe.md
|
%doc ReadMe.md
|
||||||
%{_libdir}/%{name}*.so.*
|
%{_libdir}/%{name}*.so.*
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/%{name}*.so
|
%{_libdir}/%{name}*.so
|
||||||
%{_libdir}/pkgconfig/yaml-0.1.pc
|
%{_libdir}/pkgconfig/yaml-0.1.pc
|
||||||
%{_includedir}/yaml.h
|
%{_includedir}/yaml.h
|
||||||
@ -72,8 +55,10 @@ make check
|
|||||||
%files help
|
%files help
|
||||||
%doc doc/html
|
%doc doc/html
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Aug 11 2024 Funda Wang <fundawang@yeah.net> - 0.2.5-7
|
||||||
|
- cleanup spec
|
||||||
|
|
||||||
* Thu Apr 25 2024 fuanan <fuanan3@h-partners.com> - 0.2.5-6
|
* Thu Apr 25 2024 fuanan <fuanan3@h-partners.com> - 0.2.5-6
|
||||||
- fix CVE-2024-3205
|
- fix CVE-2024-3205
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user