Disable zstd on RHEL

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Marek Blaha 2019-02-13 09:24:36 +01:00 committed by Igor Gnatenko
parent 7543ce048d
commit 7d109bba70
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -28,6 +28,7 @@
# For handling deb + rpm at the same time
%bcond_with multi_semantics
%bcond_with zchunk
%bcond_with zstd
%else
%bcond_without helix_repo
%bcond_without suse_repo
@ -36,6 +37,7 @@
# For handling deb + rpm at the same time
%bcond_without multi_semantics
%bcond_without zchunk
%bcond_without zstd
%endif
Name: lib%{libname}
@ -58,8 +60,10 @@ BuildRequires: libxml2-devel
BuildRequires: xz-devel
# -DENABLE_BZIP2_COMPRESSION=ON
BuildRequires: bzip2-devel
%if %{with zstd}
# -DENABLE_ZSTD_COMPRESSION=ON
BuildRequires: libzstd-devel
%endif
%if %{with zchunk}
# -DENABLE_ZCHUNK_COMPRESSION=ON
BuildRequires: pkgconfig(zck)
@ -170,7 +174,7 @@ Python 3 version.
-DWITH_LIBXML2=ON \
-DENABLE_LZMA_COMPRESSION=ON \
-DENABLE_BZIP2_COMPRESSION=ON \
-DENABLE_ZSTD_COMPRESSION=ON \
%{?with_zstd:-DENABLE_ZSTD_COMPRESSION=ON} \
%if %{with zchunk}
-DENABLE_ZCHUNK_COMPRESSION=ON \
-DWITH_SYSTEM_ZCHUNK=ON \