[Pkg-voip-commits] r5944 - in /libmfcr2/trunk/debian: changelog rules
tzafrir-guest at alioth.debian.org
tzafrir-guest at alioth.debian.org
Tue Jul 15 22:47:40 UTC 2008
Author: tzafrir-guest
Date: Tue Jul 15 22:47:40 2008
New Revision: 5944
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5944
Log:
* Proper "~pre1' version .
* A matching get-orig-source target.
Modified:
libmfcr2/trunk/debian/changelog
libmfcr2/trunk/debian/rules
Modified: libmfcr2/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/libmfcr2/trunk/debian/changelog?rev=5944&op=diff
==============================================================================
--- libmfcr2/trunk/debian/changelog (original)
+++ libmfcr2/trunk/debian/changelog Tue Jul 15 22:47:40 2008
@@ -1,4 +1,4 @@
-libmfcr2 (0.0.6-1) unstable; urgency=low
+libmfcr2 (0.0.6~pre1-1) unstable; urgency=low
* Initial release (Closes: #423700)
Modified: libmfcr2/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/libmfcr2/trunk/debian/rules?rev=5944&op=diff
==============================================================================
--- libmfcr2/trunk/debian/rules (original)
+++ libmfcr2/trunk/debian/rules Tue Jul 15 22:47:40 2008
@@ -8,6 +8,18 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+ | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/~dfsg$$//' -e 's/~pre/pre/')
+DEBUPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
+
+FILENAME := libmfcr2_$(DEBUPVERSION).orig.tar.gz
+FULLNAME := libmfcr2-$(DEBUPVERSION)
+URL := http://www.soft-switch.org/downloads/unicall/libmfcr2-$(UPVERSION).tgz
-include /usr/share/quilt/quilt.make
@@ -110,5 +122,16 @@
dh_md5sums
dh_builddeb
+print-version:
+ @@echo "Debian version: $(DEBVERSION)"
+ @@echo "Debian tarball version: $(DEBUPVERSION)"
+ @@echo "Upstream version: $(UPVERSION)"
+
+get-orig-source:
+ @@dh_testdir
+ @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+ @@echo Downloading $(FILENAME) from $(URL) ...
+ @@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch
More information about the Pkg-voip-commits
mailing list