Commit efcc8431 authored by Andrej Shadura's avatar Andrej Shadura

Use short-form dh9 and 3.0 (quilt) format

parent 1206cfeb
......@@ -2,9 +2,14 @@ Source: python-xlib
Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Build-Depends: debhelper (>= 5.0.37.2), python-all (>= 2.3.5-11), python3-all, quilt
Build-Depends-Indep: texlive-latex-base, texinfo, texi2html
Standards-Version: 3.8.3
Build-Depends: debhelper (>= 9),
dh-python,
python-all (>= 2.6.6-3),
python-setuptools (>= 0.6.24),
python3-all,
python3-setuptools (>= 0.6.24),
texi2html
Standards-Version: 3.9.6
Homepage: http://python-xlib.sourceforge.net/
Vcs-Git: git://anonscm.debian.org/collab-maint/python-xlib.git
Vcs-Browser: https://anonscm.debian.org/git/collab-maint/python-xlib.git
......@@ -13,7 +18,8 @@ X-Python3-Version: >= 3.1
Package: python-xlib
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}, dpkg (>= 1.15.4) | install-info
Depends: ${misc:Depends}, ${python:Depends}
Provides: ${python:Provides}
Description: interface for Python to the X11 protocol
python-xlib is a 100% pure Python implementation of the X11
protocol. It currently implements client-side X11R6 fully, supports
......@@ -23,7 +29,7 @@ Description: interface for Python to the X11 protocol
Package: python3-xlib
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, dpkg (>= 1.15.4) | install-info
Depends: ${misc:Depends}, ${python3:Depends}
Description: interface for Python 3 to the X11 protocol
python-xlib is a 100% pure Python 3 implementation of the X11
protocol. It currently implements client-side X11R6 fully, supports
......
README
TODO
doc/html
#!/usr/bin/make -f
#-*- makefile -*-
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Christoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/quilt/quilt.make
export PYBUILD_NAME=xlib
PYVERS:=$(shell pyversions -r)
PY3VERS:=$(shell py3versions -r)
%:
dh $@ --with python2,python3 --buildsystem=pybuild
build: build-stamp
build-stamp: patch
dh_testdir
set -e; \
for py in $(PYVERS) $(PY3VERS); do \
$$py setup.py build; \
done
make -C doc
touch $@
override_dh_auto_build:
dh_auto_build
make -C doc html
clean: unpatch
dh_testdir
dh_testroot
dh_clean
-for py in $(PYVERS) $(PY3VERS); do \
$$py setup.py clean; \
done
rm -f install-stamp build-stamp
find Xlib -name \*.pyc | xargs rm -f
rm -rf build
override_dh_auto_clean:
dh_auto_clean
make -C doc clean
install: install-stamp
install-stamp:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
set -e; \
for py in $(PYVERS); do \
$$py setup.py install --root=debian/python-xlib; \
done
for py in $(PY3VERS); do \
$$py setup.py install --root=debian/python3-xlib; \
done
dh_installdocs -A
dh_installexamples -A examples/*.py
override_dh_installdocs:
dh_installdocs
rm debian/*/usr/share/doc/*/*/Makefile debian/*/usr/share/doc/*/*/texi2html
override_dh_installexamples:
dh_installexamples
# adjust python3 examples hashbang
sed -i '1 s/python$$/python3/' debian/python3-xlib/usr/share/doc/*/examples/*.py
dh_installinfo doc/info/*.info
touch install-stamp
binary-arch: build install
# We have nothing to do by default.
# set all examples executable
chmod +x debian/python*-xlib/usr/share/doc/*/examples/*.py
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs NEWS
override_dh_compress:
dh_compress -X.py
dh_fixperms
dh_python2
dh_python3
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
.PHONY: override_dh_auto_build override_dh_auto_clean override_dh_installexamples override_dh_compress
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment