r15554 - in packages/trunk/trigger/debian: . patches
Bertrand Marc
bbk-guest at moszumanska.debian.org
Thu Oct 22 16:24:13 UTC 2015
Author: bbk-guest
Date: 2015-10-22 16:24:12 +0000 (Thu, 22 Oct 2015)
New Revision: 15554
Added:
packages/trunk/trigger/debian/trigger-rally.install
Removed:
packages/trunk/trigger/debian/dirs
packages/trunk/trigger/debian/patches/30_autotools.patch
Modified:
packages/trunk/trigger/debian/changelog
packages/trunk/trigger/debian/compat
packages/trunk/trigger/debian/control
packages/trunk/trigger/debian/patches/series
packages/trunk/trigger/debian/rules
Log:
Move to debhelper v9, to reduce debian/rules and enable hardening:
+ update debian/compat.
+ build-depend on debhelper (>=9), autotools-dev and dh-exec.
+ remove debian/dirs.
+ remove debian/patches/30_autotools.patch.
+ update debian/rules to dh style.
+ add debian/trigger-rally.install.
Modified: packages/trunk/trigger/debian/changelog
===================================================================
--- packages/trunk/trigger/debian/changelog 2015-10-22 09:23:18 UTC (rev 15553)
+++ packages/trunk/trigger/debian/changelog 2015-10-22 16:24:12 UTC (rev 15554)
@@ -7,7 +7,6 @@
* New upstream release.
* Update watchfile, thanks to Tobias Frost (Closes: #789268).
* Add myself as uploader.
- * debian/rules: replace depreciated dh_clean -k with dh_prep.
* Use new icons (Closes: #789272):
+ remove debian/trigger-rally*.xpm.
+ stop copying these xpm in debian/rules.
@@ -16,6 +15,13 @@
+ point trigger-rally.desktop to /usr/share/pixmaps/trigger-rally-icons.svg.
+ remove debian/menu.
* Standards-version 3.9.6.
+ * Move to debhelper v9, to reduce debian/rules and enable hardening:
+ + update debian/compat.
+ + build-depend on debhelper (>=9), autotools-dev and dh-exec.
+ + remove debian/dirs.
+ + remove debian/patches/30_autotools.patch.
+ + update debian/rules to dh style.
+ + add debian/trigger-rally.install.
-- Bertrand Marc <beberking at gmail.com> Sun, 18 Oct 2015 12:08:57 +0200
Modified: packages/trunk/trigger/debian/compat
===================================================================
--- packages/trunk/trigger/debian/compat 2015-10-22 09:23:18 UTC (rev 15553)
+++ packages/trunk/trigger/debian/compat 2015-10-22 16:24:12 UTC (rev 15554)
@@ -1 +1 @@
-5
+9
Modified: packages/trunk/trigger/debian/control
===================================================================
--- packages/trunk/trigger/debian/control 2015-10-22 09:23:18 UTC (rev 15553)
+++ packages/trunk/trigger/debian/control 2015-10-22 16:24:12 UTC (rev 15554)
@@ -2,7 +2,9 @@
Section: games
Priority: optional
Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 5.0.0),
+Build-Depends: debhelper (>= 9),
+ dh-exec,
+ autotools-dev,
jam,
libopenal-dev,
libalut-dev,
Deleted: packages/trunk/trigger/debian/dirs
===================================================================
--- packages/trunk/trigger/debian/dirs 2015-10-22 09:23:18 UTC (rev 15553)
+++ packages/trunk/trigger/debian/dirs 2015-10-22 16:24:12 UTC (rev 15554)
@@ -1,2 +0,0 @@
-usr/games
-usr/share/applications
Deleted: packages/trunk/trigger/debian/patches/30_autotools.patch
===================================================================
--- packages/trunk/trigger/debian/patches/30_autotools.patch 2015-10-22 09:23:18 UTC (rev 15553)
+++ packages/trunk/trigger/debian/patches/30_autotools.patch 2015-10-22 16:24:12 UTC (rev 15554)
@@ -1,31 +0,0 @@
-Description: Update autotools files not update by autogen.sh
- This patch updates the autotools files (config.sub/config.guess)
- shipped in mk/autoconf.
- .
- Author: Stefan Potyra <sistpoty at ubuntu.com>
-
-Index: trigger-rally-0.6.0/autogen.sh
-===================================================================
---- trigger-rally-0.6.0.orig/autogen.sh 2014-01-23 21:48:28.000000000 +0100
-+++ trigger-rally-0.6.0/autogen.sh 2014-01-23 21:52:30.675851846 +0100
-@@ -24,3 +24,20 @@
- autoheader
-
- autoconf
-+
-+# copy file $1 to directory $2
-+copy_file() {
-+ if [ ! -r "$1" ]; then
-+ echo "$1 not readable/presenkt."
-+ else
-+ if [ ! -d "$2" ]; then
-+ echo "$2: no directory."
-+ else
-+ echo "$1 --> $2"
-+ cp "$1" "$2"
-+ fi
-+ fi
-+}
-+
-+copy_file /usr/share/misc/config.sub mk/autoconf
-+copy_file /usr/share/misc/config.guess mk/autoconf
Modified: packages/trunk/trigger/debian/patches/series
===================================================================
--- packages/trunk/trigger/debian/patches/series 2015-10-22 09:23:18 UTC (rev 15553)
+++ packages/trunk/trigger/debian/patches/series 2015-10-22 16:24:12 UTC (rev 15554)
@@ -1,3 +1,2 @@
10_system_glew.patch
20_system_tinyxml.patch
-30_autotools.patch
Modified: packages/trunk/trigger/debian/rules
===================================================================
--- packages/trunk/trigger/debian/rules 2015-10-22 09:23:18 UTC (rev 15553)
+++ packages/trunk/trigger/debian/rules 2015-10-22 16:24:12 UTC (rev 15554)
@@ -4,31 +4,19 @@
# 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)
-
# location of datafiles
DATADIR=/usr/share/games/trigger-rally
-# name of package
-PACKAGE=trigger-rally
# what manpages to build?
MANPAGES=debian/trigger-rally.6
-CFLAGS = -Wall -g
+%:
+ dh $@ --with autotools-dev
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
# rule to build manpages
$(MANPAGES): $(addsuffix .sgml,$(MANPAGES))
docbook-to-man $< > $@
-configure: configure.ac
+override_dh_auto_configure:
# make sure that the shipped glew is not used during build
$(RM) -r src/glew
# same goes for tinyxml
@@ -39,69 +27,17 @@
$(RM) src/pengine/tinyxmlerror.cpp
$(RM) src/pengine/tinystr.h
./autogen.sh
+ dh_auto_configure -- --datadir=$(DATADIR)
-config.status: configure
- dh_testdir
- CFLAGS="$(CFLAGS) -Wl,-z,defs" \
- ./configure --host=$(DEB_HOST_GNU_TYPE) \
- --build=$(DEB_BUILD_GNU_TYPE) \
- --prefix=/usr \
- --mandir=\$${prefix}/share/man \
- --infodir=\$${prefix}/share/info \
- --datadir=$(DATADIR)
-
-
-build: build-arch build-indep
-
-build-stamp: config.status
- dh_testdir
+override_dh_auto_build:
jam
- touch build-stamp
-clean::
- dh_testdir
- dh_testroot
- rm -f build-stamp
+override_dh_installman: $(MANPAGES)
+ dh_installman $(MANPAGES)
+override_dh_auto_clean:
if [ -f Jamconfig ]; then jam distclean; fi
$(RM) $(MANPAGES)
- $(RM) configure mk/autoconf/sdl.m4 aclocal.m4 Jamconfig.in
- dh_clean
+ dh_auto_clean
-install: build $(MANPAGES)
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
- # yay, we do it by hand :)
- cp trigger debian/$(PACKAGE)/usr/games/trigger-rally
-# no indep package
-binary-indep:
-
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- # manually install desktop file
- cp debian/trigger-rally.desktop debian/$(PACKAGE)/usr/share/applications/trigger-rally.desktop
- dh_installmenu
- dh_installman $(MANPAGES)
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-build-arch: build-stamp
-# no indep package
-build-indep:
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install build-arch \
- build-indep
Added: packages/trunk/trigger/debian/trigger-rally.install
===================================================================
--- packages/trunk/trigger/debian/trigger-rally.install (rev 0)
+++ packages/trunk/trigger/debian/trigger-rally.install 2015-10-22 16:24:12 UTC (rev 15554)
@@ -0,0 +1,3 @@
+#! /usr/bin/dh-exec
+debian/trigger-rally.desktop /usr/share/applications
+trigger => /usr/games/trigger-rally
Property changes on: packages/trunk/trigger/debian/trigger-rally.install
___________________________________________________________________
Added: svn:executable
+ *
More information about the Pkg-games-commits
mailing list