[SCM] jack-tools packaging branch, master, updated. 17c861d52c8903bf8aaeadb0c8fab1c5a614b0c2

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Fri Aug 20 12:48:24 UTC 2010


The following commit has been merged in the master branch:
commit 17c861d52c8903bf8aaeadb0c8fab1c5a614b0c2
Author: Alessio Treglia <alessio at debian.org>
Date:   Fri Aug 20 14:48:21 2010 +0200

    Switch to DH7 + autoreconf add-on.

diff --git a/debian/control b/debian/control
index 8f5006b..54ae5fc 100644
--- a/debian/control
+++ b/debian/control
@@ -3,10 +3,10 @@ Section: sound
 Priority: optional
 Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alioth.debian.org>
 Uploaders: Arnout Engelen <arnouten at bzzt.net>
-Build-Depends: debhelper (>= 7),
+Build-Depends: debhelper (>= 7.0.50~),
  bzip2,
  dh-buildinfo,
- autoconf (>= 2.52),
+ dh-autoreconf,
  automake1.7,
  libtool,
  m4,
diff --git a/debian/rules b/debian/rules
index ae614be..9586520 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,108 +1,41 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
 
 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
 
-
-
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# should i use dh_autoreconf instead?
-	sh ./autogen.sh
-	./configure --prefix=/usr
-
-	touch configure-stamp
-
-
-build: build-stamp
-
-build-stamp: configure-stamp 
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE)
+override_dh_auto_build:
+	dh_auto_build
 	for i in *.text ; do asciidoc -d manpage -b docbook $$i ; xsltproc  /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `basename $$i .text`.xml ; done
 
-	touch $@
-
-clean: 
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-	
-	# autogen.sh-generated files:	
-	rm -rf aclocal.m4 Makefile.in autom4te.cache configure common/Makefile.in 
-
+override_dh_auto_clean:
 	# looks like no 'make clean' target is generated
-	#$(MAKE) clean
 	# so we do it ourselves
-	rm -rf *.o common/*.o common/*.a .libs jack.play jack.udp jack.osc jack.dl jack.plumbing jack.transport jack.record jack.scope
-
-	# ./configure-generated files:	
-	rm -rf Makefile libtool config.log .deps config.status config/* common/Makefile common/.deps
-	
-	# manpages
-	rm -f *.1 *.xml
-	
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	# Add here commands to install the package into debian/jack-tools.
-	$(MAKE) DESTDIR=$(CURDIR)/debian/jack-tools install
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs 
-	dh_installdocs
-	dh_installexamples
-#	dh_install
-	dh_installmenu
-#	dh_installdebconf	
-#	dh_installlogrotate
-#	dh_installemacsen
-#	dh_installpam
-#	dh_installmime
-#	dh_python
-#	dh_installinit
-#	dh_installcron
-#	dh_installinfo
-	dh_installman --language=C
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-#	dh_perl
-#	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+	rm -rf *.o \
+		common/*.o \
+		common/*.a \
+		.libs \
+		jack.play \
+		jack.udp \
+		jack.osc \
+		jack.dl \
+		jack.plumbing \
+		jack.transport \
+		jack.record \
+		jack.scope \
+		Makefile \
+		libtool \
+		config.log \
+		.deps \
+		config.status \
+		config/* \
+		common/Makefile \
+		common/.deps \
+		*.1 *.xml
+	dh_auto_clean
 
 get-orig-source:
 	rm -rf get-orig-source $(TARBALL)
@@ -112,7 +45,3 @@ get-orig-source:
 	GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
 	rm -rf get-orig-source
 	echo "  "$(TARBALL)" created; now git-import-orig and remove it again."
-	
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure manpages get-orig-source

-- 
jack-tools packaging



More information about the pkg-multimedia-commits mailing list