[bmap-tools] [PATCH 1/8] packaging: add compressors dependencies

Artem Bityutskiy dedekind1 at gmail.com
Fri Jan 31 06:58:44 EST 2014


From: Artem Bityutskiy <artem.bityutskiy at intel.com>

Add a bunch of dependencies: bzip2, gzip, tar, lzo, xz, pbzip2, pigz. This is a
preparation to the next change where we'll re-write the TransRead module and
start using external tools for decompression.

Change-Id: I8815942ff44fd6ed9c8d60bc62b1cdfd1e1988c7
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at intel.com>
---
 debian/control            |  7 +++++++
 packaging/bmap-tools.spec | 20 ++++++++++++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index ed6de2e..749cca9 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,13 @@ Depends: python (>=2.7),
 	 python-gpgme,
          ${misc:Depends},
          ${python:Depends},
+	 bzip2,
+	 pbzip2,
+	 gzip,
+	 pigz,
+	 lzop,
+	 xz-utils,
+	 tar
 Description: tool to flash image files to block devices using the block map
  bmaptool is a generic tool for creating the block map (bmap) for a
  file, and copying files using the block map. The idea is that large
diff --git a/packaging/bmap-tools.spec b/packaging/bmap-tools.spec
index 8281fa1..b3975b4 100644
--- a/packaging/bmap-tools.spec
+++ b/packaging/bmap-tools.spec
@@ -18,6 +18,22 @@ BuildArch: noarch
 URL: http://www.tizen.org
 Source0: %{name}_%{version}.tar.gz
 
+Requires: bzip2
+Requires: pbzip2
+Requires: gzip
+Requires: pigz
+Requires: xz
+Requires: tar
+
+%if 0%{?suse_version}
+%if 0%{?suse_version} > 1210
+# lzop is present in OpenSuse since version 12.1
+Requires: lzop
+%endif
+%else
+Requires: lzop
+%endif
+
 BuildRequires: python-distribute
 
 %if 0%{?suse_version}
@@ -25,16 +41,12 @@ BuildRequires: python-distribute
 Requires: python-xml
 # The gpgme python module is in python-gpgme
 Requires: python-gpgme
-# Unfortunately, there is no package for the lzma module in OpenSuse
-# (checked 12.2 and 12.3)
 %endif
 
 %if 0%{?fedora_version}
 # In Fedora the xml.etree module is provided by the python-libs package
 Requires: python-libs
 # The lzma python module is packaged in pyliblzma
-Requires: pyliblzma
-# Tha gpgme python module is packaged in pygpgme
 Requires: pygpgme
 %endif
 
-- 
1.8.3.1




More information about the Bmap-tools mailing list