From 3b10911ddbbdaf14650481a4b116fd7869545107 Mon Sep 17 00:00:00 2001 From: sqfu Date: Fri, 29 Nov 2024 14:24:28 +0800 Subject: [PATCH] fix invalid soft links error (cherry picked from commit c2514ecd62f171506de9a32b47fb705cfde8690a) --- ctags.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ctags.spec b/ctags.spec index 3db40a2..2e848c9 100644 --- a/ctags.spec +++ b/ctags.spec @@ -1,6 +1,6 @@ Name: ctags Version: 5.8 -Release: 29 +Release: 30 Summary: A C programming language indexing and/or cross-reference tool License: GPLv2+ and LGPLv2+ and Public Domain @@ -46,18 +46,17 @@ it's a alternativ implementation of the GNU etags program. %install rm -rf %RPM_BUILD_ROOT %make_install - cd %{buildroot}%{_bindir} ln -s ctags etags.ctags cd %{buildroot}%{_mandir}/man1 -ln -s ctags.1.gz etags.ctags.1.gz +ln -s ctags.1 etags.ctags.1 %posttrans /usr/sbin/alternatives --install /usr/bin/etags emacs.etags /usr/bin/etags.ctags 20 \ --slave /usr/share/man/man1/etags.1.gz emacs.etags.man /usr/share/man/man1/ctags.1.gz %postun -/usr/sbin/alternatives --remove etags /usr/bin/etags.ctags || : +/usr/sbin/alternatives --remove emacs.etags /usr/bin/etags.ctags || : %files %defattr(-,root,root) @@ -73,6 +72,12 @@ ln -s ctags.1.gz etags.ctags.1.gz %{_mandir}/man1/etags.ctags.1.gz %changelog +* Thu Nov 28 2024 sqfu - 5.8-30 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix invalid soft links + * Thu Sep 21 2023 dillon chen - 5.8-29 - Type:bugfix - ID:NA