spec: add weak-modules Requires for compression

weak-modules will call zcat, xzcat, zstdcat when required. If kmod is
provided with it, it should Requires the appropriate dependencies.

Signed-off-by: Eric Chanudet <echanude@redhat.com>
This commit is contained in:
Eric Chanudet 2026-08-12 17:37:55 -04:00
commit dc7e5cbc55

View file

@ -100,6 +100,18 @@ Provides: /usr/sbin/lsmod
Provides: /usr/sbin/depmod
%endif
%if %{with weak_modules}
%if %{with zlib}
Requires: %{_bindir}/zcat
%endif
%if %{with xz}
Requires: %{_bindir}/xzcat
%endif
%if %{with zstd}
Requires: %{_bindir}/zstdcat
%endif
%endif
%description
The kmod package provides various programs needed for automatic
loading and unloading of modules under 2.6, 3.x, and later kernels, as well