Build libzstd with multi-threading support

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-07-11 19:28:32 +02:00
parent b2a12f103c
commit 2af7a22259
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

View File

@ -13,7 +13,7 @@
Name: zstd Name: zstd
Version: 1.4.5 Version: 1.4.5
Release: 3%{?dist} Release: 4%{?dist}
Summary: Zstd compression library Summary: Zstd compression library
License: BSD and GPLv2 License: BSD and GPLv2
@ -63,9 +63,8 @@ find -name .gitignore -delete
%build %build
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="$RPM_LD_FLAGS" export LDFLAGS="$RPM_LD_FLAGS"
for dir in lib programs; do %make_build -C lib lib-mt
%make_build -C "$dir" %make_build -C programs
done
%if %{with pzstd} %if %{with pzstd}
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11" export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
%make_build -C contrib/pzstd %make_build -C contrib/pzstd
@ -124,6 +123,9 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
%ldconfig_scriptlets -n lib%{name} %ldconfig_scriptlets -n lib%{name}
%changelog %changelog
* Sat Jul 11 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.4.5-4
- Build libzstd with multi-threading support
* Mon May 25 2020 Pádraig Brady <P@draigBrady.com> - 1.4.5-3 * Mon May 25 2020 Pádraig Brady <P@draigBrady.com> - 1.4.5-3
- Build shared library with correct compiler flags - Build shared library with correct compiler flags