# Conditional build:
%bcond_without asm # disable assembler
-# workaround executable stack on non-x86_64
-# https://github.com/facebook/zstd/issues/2963
-# (actually asm is x86_64 only, other archs have empty asm file, without non-exec stack marker)
-%ifnarch %{x8664}
-%undefine with_asm
-%endif
-
Summary: Zstandard - fast lossless compression algorithm
Summary(pl.UTF-8): Zstandard - szybki, bezstratny algorytm kompresji
Name: zstd
-Version: 1.5.1
-Release: 2
+Version: 1.5.6
+Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/facebook/zstd/releases
Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 120d77140ad538e8bd3a7dae6a38c4c9
+# Source0-md5: 2543d7cb3beda9ec48f965e5059dbd42
URL: https://github.com/facebook/zstd
BuildRequires: gcc >= 5:3.2
+BuildRequires: libstdc++-devel
BuildRequires: lz4-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel
LDFLAGS="%{rpmldflags}" \
%{__make} allmost manual \
V=1 \
+ PREFIX=%{_prefix} \
+ LIBDIR=%{_libdir} \
%{!?with_asm:ZSTD_NO_ASM=1}
%install