From 70c076fbbff328e206c1af7e416cd36f21d7d379 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 25 Feb 2013 09:34:05 +0200 Subject: [PATCH] packaging: correct dependencies for Centos6 Centos6 uses python 2.6 which does not have the argparse module that we use. However, there is a possibility to add the argparse module by installing the 'python-argparse' package which is available from 3rd party Centos6 repositories. Thus, add the corresponding dependency for Centos6. Signed-off-by: Artem Bityutskiy --- packaging/bmap-tools.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/bmap-tools.spec b/packaging/bmap-tools.spec index cd09375..db7551f 100644 --- a/packaging/bmap-tools.spec +++ b/packaging/bmap-tools.spec @@ -24,6 +24,11 @@ Requires: python-xml Requires: python-libs %endif +# We need the argparse module which is not available in Centos6 +%if 0%{?centos_version} == 600 +Requires: python-argparse +%endif + %description Bmap-tools - tools to generate block map (AKA bmap) and flash images using bmap -- 2.7.4