]> git.pld-linux.org Git - packages/zstd.git/blobdiff - zstd.spec
up to 1.5.6
[packages/zstd.git] / zstd.spec
index 0f3cf867c68e0dc84a610a2ad95705236fbb9f89..e3dc6de14c0928a2195393a2a753936110f9e7d3 100644 (file)
--- a/zstd.spec
+++ b/zstd.spec
@@ -1,15 +1,23 @@
+#
+# Conditional build:
+%bcond_without asm             # disable assembler
+
 Summary:       Zstandard - fast lossless compression algorithm
 Summary(pl.UTF-8):     Zstandard - szybki, bezstratny algorytm kompresji
 Name:          zstd
-Version:       1.4.9
+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: 9c2b9634cafee287b9703bc129a439f0
+# 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
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %ifarch %{arm}
@@ -60,7 +68,10 @@ CFLAGS="%{rpmcflags} %{rpmcppflags} %{?archcflags}" \
 CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
 LDFLAGS="%{rpmldflags}" \
 %{__make} allmost manual \
-       V=1
+       V=1 \
+       PREFIX=%{_prefix} \
+       LIBDIR=%{_libdir} \
+       %{!?with_asm:ZSTD_NO_ASM=1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.089254 seconds and 4 git commands to generate.