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
Thu May 31 09:45:44 UTC 2018


Harald Welte has uploaded this change for review. ( 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
5 files changed, 62 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/96/9396/1

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9b158f6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+osmopy (0.0.9-1) 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..334416f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: osmopy
+Section: non-free/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: python-osmopy
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Description: Python code (not only) for testing of Osmocom programs
+ FIXME
+ .
+ This package contains the Python 2 version of osmopy
+
+Package: python3-osmopy
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: Python code (not only) for testing of Osmocom programs
+ FIXME
+ .
+ This package contains the Python 3 version of osmopy
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..996db77
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,23 @@
+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+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..452ab3c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with python2,python3
+
+override_dh_auto_install:
+	python  setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-osmopy
+	python3 setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-osmopy

-- 
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: newchange
Gerrit-Change-Id: I332fb82d0e8dd09c5cf53caafa6a63297a8e3881
Gerrit-Change-Number: 9396
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180531/be0ce524/attachment.htm>


More information about the gerrit-log mailing list