[adonthell] 30/65: Update packaging to dh7 style
Markus Koschany
apo at moszumanska.debian.org
Tue Jul 12 19:53:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository adonthell.
commit 1f6e7335a6de17a94a54ac5f60fe7293dd88dfaf
Author: Barry deFreese <bdefreese at debian.org>
Date: Wed May 22 01:58:29 2013 +0000
Update packaging to dh7 style
---
debian/changelog | 15 ++++++++---
debian/control | 9 ++++---
debian/manpages | 1 +
debian/pyversions | 1 -
debian/rules | 81 ++++++++++++++-----------------------------------------
5 files changed, 37 insertions(+), 70 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index be8bb9e..65dccc9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,16 @@
-adonthell (0.3.5-8) UNRELEASED; urgency=low
+adonthell (0.3.5-8) unstable; urgency=low
* Acknowledge NMU.
- * Add .desktop file. (Closes: #708933).
-
- -- Barry deFreese <bdefreese at debian.org> Sun, 19 May 2013 07:07:29 -0400
+ * Clean up packaging.
+ - Change debian/rules to dh7 style.
+ - Bump debhelper and compat to 7.
+ - Replace Conflicts with Breaks in control.
+ - Add hardening flags.
+ - Update Homepage to new address.
+ - Remove links against libdl and libutil since they aren't used.
+ * Bump Standards Version to 3.9.4.
+
+ -- Barry deFreese <bdefreese at debian.org> Mon, 20 May 2013 08:24:40 -0400
adonthell (0.3.5-7.1) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index 1f0b62b..ce985a4 100644
--- a/debian/control
+++ b/debian/control
@@ -3,9 +3,10 @@ Section: games
Priority: optional
Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
Uploaders: Barry deFreese <bdefreese at debian.org>, Moritz Muehlenhoff <jmm at debian.org>
-Build-Depends: debhelper (>= 5.0.37.2), autotools-dev, libsdl1.2-dev, libvorbis-dev, zlib1g-dev, swig (>= 1.3), libfreetype6-dev, libaa1-dev, python-dev, python-support, libsdl-ttf2.0-dev, libsdl-mixer1.2-dev, libsdl1.2-dev
-Standards-Version: 3.8.3
-Homepage: http://adonthell.linuxgames.com/
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev, dpkg-dev (>= 1.16.1~), libsdl1.2-dev, libvorbis-dev, zlib1g-dev, swig (>= 1.3),
+ libfreetype6-dev, libaa1-dev, python-dev, libsdl-ttf2.0-dev, libsdl-mixer1.2-dev, libsdl1.2-dev
+Standards-Version: 3.9.4
+Homepage: http://adonthell.nongnu.org/index.shtml
Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/adonthell/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/adonthell/?op=log
@@ -13,7 +14,7 @@ Package: adonthell
Architecture: alpha amd64 avr32 hppa hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 sparc
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
Recommends: adonthell-data (>= 0.3.3-3), adonthell-data (<< 0.4)
-Conflicts: adonthell-data (<< 0.3.3-3)
+Breaks: adonthell-data (<< 0.3.3-3)
Description: 2D graphical roleplaying game
A 2D graphical RPG game inspired by good old console RPGs like the
ones on the SNES.
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..a84b653
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/adonthell.6
diff --git a/debian/pyversions b/debian/pyversions
deleted file mode 100644
index 57a7586..0000000
--- a/debian/pyversions
+++ /dev/null
@@ -1 +0,0 @@
-2.3-
diff --git a/debian/rules b/debian/rules
index 40ad7ad..9e07e26 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,15 +2,17 @@
#export DH_VERBOSE=1
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-CXXFLAGS = -Wall -fno-exceptions -DSWIG_GLOBAL -DDATA_DIR=\"\\\"/usr/share/games/adonthell\"\\\"
+CXXFLAGS += -Wall -fno-exceptions -DSWIG_GLOBAL -DDATA_DIR=\"\\\"/usr/share/games/adonthell\"\\\"
CFGDEBUG = ""
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL} -p -o root -g root -m 755
PYVERSIONNN:=$(shell pyversions -d -v)
-
PYVERSION :=python$(PYVERSIONNN)
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
@@ -26,89 +28,46 @@ else
CXXFLAGS += -O2
endif
-configure: configure-stamp
-configure-stamp:
- dh_testdir
-
+%:
+ dh $@ --with python2, yes
+override_dh_auto_configure:
-test -r /usr/share/misc/config.sub && \
cp -f /usr/share/misc/config.sub config.sub
-test -r /usr/share/misc/config.guess && \
cp -f /usr/share/misc/config.guess config.guess
+
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--bindir=\$${prefix}/games \
--datadir=\$${prefix}/share/games \
- --with-py-libs="-Wl,-E -L/usr/lib/$(PYVERSION)/config -l$(PYVERSION) -ldl -lpthread -lutil -lSDL -lSDL_ttf -lSDL_mixer" \
+ --with-py-libs="-Wl,-E -L/usr/lib/$(PYVERSION)/config -l$(PYVERSION) -lpthread -lSDL -lSDL_ttf -lSDL_mixer" \
--with-py-cflags="-I/usr/include/$(PYVERSION)" \
$(CFGDEBUG)
- touch configure-stamp
-
-build: configure-stamp build-stamp
-build-stamp:
- dh_testdir
+override_dh_auto_build:
+ $(MAKE) CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
- $(MAKE) CXXFLAGS="$(CXXFLAGS)" INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
- touch build-stamp
+override_dh_auto_install:
+ $(MAKE) install DESTDIR="$(CURDIR)/debian/adonthell" INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
-clean:
- dh_testdir
- dh_testroot
- rm -f configure-stamp build-stamp
+ #Remove the symlink and change binary name back to adonthell
+ rm -f $(CURDIR)/debian/adonthell/usr/games/adonthell
+ mv $(CURDIR)/debian/adonthell/usr/games/adonthell-0.3 \
+ $(CURDIR)/debian/adonthell/usr/games/adonthell
+override_dh_clean:
[ ! -f Makefile ] || $(MAKE) distclean
-rm -f `find . -name "*~"`
-rm -f src/adonthell.pyc
rm -f config.guess config.sub
-
- # drop files generated by SWIG
- rm -f src/modules/adonthell.py src/py_adonthell_wrap.cc
+ # drop files generated by SWIG
+ rm -f src/modules/adonthell.py src/py_adonthell_wrap.cc
dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- $(MAKE) install DESTDIR="$(CURDIR)/debian/adonthell" INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
-
- #Remove the symlink and change binary name back to adonthell
- rm -f $(CURDIR)/debian/adonthell/usr/games/adonthell
- mv $(CURDIR)/debian/adonthell/usr/games/adonthell-0.3 \
- $(CURDIR)/debian/adonthell/usr/games/adonthell
-
-# 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_installdocs
- dh_installmenu
- dh_installman debian/adonthell.6
- dh_installchangelogs ChangeLog
- dh_pysupport -V $(PYVERSIONNN) adonthell /usr/share/games/adonthell/modules/
- 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
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/adonthell.git
More information about the Pkg-games-commits
mailing list