[Python-modules-commits] [python-buzhug] 05/07: modernize packaging: short dh format, dh compat 9, dh-python. Closes: #786251

Mattia Rizzolo mattia at mapreri.org
Mon Dec 14 16:49:05 UTC 2015


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

mattia pushed a commit to tag debian/1.8-3
in repository python-buzhug.

commit e5ae059f344179ff9a465c7b20a8a11bf029057d
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Mon Dec 14 16:36:31 2015 +0000

    modernize packaging: short dh format, dh compat 9, dh-python.  Closes: #786251
---
 debian/compat  |  2 +-
 debian/control |  5 ++---
 debian/rules   | 51 +++------------------------------------------------
 3 files changed, 6 insertions(+), 52 deletions(-)

diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/debian/control b/debian/control
index 24ae684..48f26a1 100644
--- a/debian/control
+++ b/debian/control
@@ -3,13 +3,12 @@ Section: python
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Luciano Bello <luciano at debian.org>
-Build-Depends: debhelper (>= 5.0.38), python-all
-Build-Depends-Indep: python-support (>= 0.6.4)
+Build-Depends: debhelper (>= 9), python-all, dh-python
 Standards-Version: 3.9.5
 Homepage: http://buzhug.sourceforge.net/
 Vcs-Git: git://anonscm.debian.org/python-modules/packages/python-buzhug.git
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-buzhug.git
-XS-Python-Version: >= 2.5
+X-Python-Version: >= 2.5
 
 Package: python-buzhug
 Architecture: all
diff --git a/debian/rules b/debian/rules
index d892b64..d272b6d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,50 +1,5 @@
 #!/usr/bin/make -f
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 
-PYVERS=$(shell pyversions -r)
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp: build
-
-build:
-
-clean:
-	dh_testdir
-	
-	python setup.py clean
-	
-	rm -f build-stamp
-	rm -f buzhug/*.pyc buzhug/*.pyo
-	
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_installdirs
-	
-	python setup.py install --root=debian/python-buzhug
-
-# Build architecture-dependent files here.
-binary-arch:
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs
-	dh_installdocs
-	dh_python2
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+%:
+	dh $@ --with python2

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-buzhug.git



More information about the Python-modules-commits mailing list