diff --git a/libzypp-17.21.0.tar.bz2 b/libzypp-17.21.0.tar.bz2 index e694cbc..a3c2106 100644 --- a/libzypp-17.21.0.tar.bz2 +++ b/libzypp-17.21.0.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f5070a1f81fdac422315aacec28ec963c0a151293abb1b65d78604ea23e8f8a8 -size 4741075 +oid sha256:93273080b6ddcef38b7b821e6d1c116f19375d407cbc63412ea9eb167bc02d06 +size 4744256 diff --git a/libzypp.spec b/libzypp.spec index 26daff8..e090802 100644 --- a/libzypp.spec +++ b/libzypp.spec @@ -16,6 +16,12 @@ # +%if 0%{?is_opensuse} && (0%{?sle_version} >= 150000 || 0%{?suse_version} >= 1500) +%bcond_without zchunk +%else +%bcond_with zchunk +%endif + Name: libzypp Version: 17.21.0 Release: 0 @@ -129,6 +135,10 @@ BuildRequires: asciidoc BuildRequires: libxslt-tools %endif +%if %{with zchunk} +BuildRequires: libzck-devel +%endif + %description libzypp is the package management library that powers applications like YaST, zypper and the openSUSE/SLE implementation of PackageKit. @@ -220,6 +230,7 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLIB=%{_lib} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=1 \ + %{?with_zchunk:-DENABLE_ZCHUNK_COMPRESSION=1} \ ${EXTRA_CMAKE_OPTIONS} \ .. make %{?_smp_mflags} VERBOSE=1