Use dh_install to split the build into multiple binary packages.

This commit is contained in:
Stefano Rivera 2019-09-03 21:07:21 -03:00
parent 7fd1a6a766
commit 03d2e89f31
5 changed files with 5 additions and 8 deletions

1
debian/changelog vendored
View File

@ -11,6 +11,7 @@ ubuntu-dev-tools (0.172) UNRELEASED; urgency=medium
that it's scripts-only, so manually declare one.
* Install pull-debian-source as python 3. It was ported, and doesn't work
under python 2 any more. (LP: #1841127)
* Use dh_install to split the build into multiple binary packages.
-- Mattia Rizzolo <mattia@debian.org> Fri, 23 Aug 2019 10:07:40 +0200

1
debian/python-ubuntutools.install vendored Normal file
View File

@ -0,0 +1 @@
/usr/lib/python2.7

1
debian/python3-ubuntutools.install vendored Normal file
View File

@ -0,0 +1 @@
/usr/lib/python3.*

8
debian/rules vendored
View File

@ -1,12 +1,4 @@
#!/usr/bin/make -f
export PYBUILD_NAME=ubuntutools
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_install:
dh_install
mkdir -p debian/ubuntu-dev-tools/usr
mv debian/python-ubuntutools/usr/bin debian/ubuntu-dev-tools/usr/
mv debian/python-ubuntutools/usr/share debian/ubuntu-dev-tools/usr/

2
debian/ubuntu-dev-tools.install vendored Normal file
View File

@ -0,0 +1,2 @@
/usr/bin
/usr/share