diff --git a/json-c.spec b/json-c.spec index ea8d5cbe7507fca88a7e7cda1d3ff7ce97ad130b..2d339676454f51977d1a9ffda4ce8d8ea56802f1 100644 --- a/json-c.spec +++ b/json-c.spec @@ -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 +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 - 0.15-4 +- add remove unlink file in pretrans devel + * Tue Aug 30 2022 zhouwenpei - 0.15-3 - delete old so files