scstadmin.spec: Replace custom Requires line with package names

The scstadmin.spec.in file contained a custom Requires line that
generated dependencies based on the full paths of the killall and rm
commands. This approach is unconventional and could cause issues with
dependency resolution.

This patch replaces the custom Requires line with the package names
providing the required commands, namely 'psmisc' for killall and
'coreutils' for rm. This change ensures proper dependency resolution
and adheres to recommended practices for specifying dependencies in
spec files.

Fixes: https://github.com/SCST-project/scst/issues/152
This commit is contained in:
Gleb Chesnokov
2023-04-24 18:08:13 +03:00
parent 1a4ecab818
commit e2a6774a2e

View File

@@ -16,7 +16,7 @@ URL: http://scst.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: yes
Requires: %{expand:%%(for c in killall rm; do echo -n "$(which $c) "; done)}
Requires: psmisc, coreutils
%description
A tool for configuring SCST via the SCST sysfs interface. Allows to save,