- fix build for SLE12 and older

OBS-URL: https://build.opensuse.org/package/show/filesystems/squashfs?expand=0&rev=28
This commit is contained in:
Dirk Mueller 2016-01-21 16:45:53 +00:00 committed by Git OBS Bridge
parent 2bbcbae98a
commit cbd38146e3
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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}