fix invalid soft links error
(cherry picked from commit c2514ecd62f171506de9a32b47fb705cfde8690a)
This commit is contained in:
parent
32bac8ad26
commit
3b10911ddb
13
ctags.spec
13
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 <dev01203@linx-info.com> - 5.8-30
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:fix invalid soft links
|
||||
|
||||
* Thu Sep 21 2023 dillon chen <dillon.chen@gmail.com> - 5.8-29
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user