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:
parent
c11f4b4d5b
commit
dc7e5cbc55
1 changed files with 12 additions and 0 deletions
12
kmod.spec
12
kmod.spec
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue