diff --git a/kmod.spec b/kmod.spec index 93ce801..2194245 100644 --- a/kmod.spec +++ b/kmod.spec @@ -38,8 +38,13 @@ BuildRequires: libxslt %endif BuildRequires: pkgconfig >= 0.21 BuildRequires: xz +%if 0%{?sles_version} +BuildRequires: xz-devel >= 4.99 +BuildRequires: zlib-devel +%else BuildRequires: pkgconfig(liblzma) >= 4.99 BuildRequires: pkgconfig(zlib) +%endif Requires: suse-module-tools %description @@ -95,6 +100,9 @@ in %lname. # The extra --includedir gives us the possibility to detect dependent # packages which fail to properly use pkgconfig. %configure \ +%if 0%{?sles_version} + zlib_CFLAGS=" " zlib_LIBS="-lz" \ +%endif --with-xz \ --with-zlib \ --includedir="%_includedir/%name-%version" \