update debian packaging files
authorGui Chen <gui.chen@intel.com>
Tue, 22 Jan 2013 07:53:16 +0000 (15:53 +0800)
committerGui Chen <gui.chen@intel.com>
Tue, 22 Jan 2013 07:53:16 +0000 (15:53 +0800)
Change-Id: Ia857444bb840fa6fa41e633917ac14d3813f8348
Signed-off-by: Gui Chen <gui.chen@intel.com>
debian/control
debian/rules

index 082cfdc105c9aab96b0bfa45edc60e8ac4e4f64e..ee3f41cff7fcc32ade574d7636a6f30ec0ae5c80 100644 (file)
@@ -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.
index fc55966e97ea3b1f9f675829d17e8db42be2e0c2..674a4e18ed5476348684348da39311c2e17c1af2 100755 (executable)
@@ -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