From 03f02e0ce22dbc764fac299c2331d1b9aa35293d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ruvalcaba?= Date: Mon, 4 Apr 2022 20:26:07 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20First=20Debian=20packaging=20com?= =?UTF-8?q?mit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 12 ++++++++++++ debian/clean | 1 + debian/control | 29 +++++++++++++++++++++++++++++ debian/copyright | 41 +++++++++++++++++++++++++++++++++++++++++ debian/docs | 2 ++ debian/offpunk.install | 1 + debian/rules | 20 ++++++++++++++++++++ debian/scripts/offpunk | 10 ++++++++++ debian/source/format | 1 + 9 files changed, 117 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/clean create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/offpunk.install create mode 100755 debian/rules create mode 100755 debian/scripts/offpunk create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..950f255 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,12 @@ +offpunk (1.2.0-2) unstable; urgency=low + + * Fix package mandatory and optional dependencies. + * Add project's docs. + + -- Iván Ruvalcaba Mon, 04 Apr 2022 17:33:00 -0500 + +offpunk (1.2.0-1) unstable; urgency=low + + * New upstream version. + + -- Iván Ruvalcaba Fri, 01 Apr 2022 12:15:00 -0500 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..a3eb8a0 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +offpunk.egg-info/ diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a07024d --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: offpunk +Section: net +Priority: optional +Maintainer: Iván Ruvalcaba +Build-Depends: + debhelper-compat (= 13), + python3-all, +Build-Depends-Indep: + dh-python, +Rules-Requires-Root: no +Standards-Version: 4.6.0 +Homepage: https://notabug.org/ploum/offpunk + +Package: offpunk +Architecture: all +Depends: + less, + file, + xdg-utils, + python3-cryptography, + python3-feedparser, + python3-requests, + python3-bs4, + ${misc:Depends}, + ${python3:Depends} +Suggests: xsel, python3-setproctitle, python3-readability, ripgrep, chafa (>= 1.10.0), python3-pil +Description: Offpunk is an offline-first browser for the smolnet + A command-line and offline-first smolnet browser/feed reader for Gemini, + Gopher, Spartan and Web. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2aadc0e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,41 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: offpunk +Source: https://notabug.org/ploum/offpunk +Files: * +Copyright: 2022 Ploum and contributors +License: BSD-2-Clause + +Files: debian/* +Copyright: 2022 Iván Ruvalcaba +License: FSFAP + +License: BSD-2-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: FSFAP + Copying and distribution of this file, with or without modification, are + permitted in any medium without royalty, provided the copyright notice + and this notice are preserved. This file is offered as-is, without any + warranty. + + See the GNU All-Permissive License for more details + . diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..f0f644e --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +LICENSE +README.md diff --git a/debian/offpunk.install b/debian/offpunk.install new file mode 100644 index 0000000..6b02e32 --- /dev/null +++ b/debian/offpunk.install @@ -0,0 +1 @@ +debian/scripts/offpunk usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..881dd88 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +export PYBUILD_DESTDIR_python3=debian/offpunk/ +export LC_ALL=C.UTF-8 + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_build: + dh_auto_build + +override_dh_auto_install: + dh_auto_install + chmod 755 debian/offpunk/usr/bin/offpunk + rm debian/offpunk/usr/bin/offpunk + find debian -type d -empty -delete + +override_dh_installdocs: + dh_installdocs diff --git a/debian/scripts/offpunk b/debian/scripts/offpunk new file mode 100755 index 0000000..1469d50 --- /dev/null +++ b/debian/scripts/offpunk @@ -0,0 +1,10 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + +import re +import sys +from offpunk import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)