[icebreaker] 19/22: Modernize Debian packaging (policy 4.0.1, dh10)

Andreas Gnau rondom-guest at moszumanska.debian.org
Sat Sep 9 09:06:48 UTC 2017


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

rondom-guest pushed a commit to branch master
in repository icebreaker.

commit 919593c9e3dd2522a36f9a540315471a8a3bfa0f
Author: Andreas Gnau <Rondom at Rondom.de>
Date:   Thu Aug 10 18:26:29 2017 -0400

    Modernize Debian packaging (policy 4.0.1, dh10)
    
    * Bump debhelper compat level to 10
    * Bump policy to 4.0.1 and remove menu-file
    * Move to 3.0 source-format
---
 debian/compat              |  2 +-
 debian/control             |  4 +--
 debian/icebreaker.docs     |  2 ++
 debian/icebreaker.install  |  2 ++
 debian/icebreaker.manpages |  1 +
 debian/menu                |  3 --
 debian/rules               | 89 ++++++++--------------------------------------
 debian/source/format       |  1 +
 debian/source/options      |  1 +
 9 files changed, 25 insertions(+), 80 deletions(-)

diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 81bc519..a041ffe 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,8 @@ Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders:
     Andreas Gnau <Rondom at Rondom.de>
-Build-Depends: debhelper (>= 9), libsdl-mixer1.2-dev (>= 1.2.0-1.1)
-Standards-Version: 3.1.1
+Build-Depends: debhelper (>= 10), libsdl-mixer1.2-dev (>= 1.2.0-1.1)
+Standards-Version: 4.0.1
 Vcs-Git: https://anonscm.debian.org/git/pkg-games/icebreaker.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-games/icebreaker.git
 Homepage: https://mattdm.org/icebreaker/
diff --git a/debian/icebreaker.docs b/debian/icebreaker.docs
new file mode 100644
index 0000000..724e084
--- /dev/null
+++ b/debian/icebreaker.docs
@@ -0,0 +1,2 @@
+README
+TODO
diff --git a/debian/icebreaker.install b/debian/icebreaker.install
new file mode 100644
index 0000000..ee93e4f
--- /dev/null
+++ b/debian/icebreaker.install
@@ -0,0 +1,2 @@
+icebreaker.desktop usr/share/applications
+debian/icebreaker_48.xpm usr/share/pixmaps
diff --git a/debian/icebreaker.manpages b/debian/icebreaker.manpages
new file mode 100644
index 0000000..d618073
--- /dev/null
+++ b/debian/icebreaker.manpages
@@ -0,0 +1 @@
+icebreaker.6
diff --git a/debian/menu b/debian/menu
deleted file mode 100644
index be6202f..0000000
--- a/debian/menu
+++ /dev/null
@@ -1,3 +0,0 @@
-?package(icebreaker):needs=X11 section=Games/Arcade\
-  title="icebreaker" command="/usr/games/icebreaker"\
-  icon="/usr/share/icebreaker/icebreaker_48.bmp"
diff --git a/debian/rules b/debian/rules
index 88483d0..be73f12 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,79 +1,20 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+#export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+	dh $@  
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
+override_dh_auto_build:
+	dh_auto_build -- prefix=/usr highscoredir=/var/games
 
-	touch configure-stamp
+override_dh_auto_install:
+	dh_auto_install -- prefix=$(CURDIR)/debian/icebreaker/usr highscoredir=$(CURDIR)/debian/icebreaker/var/games
+	rm $(CURDIR)/debian/icebreaker/var/games/icebreaker.scores
 
-build: configure-stamp build-stamp
-build-stamp:
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE) prefix=/usr highscoredir=/var/games
-
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
-	rm -f *.d
-	-$(MAKE) clean
-	rm -f *.d
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-	$(MAKE) install prefix=`pwd`/debian/icebreaker/usr highscoredir=`pwd`/debian/icebreaker/var/games
-	rm `pwd`/debian/icebreaker/var/games/icebreaker.scores
-
-	install -d debian/icebreaker/usr/share/pixmaps
-	install -d debian/icebreaker/usr/share/applications
-	install -m644 debian/icebreaker_48.xpm debian/icebreaker/usr/share/pixmaps
-	install -m644 icebreaker.desktop debian/icebreaker/usr/share/applications
-
-
-# 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_testversion
-	dh_testdir
-	dh_testroot
-#	dh_installdebconf	
-	dh_installdocs README TODO
-	dh_installexamples
-	dh_installmenu
-	dh_installmanpages
-#	dh_installinfo
-	dh_undocumented
-	dh_installchangelogs ChangeLog
-#	dh_link
-	dh_strip
-	dh_compress
-#	dh_fixperms
-#	dh_makeshlibs
-	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
+override_dh_fixperms:
+	chown root:games $(CURDIR)/debian/icebreaker/usr/games/icebreaker
+	chmod g+s $(CURDIR)/debian/icebreaker/usr/games/icebreaker
+	dh_fixperms -Xdebian/icebreaker/usr/games/icebreaker
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..7423a2d
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+single-debian-patch

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



More information about the Pkg-games-commits mailing list