add remove unlink file in pretrans devel

(cherry picked from commit 794eb9efb43b602a00e7bea56ba19d77317e09ac)
This commit is contained in:
renmingshuai 2022-09-03 15:20:41 +08:00 committed by openeuler-sync-bot
parent 78bf5bcaba
commit 320db677b3

View File

@ -6,7 +6,7 @@
Name: json-c
Version: 0.15
Release: 3
Release: 4
Summary: JSON implementation in C
License: MIT
@ -79,6 +79,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
@ -95,6 +102,9 @@ hardlink -cfv %{buildroot}%{_pkgdocdir}
%doc %{_pkgdocdir}
%changelog
* Sat Sep 3 2022 zhangrui <zhangrui182@huawei.com> - 0.15-4
- add remove unlink file in pretrans devel
* Tue Aug 30 2022 zhouwenpei <zhouwenpei1@h-partners> - 0.15-3
- delete old so files