[netpanzer] 90/118: Simplify debian/rules and switch to dh sequencer.

Markus Koschany apo at moszumanska.debian.org
Sun Jun 5 10:20:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository netpanzer.

commit df4ea1cbc4380cc71915e89272e065fd824e4a8f
Author: Markus Koschany <apo at debian.org>
Date:   Sun Jun 5 07:41:51 2016 +0200

    Simplify debian/rules and switch to dh sequencer.
---
 debian/netpanzer.docs     |  2 ++
 debian/netpanzer.manpages |  1 +
 debian/rules              | 84 +++--------------------------------------------
 3 files changed, 8 insertions(+), 79 deletions(-)

diff --git a/debian/netpanzer.docs b/debian/netpanzer.docs
new file mode 100644
index 0000000..a89b6fa
--- /dev/null
+++ b/debian/netpanzer.docs
@@ -0,0 +1,2 @@
+docs/tipofday.txt
+docs/serverhowto.html
diff --git a/debian/netpanzer.manpages b/debian/netpanzer.manpages
new file mode 100644
index 0000000..1d03ab8
--- /dev/null
+++ b/debian/netpanzer.manpages
@@ -0,0 +1 @@
+docs/netpanzer.6
diff --git a/debian/rules b/debian/rules
index c60525d..fb803a1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,86 +1,15 @@
 #!/usr/bin/make -f
-# rules file for netpanzer (October 2003)
-
-# Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
-UPP_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p'| sed -e 's/\.debian\.[0-9]*//')
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
-
-config.status:
-	dh_testdir
-	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+%:
+	dh $@ --parallel
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp: config.status 
-	dh_testdir
+override_dh_auto_build:
 	scons datadir=/usr/share/games/netpanzer
 
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp config.log
-	
+override_dh_auto_clean:
+	dh_auto_clean
 	[ -f SConstruct ] || scons --clean
-	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
-	rm -rf .pc
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-	dh_installdirs
-	
-	dh_install --sourcedir=.
-
-binary-indep: build install
-	dh_testdir -i
-	dh_testroot -i
-	dh_installchangelogs ChangeLog -i
-	dh_installdocs -i
-	dh_compress -i
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i
-
-binary-arch: build install
-	dh_testdir -a
-	dh_testroot -a
-	dh_installchangelogs ChangeLog -a
-	dh_installdocs docs/tipofday.txt docs/serverhowto.html -a
-	dh_installman docs/netpanzer.6 -a
-	dh_installmenu -a
-	dh_link -a
-	dh_compress -a
-	dh_fixperms -a
-	dh_installdeb -a
-	dh_shlibdeps -a
-	dh_gencontrol -a
-	dh_md5sums -a
-	dh_builddeb -a
 
 get-orig-source:
 	rm -rf get-orig-source netpanzer_$(SRC_VERSION).orig.tar.gz
@@ -90,6 +19,3 @@ get-orig-source:
 	GZIP='--best --no-name' tar czf netpanzer_$(SRC_VERSION).orig.tar.gz -C get-orig-source netpanzer-$(SRC_VERSION)
 	rm -rf get-orig-source
 	echo "  "netpanzer_$(SRC_VERSION).orig.tar.gz" created; move it to the right destination to build the package"
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/netpanzer.git



More information about the Pkg-games-commits mailing list