]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Build with zstd and zchunk support
authorMichael Schroeder <mls@suse.de>
Tue, 17 Jul 2018 12:31:51 +0000 (14:31 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 17 Jul 2018 12:31:51 +0000 (14:31 +0200)
package/libsolv.spec.in

index 6e8b47dfa54720ae75109db9e7d4086c5221ec6d..35d0efde0e87a53a782e8e110dddcb1b3a5f5be2 100644 (file)
@@ -33,9 +33,11 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?leap_version} >= 420300 || 0%{?sle_version} >= 120300 || 0%{?suse_version} >= 1330 || !0%{?suse_version}
 %bcond_without bz2
 %bcond_without xz
+%bcond_without zstd
 %else
 %bcond_with bz2
 %bcond_with xz
+%bcond_with zstd
 %endif
 
 %if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?mageia} >= 6 || 0%{?suse_version} >= 1330
@@ -101,6 +103,9 @@ BuildRequires:  bzip2-devel
 BuildRequires:  xz-devel
 %endif
 
+%if %{with zstd}
+BuildRequires:  libzstd-devel
+%endif
 
 Summary:        Package dependency solver using a satisfiability algorithm
 License:        BSD-3-Clause
@@ -229,6 +234,8 @@ cmake       $CMAKE_FLAGS \
        %{?with_ruby_binding:-DENABLE_RUBY=1} \
        %{?with_bz2:-DENABLE_BZIP2_COMPRESSION=1} \
        %{?with_xz:-DENABLE_LZMA_COMPRESSION=1} \
+       %{?with_zstd:-DENABLE_ZSTD_COMPRESSION=1} \
+       %{?with_zstd:-DENABLE_ZCHUNK_COMPRESSION=1} \
        %{?with_richdeps:-DENABLE_COMPLEX_DEPS=1} \
        %{?with_zypp:-DENABLE_SUSEREPO=1 -DENABLE_HELIXREPO=1} \
        -DUSE_VENDORDIRS=1 \