From a9c9e90b075b911da72163cb0fec0c4a5d1d4501235992880e3b16c9d8e2a1a3 Mon Sep 17 00:00:00 2001 From: Philipp Seiler Date: Mon, 14 Sep 2020 15:35:36 +0000 Subject: [PATCH] Accepting request 831277 from home:bjoernv:branches:filesystems - enabled ZSTD compression support for openSUSE >= 15.1 OBS-URL: https://build.opensuse.org/request/show/831277 OBS-URL: https://build.opensuse.org/package/show/filesystems/squashfs?expand=0&rev=47 --- squashfs.changes | 5 +++++ squashfs.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/squashfs.changes b/squashfs.changes index 97efbda..62f864b 100644 --- a/squashfs.changes +++ b/squashfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 1 17:16:30 UTC 2020 - Björn Voigt + +- enabled ZSTD compression support for openSUSE >= 15.1 + ------------------------------------------------------------------- Tue Mar 31 11:41:23 UTC 2020 - Martin Liška diff --git a/squashfs.spec b/squashfs.spec index ff92f43..5159c63 100644 --- a/squashfs.spec +++ b/squashfs.spec @@ -29,6 +29,9 @@ Patch1: squashfs-thread-limit %if %{?suse_version} > 1315 BuildRequires: liblz4-devel %endif +%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150100 +BuildRequires: libzstd-devel +%endif BuildRequires: lzma-devel BuildRequires: lzo-devel BuildRequires: zlib-devel @@ -49,7 +52,10 @@ squashfs images. sed -i -e "s|-O2|%{optflags} -fcommon|" squashfs-tools/Makefile make %{?_smp_mflags} -C squashfs-tools XZ_SUPPORT=1 LZO_SUPPORT=1 \ %if %{?suse_version} > 1315 - LZ4_SUPPORT=1 + LZ4_SUPPORT=1 \ +%endif +%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150100 + ZSTD_SUPPORT=1 %endif %install