diff --git a/cscope.spec b/cscope.spec index 1966e0a519a4b632e4a29794f5a2336e9c5f8b4a..1e44244682c7df2600891e94617faade3d2fe241 100644 --- a/cscope.spec +++ b/cscope.spec @@ -1,7 +1,7 @@ Name: cscope Summary: a developer's tool for browsing source code Version: 15.9 -Release: 6 +Release: 7 Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz URL: http://cscope.sourceforge.net License: BSD and GPLv2+ @@ -68,13 +68,15 @@ rm -f %{_datadir}/emacs/site-lisp/xcscope.el ln -sf %{_datadir}/%{name}/cctree.vim %{_datadir}/vim/vimfiles/plugin/cctree.vim %triggerun -- vim-filesystem -if [ $2 -gt 0 ] +if [ $1 -eq 0 ] || [ $2 -gt 0 ] then -exit 0 +rm -f %{_datadir}/vim/vimfiles/plugin/cctree.vim ||: fi -rm -f %{_datadir}/vim/vimfiles/plugin/cctree.vim %changelog +* Wed Jul 31 2024 zhangruifang - 15.9-7 +- %%preun remove redundant symbolic links + * Mon Oct 24 2022 yanglongkang - 15.9-6 - rebuild for next release