packaging: provide debian packaging info
authorAndrea Righi <andrea.righi@canonical.com>
Thu, 15 Jun 2023 15:25:08 +0000 (17:25 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Fri, 16 Jun 2023 10:10:09 +0000 (12:10 +0200)
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
.gitignore
build-deb.sh [new file with mode: 0755]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]

index b3c61960bccc387e7d882802a3898050ec7d9118..671657cf240dadd01d2e938f673acc07b10b6011 100644 (file)
@@ -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 (executable)
index 0000000..28e1d32
--- /dev/null
@@ -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 (file)
index 0000000..69cb4f9
--- /dev/null
@@ -0,0 +1,5 @@
+annotations (0.1-1) unstable; urgency=medium
+
+  * Initial packaging.
+
+ -- Andrea Righi <andrea.righi@canonical.com>  Thu, 15 Jun 2023 17:18:40 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b4de394
--- /dev/null
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..f6de849
--- /dev/null
@@ -0,0 +1,18 @@
+Source: annotations
+Section: misc
+Priority: optional
+Maintainer: Andrea Righi <andrea.righi@canonical.com>
+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 (file)
index 0000000..e772481
--- /dev/null
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..641186e
--- /dev/null
@@ -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 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)