From: Andrea Righi Date: Thu, 15 Jun 2023 15:25:08 +0000 (+0200) Subject: packaging: provide debian packaging info X-Git-Tag: v0.1~13 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b345e421e6c3bb8ecfd093827547cdc53d36a974;p=annotations.git packaging: provide debian packaging info Signed-off-by: Andrea Righi --- diff --git a/.gitignore b/.gitignore index b3c6196..671657c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,11 @@ build dist .mypy_cache annotations.egg-info/ +.pybuild/ +debian/.debhelper/ +debian/annotations.postinst.debhelper +debian/annotations.prerm.debhelper +debian/annotations.substvars +debian/annotations/ +debian/debhelper-build-stamp +debian/files diff --git a/build-deb.sh b/build-deb.sh new file mode 100755 index 0000000..28e1d32 --- /dev/null +++ b/build-deb.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Automatically create a deb from the git repository +# +# Requirements: +# - apt install git-buildpackage + +if [ ! -d .git ]; then + echo "error: must be ran from a git repository" + exit 1 +fi + +# Create upsteam tag +deb_tag=$(dpkg-parsechangelog -S version | cut -d- -f1) +git tag upstream/${deb_tag} + +gbp buildpackage --git-ignore-branch $* + +# Undo packaging changes +git tag -d upstream/${deb_tag} diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..69cb4f9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +annotations (0.1-1) unstable; urgency=medium + + * Initial packaging. + + -- Andrea Righi Thu, 15 Jun 2023 17:18:40 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f6de849 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: annotations +Section: misc +Priority: optional +Maintainer: Andrea Righi +Standards-Version: 4.5.1 +Build-Depends: debhelper (>= 11), dh-python, python3, python3-setuptools +Homepage: https://git.launchpad.net/~arighi/+git/annotations-tools +Vcs-Git: https://git.launchpad.net/~arighi/+git/annotations-tools + +Package: annotations +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, +Description: Manage Ubuntu kernel .config' + Store all the kernel .config information into a file called "annotations" + that contains all the Kconfig options for each supported architecture and + flavour. This works only with Ubuntu kernels at the moment. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..e69de29 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..641186e --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python3 --buildsystem=pybuild 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)