[Python-modules-commits] [pygtkspellcheck] 12/19: Use pybuild as build system, list non-installed files

Raphaël Hertzog hertzog at moszumanska.debian.org
Mon Nov 21 21:02:38 UTC 2016


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

hertzog pushed a commit to branch master
in repository pygtkspellcheck.

commit 2e5b24a8671c0dd2af4efced33dfa58e3fa8e3a9
Author: Raphaël Hertzog <hertzog at debian.org>
Date:   Mon Nov 21 21:15:17 2016 +0100

    Use pybuild as build system, list non-installed files
---
 debian/control |  5 ++---
 debian/rules   | 41 +++++------------------------------------
 2 files changed, 7 insertions(+), 39 deletions(-)

diff --git a/debian/control b/debian/control
index 6a66d64..7bc85e1 100644
--- a/debian/control
+++ b/debian/control
@@ -5,17 +5,16 @@ Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.
 Uploaders: Raphaël Hertzog <hertzog at debian.org>
 Build-Depends: debhelper (>= 10),
                python (>= 2.7),
+               dh-python,
                python-sphinx,
                python-enchant,
-               python3-all,
+               python3,
                python3-sphinx,
                python3-enchant
 Standards-Version: 3.9.3
 Homepage: http://pygtkspellcheck.readthedocs.org/
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/pygtkspellcheck.git
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pygtkspellcheck.git
-X-Python-Version: >= 2.7
-X-Python3-Version: >= 3.2
 
 Package: python-gtkspellcheck
 Architecture: all
diff --git a/debian/rules b/debian/rules
index 3b7aacb..35e97ac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,44 +1,13 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
+
+export PYBUILD_AFTER_INSTALL={interpreter} setup.py install_locale
 
 %:
-	dh $@ --with python2,python3,sphinxdoc
+	dh $@ --with python2,python3,sphinxdoc --buildsystem pybuild
 
 override_dh_auto_build:
 	dh_auto_build
-
-	# Python3
-	set -ex; for python in $(shell py3versions -r); do \
-		$$python setup.py build; \
-	done;
-
-override_dh_auto_install:
-	dh_auto_install
-
-	# Python3
-	set -ex; for python in $(shell py3versions -r); do \
-		$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
-	done;
-
-	# l10n
-	mkdir -p $(CURDIR)/debian/tmp/usr/share/
-
-	set -ex; for python in $(shell py3versions -r); do \
-		$$python -B $(CURDIR)/l10n/compile_mo.py; \
-	done;
-	mv $(CURDIR)/l10n/mo $(CURDIR)/debian/tmp/usr/share/locale3
-
-	set -ex; for python in $(shell pyversions -r); do \
-		$$python -B $(CURDIR)/l10n/compile_mo.py; \
-	done;
-	mv $(CURDIR)/l10n/mo $(CURDIR)/debian/tmp/usr/share/locale2
-
-override_dh_installdocs:
 	python setup.py build_sphinx
-	dh_installdocs
 
-override_dh_auto_clean:
-	dh_auto_clean
-	rm -rf build *.egg-info
+override_dh_install:
+	dh_install --list-missing

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



More information about the Python-modules-commits mailing list