!22 preun remove redundant symbolic links
From: @Linux_zhang2024 Reviewed-by: @gaoruoshu, @zengwefeng, @zhoupengcheng11 Signed-off-by: @gaoruoshu, @zengwefeng
This commit is contained in:
commit
68e59c947c
10
cscope.spec
10
cscope.spec
@ -1,7 +1,7 @@
|
|||||||
Name: cscope
|
Name: cscope
|
||||||
Summary: a developer's tool for browsing source code
|
Summary: a developer's tool for browsing source code
|
||||||
Version: 15.9
|
Version: 15.9
|
||||||
Release: 6
|
Release: 7
|
||||||
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz
|
||||||
URL: http://cscope.sourceforge.net
|
URL: http://cscope.sourceforge.net
|
||||||
License: BSD and GPLv2+
|
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
|
ln -sf %{_datadir}/%{name}/cctree.vim %{_datadir}/vim/vimfiles/plugin/cctree.vim
|
||||||
|
|
||||||
%triggerun -- vim-filesystem
|
%triggerun -- vim-filesystem
|
||||||
if [ $2 -gt 0 ]
|
if [ $1 -eq 0 ] || [ $2 -gt 0 ]
|
||||||
then
|
then
|
||||||
exit 0
|
rm -f %{_datadir}/vim/vimfiles/plugin/cctree.vim ||:
|
||||||
fi
|
fi
|
||||||
rm -f %{_datadir}/vim/vimfiles/plugin/cctree.vim
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 31 2024 zhangruifang <zhangruifang@h-partners.com> - 15.9-7
|
||||||
|
- %%preun remove redundant symbolic links
|
||||||
|
|
||||||
* Mon Oct 24 2022 yanglongkang<yanglongkang@h-partners.com> - 15.9-6
|
* Mon Oct 24 2022 yanglongkang<yanglongkang@h-partners.com> - 15.9-6
|
||||||
- rebuild for next release
|
- rebuild for next release
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user