From 27a0fe2820be75ea0ed1448b1887490606fcc34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 14 Apr 2024 13:09:10 +0200 Subject: [PATCH] Add compat sbin Provides In preparation for https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin. A few packages require those progs. (cherry picked from commit 427afe6a6649fc512c70ff57ecb06f3917bac3ee) --- xfsprogs.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xfsprogs.spec b/xfsprogs.spec index 6d13fc5..4aba76b 100644 --- a/xfsprogs.spec +++ b/xfsprogs.spec @@ -21,6 +21,14 @@ Obsoletes: xfsprogs-qa-devel <= %{version} Conflicts: xfsdump < 3.0.1 Suggests: xfsprogs-xfs_scrub +%if "%{_sbindir}" == "%{_bindir}" +# Compat symlinks for Requires in other packages. +# We rely on filesystem to create the symlinks for us. +Requires: filesystem(unmerged-sbin-symlinks) +Provides: /usr/sbin/fsck.xfs +Provides: /usr/sbin/mkfs.xfs +%endif + %description A set of commands to use the XFS filesystem, including mkfs.xfs.