From 37086bc6c73fe0fd8af35a4d23072e137b408e8e Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 8 Dec 2019 14:02:09 +0100 Subject: [PATCH] debian build (first take) --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 12 ++++++++++++ debian/rules | 5 +++++ debian/source/format | 1 + owrx/version.py | 6 +++++- setup.py | 16 ++++++++++++++++ 7 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 setup.py diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3c19b4b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +openwebrx (0.18) UNRELEASED; urgency=low + + * Initial release. + + -- Jakob Ketterl Sun, 08 Dec 2019 12:35:48 +0000 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..8e7016a --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: openwebrx +Maintainer: Jakob Ketterl +Section: hamradio +Priority: optional +Standards-Version: 4.2.0 +Build-Depends: debhelper (>= 10), dh-python, python3 (>= 3.6) + +Package: openwebrx +Architecture: all +Depends: python3 (>= 3.6), csdr (>= 0.15), netcat, +Description: multi-user web sdr + Open source, multi-user SDR receiver with a web interface \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..fc2170d --- /dev/null +++ b/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f +export PYBUILD_NAME=openwebrx + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..9f67427 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) \ No newline at end of file diff --git a/owrx/version.py b/owrx/version.py index 73f2d99..a040f27 100644 --- a/owrx/version.py +++ b/owrx/version.py @@ -1 +1,5 @@ -openwebrx_version = "v0.18" +from distutils.version import StrictVersion + +_versionstring = "0.18.0" +strictversion = StrictVersion(_versionstring) +openwebrx_version = "v{0}".format(strictversion) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..12c1562 --- /dev/null +++ b/setup.py @@ -0,0 +1,16 @@ +from setuptools import setup, find_packages +from owrx.version import strictversion + +setup( + name="OpenWebRX", + version=str(strictversion), + packages=find_packages(), + entry_points={"console_scripts": ["openwebrx=openwebrx:main"]}, + # use the github page for now + url="https://github.com/jketterl/openwebrx", + author="AndrĂ¡s Retzler, Jakob Ketterl", + author_email="randras@sdr.hu, jakob.ketterl@gmx.de", + maintainer="Jakob Ketterl", + maintainer_email="jakob.ketterl@gmx.de", + license="GAGPL", +)