[SCM] jcgui/master: debian/rules: Provide a mechanism to re-generate a DFSG-clean tarball.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Tue Jan 10 12:03:15 UTC 2012
The following commit has been merged in the master branch:
commit f86b5defae4f2a414c2da052582935d2c7dfc40e
Author: Alessio Treglia <alessio at debian.org>
Date: Tue Jan 10 13:01:59 2012 +0100
debian/rules: Provide a mechanism to re-generate a DFSG-clean tarball.
diff --git a/debian/rules b/debian/rules
index 639334b..1662de1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,10 @@
WAF = ./waf
+upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\.dfsg)?.*$$/\1/p')
+dfsg_version = $(upstream_version)+dfsg0
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+
%:
dh $@
@@ -18,3 +22,13 @@ override_dh_auto_clean:
override_dh_auto_install:
$(WAF) install --destdir=$(CURDIR)/debian/jcgui
+
+get-orig-source:
+ uscan --noconf --force-download --rename --repack \
+ --download-current-version --destdir=.
+ tar -xzf $(pkg)_$(upstream_version).orig.tar.gz
+ mv $(pkg)-$(upstream_version) $(pkg)-$(dfsg_version)
+ cd $(pkg)-$(dfsg_version) && ../debian/unpack_waf.sh && cd ..
+ GZIP="-9fn --rsyncable" tar -czf $(pkg)_$(dfsg_version).orig.tar.gz $(pkg)-$(dfsg_version)
+ rm -rf $(pkg)-$(dfsg_version)
+ rm -f $(pkg)_$(upstream_version).orig.tar.gz
--
jcgui packaging
More information about the pkg-multimedia-commits
mailing list