Fix spec bug

This commit is contained in:
Leo Fang 2020-03-18 11:42:52 +08:00
parent 191d643ef4
commit b84f0e6abe

View File

@ -1,6 +1,6 @@
Name: libyaml Name: libyaml
Version: 0.2.2 Version: 0.2.2
Release: 1 Release: 2
Summary: A C library for parsing and emitting YAML Summary: A C library for parsing and emitting YAML
License: MIT License: MIT
URL: http://pyyaml.org/ URL: http://pyyaml.org/
@ -38,6 +38,10 @@ BuildArch: noarch
rm -vf %{buildroot}%{_libdir}/*.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 check
@ -63,5 +67,8 @@ make check
%changelog %changelog
* 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 * Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.2-1
- Package init - Package init