Delete so files of lower versions

This commit is contained in:
桐小哥 2022-01-10 06:50:48 +00:00 committed by Gitee
parent 5e77c087f8
commit f8a8017964
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: jsoncpp Name: jsoncpp
Version: 1.9.5 Version: 1.9.5
Release: 2 Release: 3
Summary: JSON C++ library Summary: JSON C++ library
License: Public Domain or MIT License: Public Domain or MIT
URL: https://github.com/open-source-parsers/jsoncpp URL: https://github.com/open-source-parsers/jsoncpp
@ -61,7 +61,8 @@ chmod 644 %{buildroot}%{_docdir}/%{name}/html/*.{html,png}
touch %{buildroot}%{_docdir}/%{name}/html touch %{buildroot}%{_docdir}/%{name}/html
hardlink -cfv %{buildroot}%{_docdir}/%{name} hardlink -cfv %{buildroot}%{_docdir}/%{name}
cp -a %{_libdir}/libjsoncpp.so.* $RPM_BUILD_ROOT%{_libdir} # When the .so file name changes during version upgrade, you need to copy the lower version of .so file
# cp -a %{_libdir}/libjsoncpp.so.* $RPM_BUILD_ROOT%{_libdir}
%check %check
%make_build -C %{_vpath_builddir} jsoncpp_check %make_build -C %{_vpath_builddir} jsoncpp_check
@ -90,6 +91,9 @@ cp -a %{_libdir}/libjsoncpp.so.* $RPM_BUILD_ROOT%{_libdir}
%changelog %changelog
* Mon Jan 10 2022 shixuantong <shixuantong@huawei.com> - 1.9.5-3
- Delete so files of lower versions
* Wed Jan 05 2022 shangyibin <shangyibin1@huawei.com> - 1.9.5-2 * Wed Jan 05 2022 shangyibin <shangyibin1@huawei.com> - 1.9.5-2
- copy the .so file of the old version. - copy the .so file of the old version.