diff --git a/schily.changes b/schily.changes index 4301b69..b27ead3 100644 --- a/schily.changes +++ b/schily.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 17 03:59:20 UTC 2026 - Marius Grossu + +- Migrate from update-alternatives to libalternatives + (bsc#1245915), (bsc#1245916) + ------------------------------------------------------------------- Tue May 27 21:35:22 UTC 2025 - Martin Jambor diff --git a/schily.spec b/schily.spec index 3bf46ae..c0cbb55 100644 --- a/schily.spec +++ b/schily.spec @@ -41,6 +41,7 @@ Source1: README-FIRST Patch1: iconv-name.diff Patch2: schily-2018-05-25_star_configuration.patch Patch3: 81.patch +BuildRequires: alts BuildRequires: autoconf BuildRequires: fdupes BuildRequires: gcc-c++ @@ -104,8 +105,7 @@ write BluRay media on a BluRay recorder. Summary: A program to generate tag files for ex/vi License: BSD-2-Clause AND CDDL-1.0 AND GPL-2.0-only AND GPL-2.0-or-later AND BSD-3-Clause AND HPND AND ISC Group: Development/Tools/Building -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires: alts %description ctags Ctags makes a tags file for ex(1) from the specified C, Pascal, @@ -362,8 +362,7 @@ Group: Productivity/Archiving/Backup Provides: mt Obsoletes: star-rmt Provides: star-rmt:/usr/bin/smt -Requires(post): update-alternatives -Requires(postun): update-alternatives +Conflicts: mt %description mt The mt/smt program sends commands to a local or a remote magnetic @@ -376,8 +375,7 @@ Group: Productivity/Archiving/Backup Provides: rmt Obsoletes: star-rmt Provides: star-rmt:/usr/bin/srmt -Requires(post): update-alternatives -Requires(postun): update-alternatives +Conflicts: rmt %description rmt rmt is a program that can be used by e.g. star and ufsdump @@ -543,7 +541,8 @@ 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 srmt "$b/%_bindir/rmt" +ln -sv smt "$b/%_bindir/mt" ln -sv smt.1 "$b/%_mandir/man1/mt.1" ln -sv srmt.1 "$b/%_mandir/man1/rmt.1" @@ -661,6 +660,16 @@ rm -Rfv \ # Remove documentation (will be added in %_datadir/doc/packages/*) #rm -Rf "$b/%_datadir/doc"/* +# alternatives configuration directories +mkdir -p %{buildroot}%{_datadir}/libalternatives/ctags +ln -sf %{_bindir}/alts %{buildroot}%{_bindir}/ctags +# ctags implementation (schily) +cat > %{buildroot}%{_datadir}/libalternatives/ctags/15.conf <