From 7d109bba700193c3c9749b2722b49bd256db8a22 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Feb 13 2019 08:24:36 +0000 Subject: Disable zstd on RHEL Signed-off-by: Igor Gnatenko --- diff --git a/libsolv.spec b/libsolv.spec index 6158bbc..d59b994 100644 --- a/libsolv.spec +++ b/libsolv.spec @@ -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 \