[Python-modules-commits] [sip4] 02/03: Use dh_installdocs --link-doc for debug packages.
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Wed Nov 8 15:50:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch debian/master
in repository sip4.
commit c83ac6c2afa6219a4753c968d020b8dc487fc04f
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Wed Nov 8 17:37:03 2017 +0300
Use dh_installdocs --link-doc for debug packages.
---
debian/changelog | 1 +
debian/rules | 12 ++++--------
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index e878c9e..9357c1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ sip4 (4.19.5+dfsg-1) UNRELEASED; urgency=medium
* Update debhelper compat level to 10.
* Bump Standards-Version to 4.1.1, no changes needed.
* Remove debian/python-sip-doc.links, not needed with dh_sphinxdoc.
+ * Use dh_installdocs --link-doc for debug packages.
-- Dmitry Shachnev <mitya57 at debian.org> Thu, 02 Nov 2017 23:48:50 +0300
diff --git a/debian/rules b/debian/rules
index df84a05..ea122c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -157,8 +157,8 @@ binary-common:
dh_testdir
dh_testroot
dh_installman
- dh_installchangelogs NEWS
- dh_installdocs -A
+ dh_installchangelogs -Npython-sip-dbg -Npython3-sip-dbg NEWS
+ dh_installdocs -Npython-sip-dbg -Npython3-sip-dbg
ifeq (,$(findstring -a, $(DH_OPTIONS)))
dh_sphinxdoc -p python-sip-doc
endif
@@ -167,12 +167,8 @@ endif
# don't call strip twice (or make the -dbg doc directories symlinks twice),
# it's in binary-common
ifneq (,$(findstring -a, $(DH_OPTIONS)))
- rm -rf debian/python-sip-dbg/usr/share/doc/python-sip-dbg
- mkdir -p debian/python-sip-dbg/usr/share/doc
- ln -s python-sip debian/python-sip-dbg/usr/share/doc/python-sip-dbg
- rm -rf debian/python3-sip-dbg/usr/share/doc/python3-sip-dbg
- mkdir -p debian/python3-sip-dbg/usr/share/doc
- ln -s python3-sip debian/python3-sip-dbg/usr/share/doc/python3-sip-dbg
+ dh_installdocs -ppython-sip-dbg --link-doc=python-sip
+ dh_installdocs -ppython3-sip-dbg --link-doc=python3-sip
DH_OPTIONS= dh_strip -ppython-sip-dev
DH_OPTIONS= dh_strip -ppython-sip -Npython-sip-dev --dbg-package=python-sip-dbg
DH_OPTIONS= dh_strip -ppython3-sip-dev
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sip4.git
More information about the Python-modules-commits
mailing list