Commit 631ed2b1 authored by Thomas Goirand's avatar Thomas Goirand

Using pkgos-dh_auto_install.

parent 0df811ce
......@@ -20,6 +20,7 @@ python-pyngus (2.2.0-1) UNRELEASED; urgency=medium
* New upstream release.
* VCS URLs using Salsa.
* Standards-Version is now 4.1.3.
* Using pkgos-dh_auto_install.
-- Thomas Goirand <zigo@debian.org> Sun, 11 Feb 2018 11:26:12 +0100
......
......@@ -7,13 +7,14 @@ Uploaders:
Build-Depends:
debhelper (>= 9),
dh-python,
openstack-pkg-tools,
python-all,
python-setuptools,
python3-all,
python3-setuptools,
Build-Depends-Indep:
python-qpid-proton (>= 0.9),
python3-qpid-proton (>= 0.9),
python-qpid-proton,
python3-qpid-proton,
Standards-Version: 4.1.3
Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-pyngus
Vcs-Git: https://salsa.debian.org/openstack-team/python/python-pyngus.git
......@@ -22,7 +23,7 @@ Homepage: https://github.com/kgiusti/pyngus
Package: python-pyngus
Architecture: all
Depends:
python-qpid-proton (>= 0.9),
python-qpid-proton,
${misc:Depends},
${python:Depends},
Description: callback API implemented over Proton - Python 2.7
......@@ -34,7 +35,7 @@ Description: callback API implemented over Proton - Python 2.7
Package: python3-pyngus
Architecture: all
Depends:
python3-qpid-proton (>= 0.9),
python3-qpid-proton,
${misc:Depends},
${python3:Depends},
Description: callback API implemented over Proton - Python 3.x
......
#!/usr/bin/make -f
PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
UPSTREAM_GIT := https://github.com/kgiusti/pyngus.git
-include /usr/share/openstack-pkg-tools/pkgos.make
include /usr/share/openstack-pkg-tools/pkgos.make
%:
dh $@ --buildsystem=python_distutils --with python2,python3
override_dh_auto_install:
set -e ; for pyvers in $(PYTHONS); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python-pyngus; \
done
set -e ; for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-pyngus; \
done
rm -rf $(CURDIR)/debian/python*-pyngus/usr/lib/python*/dist-packages/*.pth
pkgos-dh_auto_install
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
......
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