[SCM] jack-tools/master: Rewrite packaging to use CDBS (not short-form dh).

js at users.alioth.debian.org js at users.alioth.debian.org
Mon Jan 3 05:55:38 UTC 2011


The following commit has been merged in the master branch:
commit 28a09479d3be2f623aa783c81dcbc6c8ebdbb7b6
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Jan 3 04:33:36 2011 +0100

    Rewrite packaging to use CDBS (not short-form dh).

diff --git a/debian/rules b/debian/rules
index 6055db0..2a9d1dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,14 +4,27 @@ PACKAGE = jack-tools
 SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-\(.*\)/\3/p')
 TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
 
-%:
-	dh $@ --with autoreconf
+DEB_AUTO_UPDATE_LIBTOOL = pre
+DEB_AUTO_UPDATE_ACLOCAL = 1.10
+DEB_AUTO_UPDATE_AUTOCONF = 2.60
+DEB_AUTO_UPDATE_AUTOMAKE = 1.10
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
 
-override_dh_auto_build:
-	dh_auto_build
-	find -maxdepth 1 -type f -name '*.text' -exec a2x -f manpage '{}' ';'
+# bootstrap autotools files (CDBS by default only update, not create)
+DEB_MAKE_CLEAN_TARGET = distclean
+DEB_AUTOMAKE_ARGS = --add-missing --copy --foreign
+pre-build::
+	touch aclocal.m4
+clean::
+	rm -f Makefile.in common/Makefile.in
+	rm -f configure
+	rm -f aclocal.m4
+	rm -rf config
 
-override_dh_auto_clean:
+build/jack-tools::
+	find -maxdepth 1 -type f -name '*.text' -exec a2x -f manpage '{}' ';'
+clean::
 	# looks like no 'make clean' target is generated
 	# so we do it ourselves
 	rm -rf *.o \
@@ -31,11 +44,9 @@ override_dh_auto_clean:
 		config.log \
 		.deps \
 		config.status \
-		config/* \
 		common/Makefile \
 		common/.deps \
 		*.1
-	dh_auto_clean
 
 get-orig-source:
 	rm -rf get-orig-source $(TARBALL)

-- 
jack-tools packaging



More information about the pkg-multimedia-commits mailing list