diff --git a/json-c.spec b/json-c.spec index b8b37fc94f92b3fb1ecf9fffe38f8007cc4032bf..c85b7b631b4ff78c8c29230d95cf5eea7fc0a5db 100644 --- a/json-c.spec +++ b/json-c.spec @@ -6,7 +6,7 @@ Name: json-c Version: 0.15 -Release: 4 +Release: 5 Summary: JSON implementation in C License: MIT @@ -82,6 +82,13 @@ DESTDIR="%{buildroot}" %__cmake --install "%{_vpath_builddir}" mkdir -p %{buildroot}%{_pkgdocdir} hardlink -cfv %{buildroot}%{_pkgdocdir} +%pretrans devel -p +path = "%{_includedir}/%{name}" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end + %ldconfig_scriptlets %files @@ -89,7 +96,7 @@ hardlink -cfv %{buildroot}%{_pkgdocdir} %{_libdir}/lib%{name}.so.%{so_ver}* %files devel -%{_includedir}/%{name}/ +%{_includedir}/%{name} %{_libdir}/cmake/%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc @@ -98,6 +105,12 @@ hardlink -cfv %{buildroot}%{_pkgdocdir} %doc %{_pkgdocdir} %changelog +* Tue May 24 2022 fengtao - 0.15-5 +- we got upgrade error when upgrade json-c from very low version, + for example json-c-0.11-5. because old version has a softlink: + /usr/include/json-c --> /usr/include/json + and now, softlink has been removed. so, we fix this in pretrans + * Fri May 6 2022 wuchaochao - 0.15-4 - add backport-json-escape-str-avoid-harmless-unsigned-integer-overflow.patch