diff --git a/kmod.spec b/kmod.spec index a9e837b..fabb8b8 100644 --- a/kmod.spec +++ b/kmod.spec @@ -10,6 +10,9 @@ %bcond_with dist_conf %endif +%bcond_without zlib +%bcond_without xz +%bcond_without zstd Name: kmod Version: 30 @@ -25,12 +28,18 @@ Exclusiveos: Linux BuildRequires: gcc BuildRequires: chrpath +%if %{with zlib} BuildRequires: zlib-devel +%endif +%if %{with xz} BuildRequires: xz-devel +%endif BuildRequires: libxslt BuildRequires: openssl-devel BuildRequires: make +%if %{with zstd} BuildRequires: libzstd-devel +%endif Provides: module-init-tools = 4.0-1 Obsoletes: module-init-tools < 4.0-1 @@ -64,9 +73,15 @@ applications that wish to load or unload Linux kernel modules. %build %configure \ --with-openssl \ +%if %{with zlib} --with-zlib \ +%endif +%if %{with xz} --with-xz \ +%endif +%if %{with zstd} --with-zstd \ +%endif --enable-debug %{make_build} V=1