[Pkg-bitcoin-commits] [libunivalue] 20/38: Use CDBS get-orig-source target for git snapshots. Mention in README.source.
Jonas Smedegaard
dr at jones.dk
Mon Feb 27 01:13:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libunivalue.
commit 8289f140cf80da5e58b3ca8c0751357a50e266f8
Author: Jonas Smedegaard <dr at jones.dk>
Date: Fri Jan 27 17:36:04 2017 +0100
Use CDBS get-orig-source target for git snapshots. Mention in README.source.
---
debian/README.source | 20 ++++++++++++++++++++
debian/rules | 3 +++
2 files changed, 23 insertions(+)
diff --git a/debian/README.source b/debian/README.source
index f88449e..9d4a473 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -9,3 +9,23 @@ More info here: http://wiki.debian.org/CDBS+git-buildpackage
-- Jonas Smedegaard <dr at jones.dk> Mon, 18 Feb 2013 12:55:37 +0100
+
+
+Getting new upstream release
+----------------------------
+
+Packaging is linked with upstream source, tracked as separate git remote:
+
+ * git remote add upstream-git https://github.com/jgarzik/univalue
+ * git fetch upstream-git
+
+To import + link an official release, use uscan:
+
+ * gbp import-orig --upstream-vcs-tag=v1.0.2 --uscan
+
+To import + link a snapshot, use get-orig-source target:
+
+ * debian/rules get-orig-source DEB_UPSTREAM_VERSION=1.0.2+20161120 DEB_UPSTREAM_TARBALL_BASENAME=77974f3
+ * gbp import-orig --upstream-vcs-tag=77974f3 ../tarballs/libunivalue_1.0.2+20161120.orig.tar.gz
+
+ -- Jonas Smedegaard <dr at jones.dk> Fri, 27 Jan 2017 17:34:08 +0100
diff --git a/debian/rules b/debian/rules
index 82a813b..3f02db7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,6 +30,7 @@ DEB_PHONY_RULES += debian/control.in
debian/control.in:: debian/control.in.in
sed -e 's/__LIBPKG__/$(pkg-lib)/g' <$< >$@
+include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
@@ -41,6 +42,8 @@ lib = lib$(stem)
pkg-lib = lib$(stem)$(major)
pkg-dev = lib$(stem)-dev
+DEB_UPSTREAM_URL = https://github.com/jgarzik/univalue/archive
+
# Build-depend unversioned on debhelper
# TODO: Drop when adopted in cdbs
CDBS_BUILD_DEPENDS_rules_debhelper_v9 = debhelper
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libunivalue.git
More information about the Pkg-bitcoin-commits
mailing list