[Git][debian-gis-team/tirex][debian/main] added upstream code and branch handling information

Felix Delattre gitlab at salsa.debian.org
Wed Aug 19 11:17:33 BST 2020



Felix Delattre pushed to branch debian/main at Debian GIS Project / tirex


Commits:
4cb261a8 by Felix Delattre at 2020-08-19T10:17:20+00:00
added upstream code and branch handling information

- - - - -


4 changed files:

- + debian/gbp.conf
- + debian/get-orig-source
- + debian/upstream/metadata
- + debian/watch


Changes:

=====================================
debian/gbp.conf
=====================================
@@ -0,0 +1,19 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream/latest
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = debian/main
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
+
+[buildpackage]
+pbuilder-options = --source-only-changes


=====================================
debian/get-orig-source
=====================================
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+REMOTE=upstream
+BRANCH=${REMOTE}/master
+
+if [ $(git remote show ${REMOTE} | wc -l) -eq 0 ]; then
+	git remote add ${REMOTE} https://github.com/openstreetmap/tirex.git
+fi
+
+git fetch ${REMOTE} --no-tags
+
+PACKAGE=$(dpkg-parsechangelog | grep ^Source: | awk '{print $2}')
+
+COMMIT=$(git log -n1 --format=format:%h ${BRANCH})
+DATE=$(date +%Y%m%d --date="@$(git log -n1 --format=format:%ct ${BRANCH})")
+
+VERSION="0.6.3"
+
+git archive --format=tar.gz --prefix=${PACKAGE}-${VERSION}/ -o ../${PACKAGE}_${VERSION}.orig.tar.gz ${BRANCH}


=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/openstreetmap/tirex/issues
+Bug-Submit: https://github.com/openstreetmap/tirex/issues/new
+Repository: https://github.com/openstreetmap/tirex.git
+Repository-Browse: https://github.com/openstreetmap/tirex


=====================================
debian/watch
=====================================
@@ -0,0 +1,7 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/;s/\-/\./g,\
+filenamemangle=s/(?:.*?)?(?:rel|v|tirex)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/tirex-$1.$2/ \
+https://github.com/openstreetmap/tirex/releases \
+(?:.*?/archive/)?(?:rel|v|tirex)?[\-\_]?(\d[\d\-\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))



View it on GitLab: https://salsa.debian.org/debian-gis-team/tirex/-/commit/4cb261a844542910695312d92feb12552caafa79

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/tirex/-/commit/4cb261a844542910695312d92feb12552caafa79
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200819/07436690/attachment-0001.html>


More information about the Pkg-grass-devel mailing list