!32 [sync] PR-31: add remove unlink file in pretrans devel
From: @openeuler-sync-bot Reviewed-by: @yanan-rock Signed-off-by: @yanan-rock
This commit is contained in:
commit
c185d23557
12
json-c.spec
12
json-c.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: json-c
|
Name: json-c
|
||||||
Version: 0.15
|
Version: 0.15
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: JSON implementation in C
|
Summary: JSON implementation in C
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -79,6 +79,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
|
||||||
@ -95,6 +102,9 @@ hardlink -cfv %{buildroot}%{_pkgdocdir}
|
|||||||
%doc %{_pkgdocdir}
|
%doc %{_pkgdocdir}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Aug 30 2022 zhouwenpei <zhouwenpei1@h-partners> - 0.15-3
|
||||||
- delete old so files
|
- delete old so files
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user