!26 fix upgrade err
From: @t_feng Reviewed-by: @yanan-rock Signed-off-by: @yanan-rock
This commit is contained in:
commit
ee525dbeef
17
json-c.spec
17
json-c.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: json-c
|
Name: json-c
|
||||||
Version: 0.15
|
Version: 0.15
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: JSON implementation in C
|
Summary: JSON implementation in C
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -82,6 +82,13 @@ DESTDIR="%{buildroot}" %__cmake --install "%{_vpath_builddir}"
|
|||||||
mkdir -p %{buildroot}%{_pkgdocdir}
|
mkdir -p %{buildroot}%{_pkgdocdir}
|
||||||
hardlink -cfv %{buildroot}%{_pkgdocdir}
|
hardlink -cfv %{buildroot}%{_pkgdocdir}
|
||||||
|
|
||||||
|
%pretrans devel -p <lua>
|
||||||
|
path = "%{_includedir}/%{name}"
|
||||||
|
st = posix.stat(path)
|
||||||
|
if st and st.type == "link" then
|
||||||
|
os.remove(path)
|
||||||
|
end
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -89,7 +96,7 @@ hardlink -cfv %{buildroot}%{_pkgdocdir}
|
|||||||
%{_libdir}/lib%{name}.so.%{so_ver}*
|
%{_libdir}/lib%{name}.so.%{so_ver}*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/%{name}/
|
%{_includedir}/%{name}
|
||||||
%{_libdir}/cmake/%{name}
|
%{_libdir}/cmake/%{name}
|
||||||
%{_libdir}/lib%{name}.so
|
%{_libdir}/lib%{name}.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
@ -98,6 +105,12 @@ hardlink -cfv %{buildroot}%{_pkgdocdir}
|
|||||||
%doc %{_pkgdocdir}
|
%doc %{_pkgdocdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 24 2022 fengtao <fengtao40@huawei.com> - 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 <cyanrose@yeah.net> - 0.15-4
|
* Fri May 6 2022 wuchaochao <cyanrose@yeah.net> - 0.15-4
|
||||||
- add backport-json-escape-str-avoid-harmless-unsigned-integer-overflow.patch
|
- add backport-json-escape-str-avoid-harmless-unsigned-integer-overflow.patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user