add remove unlink file in pretrans devel
(cherry picked from commit 794eb9efb43b602a00e7bea56ba19d77317e09ac)
This commit is contained in:
parent
78bf5bcaba
commit
320db677b3
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