fix upgrade error
This commit is contained in:
parent
f5ab3ee920
commit
db0ed70fea
17
json-c.spec
17
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 <lua>
|
||||
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 <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
|
||||
- add backport-json-escape-str-avoid-harmless-unsigned-integer-overflow.patch
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user