Imported Upstream version 17.25.4
[platform/upstream/libzypp.git] / libzypp.spec.cmake
index cf444d5..b6a1427 100644 (file)
 %else
 %bcond_with zchunk
 %endif
+# libsolvs external references require us to link against it:
+%if 0%{?sle_version} >= 150000 || 0%{?suse_version} >= 1500
+%bcond_without zstd
+%else
+%bcond_with zstd
+%endif
 
 %bcond_without mediabackend_tests
 
@@ -67,6 +73,7 @@ BuildRequires:  gcc-c++ >= 7
 BuildRequires:  gettext-devel
 BuildRequires:  graphviz
 BuildRequires:  libxml2-devel
+BuildRequires:  yaml-cpp-devel
 %if 0%{?suse_version} != 1110
 # No libproxy on SLES
 BuildRequires:  libproxy-devel
@@ -78,7 +85,7 @@ BuildRequires:  pkgconfig
 BuildRequires:  pkg-config
 %endif
 
-BuildRequires:  libsolv-devel >= 0.7.11
+BuildRequires:  libsolv-devel >= 0.7.15
 %if 0%{?suse_version} >= 1100
 BuildRequires:  libsolv-tools
 %requires_eq    libsolv-tools
@@ -150,6 +157,9 @@ BuildRequires:  libxslt-tools
 %if %{with zchunk}
 BuildRequires:  libzck-devel
 %endif
+%if %{with zstd}
+BuildRequires:  libzstd-devel
+%endif
 
 %description
 libzypp is the package management library that powers applications
@@ -243,6 +253,7 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
       -DCMAKE_BUILD_TYPE=Release \
       -DCMAKE_SKIP_RPATH=1 \
       %{?with_zchunk:-DENABLE_ZCHUNK_COMPRESSION=1} \
+      %{?with_zstd:-DENABLE_ZSTD_COMPRESSION=1} \
       %{!?with_mediabackend_tests:-DDISABLE_MEDIABACKEND_TESTS=1} \
       ${EXTRA_CMAKE_OPTIONS} \
       ..