debian: Package cbc-apitool.py as a sub-package

We don't want osmo-cbc to depend on python3 at runtime, so let's use
a sub-package for osmo-cbc-apitool.py

Change-Id: Id16613811993a2baa06ebc2da6c6591ace70a3f9
This commit is contained in:
Harald Welte 2021-01-24 14:27:48 +01:00
parent 2b158c3b2d
commit bc80894f0e
3 changed files with 10 additions and 2 deletions

6
debian/control vendored
View File

@ -27,6 +27,12 @@ Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: OsmoCBC: Osmocom's Cell Broadcast Center
Package: osmo-cbc-utils
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}, python3
Description: Utilities for OsmoCBC: Osmocom's Cell Broadcast Center
Package: osmo-cbc-dbg
Section: debug
Architecture: any

1
debian/osmo-cbc-utils.install vendored Normal file
View File

@ -0,0 +1 @@
usr/bin/cbc-apitool.py

5
debian/rules vendored
View File

@ -50,8 +50,9 @@ override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_FLAGS)
#
# Do not install libtool archive, python .pyc .pyo
#override_dh_install:
# dh_install --list-missing -X.la -X.pyc -X.pyo
override_dh_install:
install -m 755 contrib/cbc-apitool.py debian/tmp/usr/bin/cbc-apitool.py
dh_install
# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
override_dh_strip: