Commit 6357c46e authored by TANIGUCHI Takaki's avatar TANIGUCHI Takaki

use dh-exec

parent a9460553
......@@ -4,6 +4,7 @@ Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: TANIGUCHI Takaki <takaki@debian.org>
Build-Depends: debhelper (>= 9)
, dh-exec
, python-all (>= 2.6.6-3)
, python3-all
, python-setuptools
......@@ -24,8 +25,8 @@ Description: encoder, decoder, and lint/validator for JSON in Python
Package: python3-demjson
Architecture: all
Depends: python3, ${python:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Depends: python3, ${python3:Depends}, ${misc:Depends}
Provides: ${python3:Provides}
Description: encoder, decoder, and lint/validator for JSON in Python
demjson is a comprehensive Python language binding to the JSON
language-independent data encoding standard, which is often used as a
......
#!/usr/bin/dh-exec
jsonlint => /usr/bin/jsonlint-py
#!/usr/bin/dh-exec
jsonlint => /usr/bin/jsonlint-py3
#!/usr/bin/dh-exec --with=install
/usr/bin/jsonlint => /usr/bin/jsonlint-py
debian/jsonlint.1 => /usr/share/man/man1/jsonlint-py.1
#!/usr/bin/dh-exec --with=install
/usr/bin/jsonlint => /usr/bin/jsonlint-py3
debian/jsonlint.1 => /usr/share/man/man1/jsonlint-py3.1
#!/usr/bin/make -f
export PYBUILD_DESTDIR_python2=debian/python-demjson/
export PYBUILD_DESTDIR_python3=debian/python3-demjson/
export PYBUILD_NAME=demjson
export PYBUILD_AFTER_INSTALL=rm -f {destdir}/usr/bin/jsonlint
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_install:
dh_install
mv $(CURDIR)/debian/python3-demjson/usr/bin/jsonlint \
$(CURDIR)/debian/python3-demjson/usr/bin/jsonlint3
#override_dh_install:
# dh_install
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