diff --git a/jsoncpp.spec b/jsoncpp.spec index f1048dd67bf46f166d78c03afe7fd07408935319..d4323214d392dacff0507de4b5b111354020bde2 100644 --- a/jsoncpp.spec +++ b/jsoncpp.spec @@ -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 - 1.9.5-3 +- Delete so files of lower versions + * Wed Jan 05 2022 shangyibin - 1.9.5-2 - copy the .so file of the old version.