From 47c684ff45b44fac80ac2a0c5d3a5189b3c70de0 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Tue, 22 Jan 2013 15:53:16 +0800 Subject: [PATCH] update debian packaging files Change-Id: Ia857444bb840fa6fa41e633917ac14d3813f8348 Signed-off-by: Gui Chen --- debian/control | 10 ++++------ debian/rules | 9 ++++++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/debian/control b/debian/control index 082cfdc..ee3f41c 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Homepage: http://www.tizen.org Package: mic Architecture: all -Depends: ${misc:Depends}, ${python:Depends}, +Depends: ${misc:Depends}, ${python:Depends}, ${dist:Depends}, python-rpm, bzip2, dmsetup, @@ -20,18 +20,16 @@ Depends: ${misc:Depends}, ${python:Depends}, parted, psmisc, squashfs-tools (>= 4.0), - qemu-user-static | qemu-arm-static, - syslinux (>= 4.05), - extlinux (>= 4.05), yum (>= 3.2), libzypp, python-zypp, - python-urlgrabber + python-m2crypto, + python-urlgrabber, Recommends: binfmt-support, btrfs-tools, udisks | hal -Replaces: +Conflicts: mic2 Description: image creator for Linux distributions The tool mic is used to create and manipulate images for Linux distributions. diff --git a/debian/rules b/debian/rules index fc55966..674a4e1 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,13 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +ifeq ($(shell cat /etc/issue | cut -d' ' -f2), 11.10) + SUBSTVARS = -Vdist:Depends="qemu-arm-static, syslinux (>= 2:4.05)" +else + SUBSTVARS = -Vdist:Depends="qemu-user-static, syslinux (>= 2:4.05), extlinux (>= 2:4.05)" +endif + + build: build-stamp build-stamp: dh_testdir @@ -42,7 +49,7 @@ binary-indep: build install dh_pysupport dh_installdeb dh_shlibdeps - dh_gencontrol + dh_gencontrol -- $(SUBSTVARS) dh_md5sums dh_builddeb -- 2.7.4