osmith submitted this change.

View Change

Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified
Add debian packaging for pyosmocom

Change-Id: If862c14c7802d1967d99c3939038b8eb7fe301f3
---
A debian/changelog
A debian/compat
A debian/control
A debian/copyright
A debian/python3-pyosmocom-doc.doc-base
A debian/rules
A debian/source/format
7 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..eaa9715
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pyosmocom (0.0.4) unstable; urgency=medium
+
+ * initial release
+
+ -- Harald Welte <laforge@osmocom.org> Fri, 19 Sep 2024 20:48:02 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c8d3275
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: pyosmocom
+Section: python
+Priority: optional
+Maintainer: Osmocom team <openbsc@lists.osmocom.org>
+Build-Depends: debhelper (>= 10),
+ dh-python,
+ python3,
+ python3-setuptools,
+ pybuild-plugin-pyproject,
+ python3-sphinx,
+ python3-sphinx-argparse
+Standards-Version: 3.9.8
+Homepage: https://osmocom.org/projects/pyosmocom/wiki
+Vcs-Git: https://gitea.osmocom.org/osmocom/pyosmocom
+Vcs-Browser: https://gitea.osmocom.org/osmocom/pyosmocom
+
+Package: python3-pyosmocom-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Python library code related to Open Source Mobile Communications
+ .
+ This package contains the documentation.
+
+Package: python3-pyosmocom
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends},
+ python3-construct
+Description: Python library code related to Open Source Mobile Communications
+ .
+ This package contains the Python 3 version of the pyosmocom libraries.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0122624
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pyosmocom
+Source: https://gitea.osmocom.org/osmocom/pyosmocom
+
+Files: src/osmocom/construct.py src/osmocom/gsmtap.py src/osmocom/tlv.py
+Copyright: (C) 2021-2022 by Harald Welte <laforge@osmocom.org>
+License: GPL-2+
+
+Files: src/osmocom/utils.py
+Copyright: Copyright (C) 2009-2010 Sylvain Munaut <tnt@246tNt.com>
+ Copyright (C) 2021 Harald Welte <laforge@osmocom.org>
+License: GPL-2+
+
+Files: src/osmocom/gsup/*.py
+Copyright: (C) 2021-2024 by Harald Welte <laforge@osmocom.org>
+License: GPL-2+
diff --git a/debian/python3-pyosmocom-doc.doc-base b/debian/python3-pyosmocom-doc.doc-base
new file mode 100644
index 0000000..576a244
--- /dev/null
+++ b/debian/python3-pyosmocom-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python3-pyosmocom-doc
+Title: python3-pyosmocom Documentation
+Author: Osmocom
+Abstract: Sphinx documentation for python3-pyosmocom
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python3-pyosmocom-doc/html/index.html
+Files: /usr/share/doc/python3-pyosmocom-doc/html/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7ba83c9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=pyosmocom
+
+%:
+ dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_sphinxdoc:
+ http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 HTTP_PROXY=127.0.0.1:9 HTTPS_PROXY=127.0.0.1:9 PYTHONPATH=$(CURDIR)/.pybuild/cpython3_$(shell py3versions -vd)_pysmocom/build PYTHON=python3 python3 -m sphinx $(SPHINXOPTS) -b html docs $(CURDIR)/debian/python3-pyosmocom-doc/usr/share/doc/python3-pyosmocom-doc/html
+ dh_sphinxdoc
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)

To view, visit change 38246. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: If862c14c7802d1967d99c3939038b8eb7fe301f3
Gerrit-Change-Number: 38246
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>