forked from pool/schily
- Move ctags to update-alternatives scheme.
OBS-URL: https://build.opensuse.org/package/show/utilities/schily?expand=0&rev=119
This commit is contained in:
parent
290b8b3368
commit
096c1a2ec7
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 7 10:50:14 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Move ctags to update-alternatives scheme.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 5 00:13:45 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
24
schily.spec
24
schily.spec
@ -104,7 +104,8 @@ write BluRay media on a BluRay recorder.
|
||||
Summary: A program to generate tag files for ex/vi
|
||||
License: CDDL-1.0 AND GPL-2.0-only AND GPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND HPND AND ISC
|
||||
Group: Development/Tools/Building
|
||||
Conflicts: ctags
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%description ctags
|
||||
Ctags makes a tags file for ex(1) from the specified C, Pascal,
|
||||
@ -537,17 +538,18 @@ rm -fv "$b/%_bindir/suntar"
|
||||
rm -fv "$b/%_mandir/man1/star_sym.1"
|
||||
rm -fv "$b/%_mandir/man1/suntar.1"
|
||||
|
||||
# ctags
|
||||
mv -v "$b/%_bindir/ctags" "$b/%_bindir/ctags-schily"
|
||||
cp -v ctags/vctags.1 "$b/%_mandir/man1/"
|
||||
|
||||
# mt/rmt
|
||||
rm -fv "$b/%_bindir/mt" # handled up u-a
|
||||
ln -sv smt.1 "$b/%_mandir/man1/mt.1"
|
||||
ln -sv srmt.1 "$b/%_mandir/man1/rmt.1"
|
||||
ls -l "$b/%_mandir"/man*/*mt*
|
||||
|
||||
# get rid of things that upset rpmlint
|
||||
find "$b/usr/share/doc" -type f -name "*big*" -print -delete
|
||||
|
||||
cp ctags/vctags.1 "$b/%_mandir/man1/"
|
||||
|
||||
# deal with this another time
|
||||
find "$b"
|
||||
rm -Rfv "$b/usr/ccs" "$b/usr/xpg4" "$b/%_bindir/sccs"
|
||||
@ -670,6 +672,16 @@ true
|
||||
%set_permissions %_bindir/cdda2wav
|
||||
true
|
||||
|
||||
%post ctags
|
||||
"%_sbindir/update-alternatives" \
|
||||
--install "%_bindir/ctags" ctags "%_bindir/ctags-schily" 20
|
||||
"%_sbindir/update-alternatives" --auto ctags
|
||||
|
||||
%postun ctags
|
||||
if test "$1" = 0; then
|
||||
"%_sbindir/update-alternatives" --remove ctags "%_bindir/ctags-schily"
|
||||
fi
|
||||
|
||||
%post -n readcd
|
||||
%set_permissions %_bindir/readcd
|
||||
true
|
||||
@ -678,6 +690,7 @@ true
|
||||
"%_sbindir/update-alternatives" \
|
||||
--install "%_bindir/mt" mt "%_bindir/smt" 10 \
|
||||
--slave "%_mandir/man1/mt.1%ext_man" "mt.1%ext_man" "%_mandir/man1/smt.1%ext_man"
|
||||
"%_sbindir/update-alternatives" --auto mt
|
||||
|
||||
%postun mt
|
||||
if test "$1" = 0; then
|
||||
@ -688,6 +701,7 @@ fi
|
||||
"%_sbindir/update-alternatives" \
|
||||
--install "%_bindir/rmt" rmt "%_bindir/srmt" 10 \
|
||||
--slave "%_mandir/man8/rmt.1%ext_man" "rmt.1%ext_man" "%_mandir/man8/srmt.1%ext_man"
|
||||
"%_sbindir/update-alternatives" --auto rmt
|
||||
|
||||
%postun rmt
|
||||
if test "$1" = 0; then
|
||||
@ -779,7 +793,7 @@ fi
|
||||
|
||||
%files ctags
|
||||
%license CDDL.Schily.txt
|
||||
%_bindir/ctags
|
||||
%_bindir/ctags-schily
|
||||
%_bindir/vctags
|
||||
%_mandir/man1/vctags.1*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user