From f77eff5e9a7c7dc39e068493f0db88df98c7c71a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 22 Nov 2018 09:41:44 +0100 Subject: [PATCH] Add git-buildpackage configuration and instructions --- debian/README.source | 29 +++++++++++++++++++++++++++++ debian/gbp.conf | 5 +++++ 2 files changed, 34 insertions(+) create mode 100644 debian/README.source create mode 100644 debian/gbp.conf diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..7a3a376 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,29 @@ +Releasing a new Debian package +============================== + +0. (optional) Test the build: + + gbp dch --snapshot + gbp buildpackage --git-ignore-new + +1. Update Debian changelog for the new release: + + git checkout debian/changelog # remove any snapshots etc. from the changelog + gbp dch --release --commit + + This opens an editor, where you can (if needed) change the package + version or the changelog entries generated automatically from git + commit messages. + +2. Build the package: + + gbp buildpackage --git-tag -b -uc -us + + The `-b -uc` options and possibly others are passed to the build + tool. You can add `--git-builder=sbuild` if you want to use + `sbuild` command to build the package in clean environment. Then + use required sbuild options instead of `-b -uc`. + +3. Push new commit (change log) and version tag to the server: + + git push --follow-tags diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..90066d8 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +upstream-branch=master + +[buildpackage] +no-create-orig=True -- 2.39.2