[Python-modules-commits] [python-sptest] 11/16: debian/rules: convert to short dh format and build using pybuild

Mattia Rizzolo mattia at debian.org
Wed Jan 20 18:45:12 UTC 2016


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

mattia pushed a commit to branch master
in repository python-sptest.

commit 880eade564aae68b9a6084d12c1ec0c086306a92
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Jan 20 18:37:43 2016 +0000

    debian/rules: convert to short dh format and build using pybuild
---
 debian/rules | 39 +++------------------------------------
 1 file changed, 3 insertions(+), 36 deletions(-)

diff --git a/debian/rules b/debian/rules
index 4d43c07..71e6381 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,46 +1,13 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 
 DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -rf build
-	find . -name *\.py[co] -exec rm {} \;
-	dh_clean
-
-build:
-	python setup.py build
-
-install:
-	python setup.py install --root $(CURDIR)/debian/python-sptest
-
-# Build architecture-dependent files here.
-binary-arch:
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_install
-	dh_installchangelogs
-	dh_installdocs README
-	dh_python2
-	dh_compress -X.py
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
+%:
+	dh $@ --with python2 --buildsystem pybuild
 
 get-orig-source:
 	uscan --force-download --rename --repack --destdir=. \
 		--download-version=$(DEB_UPSTREAM_VERSION)
 
-.PHONY: build clean binary-indep binary-arch install

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



More information about the Python-modules-commits mailing list