Change-Id: Ia857444bb840fa6fa41e633917ac14d3813f8348
Signed-off-by: Gui Chen <gui.chen@intel.com>
Package: mic
Architecture: all
-Depends: ${misc:Depends}, ${python:Depends},
+Depends: ${misc:Depends}, ${python:Depends}, ${dist:Depends},
python-rpm,
bzip2,
dmsetup,
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.
# 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
dh_pysupport
dh_installdeb
dh_shlibdeps
- dh_gencontrol
+ dh_gencontrol -- $(SUBSTVARS)
dh_md5sums
dh_builddeb