File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
3333%if 0%{?leap_version} >= 420300 || 0%{?sle_version} >= 120300 || 0%{?suse_version} >= 1330 || !0%{?suse_version}
3434%bcond_without bz2
3535%bcond_without xz
36+ %bcond_without zstd
3637%else
3738%bcond_with bz2
3839%bcond_with xz
40+ %bcond_with zstd
3941%endif
4042
4143%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?mageia} >= 6 || 0%{?suse_version} >= 1330
@@ -101,6 +103,9 @@ BuildRequires: bzip2-devel
101103BuildRequires: xz-devel
102104%endif
103105
106+ %if %{with zstd}
107+ BuildRequires: libzstd-devel
108+ %endif
104109
105110Summary: Package dependency solver using a satisfiability algorithm
106111License: BSD-3-Clause
@@ -229,6 +234,8 @@ cmake $CMAKE_FLAGS \
229234 %{?with_ruby_binding:-DENABLE_RUBY=1} \
230235 %{?with_bz2:-DENABLE_BZIP2_COMPRESSION=1} \
231236 %{?with_xz:-DENABLE_LZMA_COMPRESSION=1} \
237+ %{?with_zstd:-DENABLE_ZSTD_COMPRESSION=1} \
238+ %{?with_zstd:-DENABLE_ZCHUNK_COMPRESSION=1} \
232239 %{?with_richdeps:-DENABLE_COMPLEX_DEPS=1} \
233240 %{?with_zypp:-DENABLE_SUSEREPO=1 -DENABLE_HELIXREPO=1} \
234241 -DUSE_VENDORDIRS=1 \
You can’t perform that action at this time.
0 commit comments