diff --git a/squashfs.changes b/squashfs.changes index e48e296..e1e62db 100644 --- a/squashfs.changes +++ b/squashfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 21 16:45:45 UTC 2016 - dmueller@suse.com + +- fix build for SLE12 and older + ------------------------------------------------------------------- Thu Nov 5 08:29:56 UTC 2015 - seife+obs@b1-systems.com diff --git a/squashfs.spec b/squashfs.spec index e10d085..991425c 100644 --- a/squashfs.spec +++ b/squashfs.spec @@ -1,7 +1,7 @@ # # spec file for package squashfs # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,7 +29,9 @@ Patch0: squashfs-64k.patch Patch1: 0001-mksquashfs-fix-rare-race-in-fragment-waiting-in-file.patch # PATCH-FIX-UPSTREAM 0002-Fix-2GB-limit-of-the-is_fragment-.-function.patch boo#953723 Patch2: 0002-Fix-2GB-limit-of-the-is_fragment-.-function.patch +%if %{?suse_version} > 1315 BuildRequires: liblz4-devel +%endif BuildRequires: lzma-devel BuildRequires: lzo-devel BuildRequires: zlib-devel @@ -48,7 +50,10 @@ squashfs images. %build sed -i -e "s,-O2,%{optflags}," squashfs-tools/Makefile -make %{?_smp_mflags} -C squashfs-tools XZ_SUPPORT=1 LZO_SUPPORT=1 LZ4_SUPPORT=1 +make %{?_smp_mflags} -C squashfs-tools XZ_SUPPORT=1 LZO_SUPPORT=1 \ +%if %{?suse_version} > 1315 + LZ4_SUPPORT=1 +%endif %install mkdir -p %{buildroot}%{_bindir}