packaging: correct dependencies for Centos6
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 25 Feb 2013 07:34:05 +0000 (09:34 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 25 Feb 2013 08:20:30 +0000 (10:20 +0200)
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 <artem.bityutskiy@linux.intel.com>
packaging/bmap-tools.spec

index cd09375..db7551f 100644 (file)
@@ -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