Jan Engelhardt 2012-12-06 12:09:55 +00:00 committed by Git OBS Bridge
parent 6723e26bc5
commit 6f4127f4d9

View File

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