Weaken systemd dependency

tang does not necessarily require systemd, as it can run standalone,
so let's use %{?systemd_ordering} instead of %{?systemd_requires},
which means that  we want to use systemd tools if they are available,
but do not want to declare a dependency [1].

This might help reduce the footprint in scenarios where we do not want
to pull in systemd, e.g. in containers.

Resolves: RHEL-35966

Signed-off-by: Sergio Correia <scorreia@redhat.com>

[1] https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_dependencies_on_the_systemd_package
This commit is contained in:
Sergio Correia 2024-10-15 09:36:51 +01:00
parent 721630f41b
commit e6307ccdf1
No known key found for this signature in database
GPG Key ID: D0D219ED1F7E762C

View File

@ -33,7 +33,7 @@ BuildRequires: socat
BuildRequires: sed BuildRequires: sed
BuildRequires: iproute BuildRequires: iproute
%{?systemd_requires} %{?systemd_ordering}
Requires: coreutils Requires: coreutils
Requires: jose >= 8 Requires: jose >= 8
Requires: llhttp Requires: llhttp