Skip to content

Commit a514b4c

Browse files
committed
Build with zstd and zchunk support
1 parent 7f91032 commit a514b4c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

package/libsolv.spec.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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
101103
BuildRequires: xz-devel
102104
%endif
103105

106+
%if %{with zstd}
107+
BuildRequires: libzstd-devel
108+
%endif
104109

105110
Summary: Package dependency solver using a satisfiability algorithm
106111
License: 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 \

0 commit comments

Comments
 (0)