Make a Debian package

This commit is contained in:
Alexandre Iooss 2020-09-14 15:16:09 +02:00
parent f9de4fb9e4
commit b4821361ce
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
8 changed files with 74 additions and 1 deletions

View File

@ -1,5 +1,6 @@
stages:
- quality-assurance
- build
linters:
image: python:3.7
@ -11,3 +12,15 @@ linters:
# Be nice to new contributors, but please use `tox` before commit
allow_failure: true
build-deb:
image: debian:buster
stage: build
before_script:
- apt-get update && apt-get -y --no-install-recommends install build-essential debmake dh-python debhelper python3-all python3-setuptools
script:
- dpkg-buildpackage
- mkdir build && cp ../*.deb build/
artifacts:
paths:
- build/*.deb

5
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,5 @@
ghostream for Debian
Install ghostream web server and systemd service unit.
-- Alexandre Iooss <erdnaxe@crans.org> Wed, 14 Sep 2020 15:10:42 +0200

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
ghostream (0.1.0) unstable; urgency=low
* Initial release.
-- Alexandre Iooss <erdnaxe@crans.org> Wed, 14 Sep 2020 15:10:42 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
11

16
debian/control vendored Normal file
View File

@ -0,0 +1,16 @@
Source: ghostream
Section: devel
Priority: optional
Maintainer: Les Nounous <roots@crans.org>
Build-Depends: debhelper (>=11~), dh-python, python3-all, python3-setuptools
Standards-Version: 4.1.4
Homepage: https://gitlab.crans.org/nounous/ghostream
X-Python3-Version: >= 3.6
Package: ghostream
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${python3:Depends}
Description: simple streaming server web interface
Gostream is a web interface that uses OvenMediaEngine and NGINX streaming
capabilities to build a simple and efficient streaming server.

28
debian/copyright vendored Normal file
View File

@ -0,0 +1,28 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Les Nounous
Upstream-Contact: Les Nounous <nounous@crans.org>
Source: https://gitlab.crans.org/nounous/ghostream
Files: *
Copyright: 2020 Cr@ns <roots@crans.org>
License: GPL-2+
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later
version.
.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more
details.
.
You should have received a copy of the GNU General Public
License along with this package; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301 USA
.
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.

5
debian/rules vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
%:
dh $@ --with python3 --buildsystem=pybuild

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='ghostream',
version='1.0',
version='0.1.0',
packages=find_packages(),
include_package_data=True,
install_requires=[