[Python-modules-commits] r14426 - in packages/python-pipeline/trunk/debian (changelog rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Tue Sep 14 20:23:59 UTC 2010


    Date: Tuesday, September 14, 2010 @ 20:23:47
  Author: jwilk
Revision: 14426

Add get-orig-source target to debian/rules.

Modified:
  packages/python-pipeline/trunk/debian/changelog
  packages/python-pipeline/trunk/debian/rules

Modified: packages/python-pipeline/trunk/debian/changelog
===================================================================
--- packages/python-pipeline/trunk/debian/changelog	2010-09-14 20:22:22 UTC (rev 14425)
+++ packages/python-pipeline/trunk/debian/changelog	2010-09-14 20:23:47 UTC (rev 14426)
@@ -7,13 +7,14 @@
     + New binary package, python3-pipeline.
     + Build-depend on python3-all.
     + Use dh_python3.
+    + Add get-orig-source target to debian/rules.
   * Update the watch file.
   * Make debian/rules a bit more compact.
   * Run tests at build time.
   * Require debhelper (>= 7.0.50~), as overrides are being used.
   * Bump Standards-Version to 3.9.1 (no changes needed).
 
- -- Jakub Wilk <jwilk at debian.org>  Tue, 14 Sep 2010 21:09:30 +0200
+ -- Jakub Wilk <jwilk at debian.org>  Tue, 14 Sep 2010 22:21:27 +0200
 
 python-pipeline (0.1.1-3) unstable; urgency=low
 

Modified: packages/python-pipeline/trunk/debian/rules
===================================================================
--- packages/python-pipeline/trunk/debian/rules	2010-09-14 20:22:22 UTC (rev 14425)
+++ packages/python-pipeline/trunk/debian/rules	2010-09-14 20:23:47 UTC (rev 14426)
@@ -1,5 +1,15 @@
 #!/usr/bin/make -f
 
+HERE = $(dir $(firstword $(MAKEFILE_LIST)))/..
+UPSTREAM_VERSION = $(shell cd $(HERE) && dpkg-parsechangelog | sed -n -r -e '/^Version: ([0-9.]+).*/ { s//\1/p }')
+UPSTREAM_URL_PY2 = $(shell cd $(HERE) && uscan --dehs --download-version="$(UPSTREAM_VERSION)" | sed -n -r -e '/<upstream-url>(.*)<.*/ { s//\1/p }')
+UPSTREAM_URL_PY3 = $(subst /python-pipeline-,/python3-pipeline-,$(UPSTREAM_URL_PY2))
+
+.PHONY: get-orig-source
+get-orig-source:
+	wget $(UPSTREAM_URL_PY2) -O python-pipeline_$(UPSTREAM_VERSION).orig.tar.gz
+	wget $(UPSTREAM_URL_PY3) -O python-pipeline_$(UPSTREAM_VERSION).orig-py3k.tar.gz
+
 .PHONY: override_dh_auto_install
 override_dh_auto_install:
 	dh_auto_install




More information about the Python-modules-commits mailing list