!15 Delete so files of lower versions
Merge pull request !15 from 桐小哥/openEuler-22.03-LTS-Next
This commit is contained in:
commit
7bea43a222
@ -1,6 +1,6 @@
|
||||
Name: jsoncpp
|
||||
Version: 1.9.5
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: JSON C++ library
|
||||
License: Public Domain or MIT
|
||||
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
|
||||
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
|
||||
%make_build -C %{_vpath_builddir} jsoncpp_check
|
||||
@ -90,6 +91,9 @@ cp -a %{_libdir}/libjsoncpp.so.* $RPM_BUILD_ROOT%{_libdir}
|
||||
|
||||
|
||||
%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
|
||||
- copy the .so file of the old version.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user