From 7e845305c2528df376c021824d0a7920da17980b Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 7 Nov 2012 11:26:49 +0200 Subject: [PATCH] packaging: correct dependency 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 --- packaging/bmap-tools.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packaging/bmap-tools.spec b/packaging/bmap-tools.spec index 4b79aca..6e74a02 100644 --- a/packaging/bmap-tools.spec +++ b/packaging/bmap-tools.spec @@ -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} -- 2.7.4