From f8a801796485fad8fd3677455e53372b81fde59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E5=B0=8F=E5=93=A5?= Date: Mon, 10 Jan 2022 06:50:48 +0000 Subject: [PATCH] Delete so files of lower versions --- jsoncpp.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jsoncpp.spec b/jsoncpp.spec index f1048dd..d432321 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. -- Gitee