From 6f4127f4d95add62daefcc7552cf19883a97e7f5c2b247a5a82435911d259a17 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 6 Dec 2012 12:09:55 +0000 Subject: [PATCH] SLES build OBS-URL: https://build.opensuse.org/package/show/Base:System/kmod?expand=0&rev=49 --- kmod.spec | 8 ++++++++ 1 file changed, 8 insertions(+) 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" \