Using pkgos-dh_auto_install from openstack-pkg-tools >= 52~.

This commit is contained in:
Thomas Goirand 2016-07-13 22:06:16 +02:00
parent 8dcb7f867d
commit 435143c1d3
3 changed files with 3 additions and 13 deletions

1
debian/changelog vendored
View File

@ -6,6 +6,7 @@ python-monotonic (1.1-1) experimental; urgency=medium
[ Thomas Goirand ]
* New upstream release.
* Using pkgos-dh_auto_install from openstack-pkg-tools >= 52~.
-- Thomas Goirand <zigo@debian.org> Wed, 13 Jul 2016 21:59:28 +0200

2
debian/control vendored
View File

@ -4,8 +4,8 @@ Priority: optional
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders: Thomas Goirand <zigo@debian.org>,
Build-Depends: debhelper (>= 9),
openstack-pkg-tools,
dh-python,
openstack-pkg-tools (>= 52~),
python-all,
python-setuptools,
python3-all,

13
debian/rules vendored
View File

@ -1,8 +1,5 @@
#!/usr/bin/make -f
PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
UPSTREAM_GIT := https://github.com/atdt/monotonic.git
include /usr/share/openstack-pkg-tools/pkgos.make
@ -10,15 +7,7 @@ include /usr/share/openstack-pkg-tools/pkgos.make
dh $@ --buildsystem=python_distutils --with python2,python3
override_dh_install:
set -e ; for pyvers in $(PYTHONS); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python-monotonic; \
done
set -e ; for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-monotonic; \
done
rm -rf $(CURDIR)/debian/python*-monotonic/usr/lib/python*/dist-packages/*.pth
pkgos-dh_auto_install
override_dh_clean:
dh_clean -O--buildsystem=python_distutils