spec: add hostname.rpm into Recommends list

kexec-tools runs hostname binary in the case of fence_kdump. Since this
is a trival dependency and should not block the kexec-tools installation
if non-existent, using weak-dependency to resolve it.

Signed-off-by: Pingfan Liu <piliu@redhat.com>
Acked-by: Tao Liu <ltao@redhat.com>
This commit is contained in:
Pingfan Liu 2022-01-12 19:24:26 +08:00 committed by Coiby Xu
parent 72ef6929a6
commit c480be7ccf

View File

@ -72,6 +72,7 @@ Requires: dracut-squash >= 050
Requires: ethtool Requires: ethtool
Recommends: zstd Recommends: zstd
Recommends: grubby Recommends: grubby
Recommends: hostname
BuildRequires: make BuildRequires: make
BuildRequires: zlib-devel elfutils-devel glib2-devel bzip2-devel ncurses-devel bison flex lzo-devel snappy-devel libzstd-devel BuildRequires: zlib-devel elfutils-devel glib2-devel bzip2-devel ncurses-devel bison flex lzo-devel snappy-devel libzstd-devel
BuildRequires: pkgconfig intltool gettext BuildRequires: pkgconfig intltool gettext