Change in python/osmo-python-tests[master]: Add debian packaging rules

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Jun 26 14:52:56 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9396 )

Change subject: Add debian packaging rules
......................................................................

Add debian packaging rules

This allows us to package osmopy as debian package.

The package currently includes both the library as well as the
executables/scripts.  It might make sense to separate that into
a pure library package and an "utils" package

Related: SYS#3028
Change-Id: I332fb82d0e8dd09c5cf53caafa6a63297a8e3881
---
A debian/changelog
A debian/compat
A debian/control
A debian/copyright
A debian/rules
A debian/source/format
6 files changed, 85 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3bee65a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+osmo-python-tests (0.0.9) unstable; urgency=medium
+
+  * Initial package
+
+ -- Harald Welte <laforge at gnumonks.org>  Thu, 31 May 2019 10:33:31 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f0df4c0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: osmo-python-tests
+Section: python
+Priority: optional
+Maintainer: Harald Welte <laforge at gnumonks.org>
+Build-Depends: debhelper (>= 9), python, dh-python, python-setuptools, python3, python3-setuptools
+Standards-Version: 3.9.8
+Homepage: http://git.osmocom.org/python/osmo-python-tests/
+Vcs-Git: git://git.osmocom.org/python/osmo-python-tests
+Vcs-Browser: http://git.osmocom.org/python/osmo-python-tests/
+
+Package: python2-osmopy-libs
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: Python code (not only) for testing of Osmocom programs
+ .
+ This package contains the Python 2 version of osmopy libraries.
+
+Package: python2-osmopy-utils
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python2-osmopy-libs
+Description: Python code (not only) for testing of Osmocom programs
+ .
+ This package contains the Python 2 version of osmopy utils.
+
+Package: python3-osmopy-libs
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: Python code (not only) for testing of Osmocom programs
+ .
+ This package contains the Python 3 version of osmopy libraries.
+
+Package: python3-osmopy-utils
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python3-osmopy-libs
+Description: Python code (not only) for testing of Osmocom programs
+ .
+ This package contains the Python 3 version of osmopy utils.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..22d0b8b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: osmo-python-tests
+Source: http://git.osmocom.org/python/osmo-python-tests/
+
+Files: osmopy/obscvty.py
+Copyright: Copyright (C) 2012, 2013 Holger Hans Peter Freyther
+License: GPL-2+
+
+Files: osmopy/osmo_ipa.py
+Copyright: Copyright (C) 2016 sysmocom s.f.m.c. GmbH
+License: GPL-3+
+
+Files: osmopy/osmoutil.py
+Copyright: (C) 2013 by Katerina Barone-Adesi <kat.obsc at gmail.com>
+License: GPL-3+
+
+Files: osmopy/osmo_interact/*
+Copyright: (C) 2017 by sysmocom s.f.m.c. GmbH <info at sysmocom.de>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2018 Harald Welte <laforge at gnumonks.org>
+License: GPL-2+
+
+Files: setup.py
+Copyright: (C) 2013 by Katerina Barone-Adesi <kat.obsc at gmail.com>
+License: AGPL-3.0+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d9e98af
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with python2,python3
+
+override_dh_auto_install:
+	python2 setup.py install --install-layout=deb --root=$(CURDIR)/debian/python2-osmopy-libs
+	rm -rf $(CURDIR)/debian/python2-osmopy-libs/usr/bin
+	python2 setup.py install --install-layout=deb --root=$(CURDIR)/debian/python2-osmopy-utils
+	rm -rf $(CURDIR)/debian/python2-osmopy-utils/usr/lib
+	python3 setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-osmopy-libs
+	rm -rf $(CURDIR)/debian/python3-osmopy-libs/usr/bin
+	python3 setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-osmopy-utils
+	rm -rf $(CURDIR)/debian/python3-osmopy-utils/usr/lib
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 https://gerrit.osmocom.org/9396
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I332fb82d0e8dd09c5cf53caafa6a63297a8e3881
Gerrit-Change-Number: 9396
Gerrit-PatchSet: 3
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Thorsten Alteholz <osmocom at alteholz.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180626/fcd2a7fd/attachment.htm>


More information about the gerrit-log mailing list