On SLE aria2 is not required, so conflict with too old versions (bnc #578052)
authorMichael Andres <ma@suse.de>
Thu, 11 Feb 2010 12:38:52 +0000 (13:38 +0100)
committerMichael Andres <ma@suse.de>
Thu, 11 Feb 2010 12:38:52 +0000 (13:38 +0100)
libzypp.spec.cmake

index 3ad6f37..b29bdb5 100644 (file)
@@ -62,6 +62,7 @@ Requires:       gpg2
 Requires:       gnupg
 %endif
 
+%define min_aria_version 1.1.2
 # ---------------------------------------------------------------
 %if 0%{?suse_version} == 1110
 # (almost) common codebase, but on SLES11-SP1 (according to Rudi
@@ -70,6 +71,9 @@ Requires:       gnupg
 # from po/sle-zypp-po.tar.bz2.
 %define min_curl_version 7.19.0-11.22
 %define use_translation_set sle-zypp
+# No requirement, but as we'd use it in case it is present,
+# check for a sufficient version:
+Conflicts:     aria2 < %{min_aria_version}
 # ---------------------------------------------------------------
 %else
 # ---------------------------------------------------------------
@@ -77,8 +81,8 @@ Requires:       gnupg
 # need CURLOPT_REDIR_PROTOCOLS:
 %define min_curl_version 7.19.4
 # want aria2:
-Requires:      aria2 >= 1.1.2
-BuildRequires: aria2 >= 1.1.2
+Requires:      aria2 >= %{min_aria_version}
+BuildRequires: aria2 >= %{min_aria_version}
 %endif
 # ---------------------------------------------------------------