Package: imagination
Severity: wishlist
Tags: patch

Hi,

with the patch attached you may generate different Recommends field's values 
depending on the distribution on which the package is built.
This would reduce the delta between Debian and Ubuntu to 0.

Thank you in advance for any replies.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru imagination-2.1/debian/control imagination-2.1/debian/control
--- imagination-2.1/debian/control	2010-08-10 02:35:06.000000000 +0200
+++ imagination-2.1/debian/control	2011-05-19 00:04:57.000000000 +0200
@@ -19,7 +19,7 @@
 Package: imagination
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, imagination-common (= ${source:Version}), sox
-Recommends: ffmpeg, libsox-fmt-all
+Recommends: ffmpeg, libsox-fmt-all, ${dist:Recommends}
 Suggests: libavcodec-extra-52, libavformat-extra-52, libavutil-extra-49
 Description: DVD slide show maker
  Imagination is a lightweight and user-friendly DVD slide show maker with
diff -Nru imagination-2.1/debian/rules imagination-2.1/debian/rules
--- imagination-2.1/debian/rules	2010-08-10 02:35:06.000000000 +0200
+++ imagination-2.1/debian/rules	2011-05-19 00:08:51.000000000 +0200
@@ -11,6 +11,12 @@
 	CROSS= --build $(DEB_BUILD_GNU_TYPE)
 endif
 
+ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
+	SUBSTVARS = -Vdist:Recommends="libavcodec-extra-52, libavformat-extra-52, libavutil-extra-50"
+else
+	SUBSTVARS = -Vdist:Recommends=""
+endif
+
 clean: unpatch
 	dh_testdir
 	dh_testroot
@@ -64,7 +70,7 @@
 	dh_fixperms -pimagination
 	dh_installdeb -pimagination
 	dh_shlibdeps -pimagination
-	dh_gencontrol -pimagination
+	dh_gencontrol -pimagination -- $(SUBSTVARS)
 	dh_md5sums -pimagination
 	dh_builddeb -pimagination
 

Reply via email to