[Python-modules-commits] [myghty] 02/04: modernize packaging: short dh format, dh compat 9, dh-python. Closes: #786265
Mattia Rizzolo
mattia at mapreri.org
Sun Dec 13 19:13:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository myghty.
commit e7ae36264ed8fdf1991970d933161ab81ec94720
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Dec 13 19:10:02 2015 +0000
modernize packaging: short dh format, dh compat 9, dh-python. Closes: #786265
---
debian/compat | 2 +-
debian/control | 4 +--
debian/python-myghty.docs | 2 ++
debian/rules | 62 ++++++-----------------------------------------
4 files changed, 12 insertions(+), 58 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 916c5ac..e745c98 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,8 @@ Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Oleksandr Moskalenko <malex at debian.org>
-Build-Depends: debhelper (>= 5)
-Build-Depends-Indep: python-all, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1~)
+Build-Depends: debhelper (>= 9)
+Build-Depends-Indep: python-all, dh-python, python-setuptools (>= 0.6b3-1~)
Standards-Version: 3.8.4
XS-Python-Version: >= 2.5
Vcs-Git: git://anonscm.debian.org/python-modules/packages/myghty.git
diff --git a/debian/python-myghty.docs b/debian/python-myghty.docs
index e845566..fc1b683 100644
--- a/debian/python-myghty.docs
+++ b/debian/python-myghty.docs
@@ -1 +1,3 @@
README
+doc/html/
+examples/
diff --git a/debian/rules b/debian/rules
index f018faa..40aeb03 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,63 +1,15 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
-package=python-myghty
-PYVERS=$(shell pyversions -vr)
--include /usr/share/python/python.mk
-ifeq (,$(py_libdir))
- py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
- endif
+%:
+ dh $@ --with python2
-clean:
- rm -f build-*
- dh_testdir
- dh_testroot
- rm -rf build
- find . -name \*.py[co] -exec rm -f {} \;
- rm -Rf lib/*.egg-info
- rm -f doc/html/*html
- dh_clean
-
-build: build-indep
-
-build-indep:
+override_dh_auto_build:
cd doc; python ./genhtml.py
- touch $@
-
-build-stamp:
- dh_testdir
- python setup.py build
- touch $@
-
-install: $(PYVERS:%=install-python%)
-install-python%:
- dh_installdirs
- python$* setup.py install \
- --no-compile $(py_setup_install_args) \
- --single-version-externally-managed \
- --root $(CURDIR)/debian/$(package)
- cp -a doc/html/* $(CURDIR)/debian/$(package)/usr/share/doc/$(package)/html
- cp -a examples/* $(CURDIR)/debian/$(package)/usr/share/doc/$(package)/examples
- find debian/$(package)/usr/share/doc/$(package)/examples -name \*.py -exec sed -i -e '1 s|/usr/local/|/usr/|' {} \;
+ dh_auto_build
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installdirs
+override_dh_installchanges:
dh_installchangelogs CHANGES
- dh_installdocs
- dh_installexamples
- dh_pysupport
- dh_compress -X.py
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb -- -Z bzip2
-
-binary-arch:
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+override_dh_compress:
+ dh_compress -X.py
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/myghty.git
More information about the Python-modules-commits
mailing list