packaging: correct dependency
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 7 Nov 2012 09:26:49 +0000 (11:26 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 8 Nov 2012 08:10:40 +0000 (10:10 +0200)
Although xml.etree is part of python, Fedora and OpenSuse provide this
module in separate packages. Add the corresponding packaging requirements.

Change-Id: I705fcb091eb7f977f2d564fe0d86ede1bad295f3
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
packaging/bmap-tools.spec

index 4b79aca..6e74a02 100644 (file)
@@ -10,8 +10,18 @@ Source0:    %{name}_%{version}.tar.gz
 
 BuildRequires:  python-distribute
 
+# In OpenSuse the xml.etree module is provided by the python-xml package
+%if 0%{?suse_version}
+Requires:      python-xml
+%endif
+
+# In Fedora the xml.etree module is provided by the python-libs package
+%if 0%{?fedora_version}
+Requires:      python-libs
+%endif
+
 %description
-Bmap-flasher - Flash an image file to a block device using the block map (bmap).
+Bmap-tools - tools to generate block map (AKA bmap) and flash images using bmap
 
 %prep
 %setup -q -n %{name}-%{version}