[SCM] brutefir/master: Switch to debhelper 7.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Mon Sep 20 12:55:30 UTC 2010


The following commit has been merged in the master branch:
commit 979097680f0adb9f5167f5777133f0bb574d59cd
Author: Alessio Treglia <alessio at debian.org>
Date:   Mon Sep 20 14:55:06 2010 +0200

    Switch to debhelper 7.

diff --git a/debian/compat b/debian/compat
index 7ed6ff8..7f8f011 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+7
diff --git a/debian/control b/debian/control
index d5dc83f..0c6179a 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alio
 Uploaders: Free Ekanayaka <freee at debian.org>,
  Alessio Treglia <alessio at debian.org>
 Build-Depends: docbook-to-man,
- debhelper (>> 4.0.0),
+ debhelper (>= 7.0.50~),
  libfftw3-dev,
  libjack-dev,
  flex,
diff --git a/debian/rules b/debian/rules
index 35c7ad1..87f6a6e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,76 +1,17 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+	dh $@ -Smakefile
 
-CFLAGS = -Wall -g
+override_dh_auto_build:
+	dh_auto_build -- ARCH=`dpkg --print-architecture`
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
-
-build: build-stamp
-
-build-stamp:
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE) ARCH=`dpkg --print-architecture`
-	/usr/bin/docbook-to-man debian/brutefir.sgml > brutefir.1
-
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
-	-$(MAKE) clean
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-	dh_installdirs
-
-	# Add here commands to install the package into debian/brutefir.
-	$(MAKE) install ARCH=`dpkg --print-architecture` DESTDIR=$(CURDIR)/debian/brutefir
-	mv $(CURDIR)/debian/brutefir/usr/bin/brutefir $(CURDIR)/debian/brutefir/usr/lib/brutefir/brutefir.orig
+override_dh_auto_install:
+	dh_auto_install -- ARCH=`dpkg --print-architecture`
+	mv $(CURDIR)/debian/brutefir/usr/bin/brutefir \
+		$(CURDIR)/debian/brutefir/usr/lib/brutefir/brutefir.orig
 	cp debian/brutefir.wrapper $(CURDIR)/debian/brutefir/usr/bin/brutefir
 	chmod 755 $(CURDIR)/debian/brutefir/usr/bin/brutefir
 
-# Build architecture-independent files here.
-binary-indep: build install
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
+override_dh_installchangelogs:
 	dh_installchangelogs CHANGES
-	dh_installdocs
-	dh_installexamples
-	dh_install
-	dh_installmenu
-	dh_installman
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure

-- 
brutefir packaging



More information about the pkg-multimedia-commits mailing list