From 4d0d64ef481e8e9c1c7817fc90410279109eb99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 9 Apr 2024 10:41:24 +0200 Subject: [PATCH] Prepare for bin-sbin merge https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin Add a Provides for the old names. We rely on filesystem(unmerged-sbin-symlinks) feature to create the symlink for us. This commit makes things compatible with the state before and after the merge. --- chkconfig.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chkconfig.spec b/chkconfig.spec index 053867b5..95e2b098 100644 --- a/chkconfig.spec +++ b/chkconfig.spec @@ -35,6 +35,11 @@ page), ntsysv configures the current runlevel (5 if you're using X). %package -n alternatives Summary: A tool to maintain symbolic links determining default commands +%if "%{_sbindir}" == "%{_bindir}" +Provides: /usr/sbin/alternatives +Provides: /usr/sbin/update-alternatives +Requires: filesystem(unmerged-sbin-symlinks) +%endif %description -n alternatives alternatives creates, removes, maintains and displays information about the