mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-16 20:26:19 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user