scst.spec.in: Replace custom Requires line with package names

The scst.spec.in file used a custom Requires line that dynamically resolved
the full paths of the find and rm commands using shell substitution with
'which'. This method is non-standard and can lead to issues in constrained
build environments.

This patch replaces the custom Requires line with explicit package names:
'findutils' for find and 'coreutils' for rm. This improves compatibility
and aligns with best practices for declaring dependencies in spec files.
This commit is contained in:
Gleb Chesnokov
2025-08-05 16:37:31 +03:00
parent 974b31fdcb
commit 2631557383
+1 -1
View File
@@ -90,7 +90,7 @@ BuildRequires: %{?kernel_rpm:%{kernel_rpm} = %{krpmver} %{kernel_devel_rpm} = %{
Source: %{kmod_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: no
Requires: %{?kernel_rpm:%{kernel_rpm} = %{krpmver}} @depmod@ %{expand:%%(for c in find rm; do echo -n "$(PATH=/usr/sbin:/usr/bin:/sbin:/bin which $c) "; done)}
Requires: %{?kernel_rpm:%{kernel_rpm} = %{krpmver}} @depmod@ coreutils findutils
Provides: scst
%description