From: Neal Gompa Date: Thu, 11 May 2017 12:45:38 +0000 (-0400) Subject: Disable bzip2 and xz/lzma compression support for SLE <= 12 X-Git-Tag: 0.6.28~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05aab7772cf55a8a7fd425e6727aa326056b756c;p=thirdparty%2Flibsolv.git Disable bzip2 and xz/lzma compression support for SLE <= 12 --- diff --git a/package/libsolv.changes b/package/libsolv.changes index 0cf43f64..67514ad4 100644 --- a/package/libsolv.changes +++ b/package/libsolv.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 11 12:41:07 UTC 2017 - ngompa13@gmail.com + +- Disable bzip2 and xz/lzma compression support for SLE <= 12 + ------------------------------------------------------------------- Mon May 8 13:15:09 UTC 2017 - ngompa13@gmail.com diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index 8b6f75ed..5569a966 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -28,9 +28,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %bcond_without python_binding %bcond_without python3_binding %bcond_without ruby_binding +%bcond_with zypp + +%if ! ((0%{?suse_version} && 0%{?suse_version} < 1330 && ! 0%{?is_opensuse}) || 0%{?suse_version} == 1110) %bcond_without bz2 %bcond_without xz -%bcond_with zypp +%else +%bcond_with bz2 +%bcond_with xz +%endif %if 0%{?fedora} || 0%{?rhel} >= 8 || 0%{?mageia} >= 6 || 0%{?suse_version} >= 1330 %bcond_without richdeps @@ -81,6 +87,7 @@ BuildRequires: python3-devel %endif %if %{with bz2} + %if 0%{?fedora} || 0%{?rhel} || 0%{?mageia} BuildRequires: bzip2-devel %endif