[Pkg-voip-commits] [starpy] 05/29: Create print-version and get-orig-source tags; v1.0.0
tzafrir at debian.org
tzafrir at debian.org
Fri Aug 14 15:05:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master
in repository starpy.
commit edffe637abebcde7e6cab21a806932a54c3339f9
Author: Paul Belanger <paul.belanger at polybeacon.com>
Date: Sat Feb 11 13:14:28 2012 -0500
Create print-version and get-orig-source tags; v1.0.0
The logic was taken from the existing asterisk package. Upstream also
has an official 1.0.0 release so we've updated our version number
accordingly.
Signed-off-by: Paul Belanger <paul.belanger at polybeacon.com>
---
debian/changelog | 4 ++--
debian/rules | 19 +++++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 8c89b8b..0825027 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-starpy (1.1.0~20102011-1) unstable; urgency=low
+starpy (1.0.0-1) UNRELEASED; urgency=low
* Initial release. (Closes: #625216))
- -- Tzafrir Cohen <tzafrir at debian.org> Mon, 21 Nov 2011 20:27:15 +0200
+ -- Paul Belanger <paul.belanger at polybeacon.com> Sat, 11 Feb 2012 13:12:18 -0500
diff --git a/debian/rules b/debian/rules
index 2d33f6a..d84b5fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,23 @@
#!/usr/bin/make -f
+DEBVERSION:=$(shell dpkg-parsechangelog | sed -n -e 's/Version: //p')
+DEB_SRC_VERSION:=$(shell echo $(DEBVERSION) | sed -e 's/-[^-]\+$$//')
+UPVERSION:=$(shell echo $(DEB_SRC_VERSION) | sed -e 's/[.~]dfsg//' -e 's/~\(\(rc\|beta\)[0-9]\)/-\1/')
+
+FILENAME := starpy_$(DEB_SRC_VERSION).orig.tar.gz
+URL := https://github.com/downloads/asterisk-org/starpy/starpy-$(UPVERSION).tar.gz
+
%:
dh $@
+
+print-version:
+ @@echo "Debian version: $(DEBVERSION)"
+ @@echo "Upstream version: $(UPVERSION)"
+
+get-orig-source:
+ @@dh_testdir
+ @@[ -d ../tarballs/. ] || mkdir -p ../tarballs
+ @@if [ ! -f ../tarballs/$(FILENAME) ]; then \
+ echo Downloading $(FILENAME) from $(URL) ...; \
+ wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL); \
+ fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/starpy.git
More information about the Pkg-voip-commits
mailing list