[Python-modules-commits] r26588 - in packages/django-ldapdb/trunk/debian (rules watch)
obergix at users.alioth.debian.org
obergix at users.alioth.debian.org
Wed Nov 27 12:20:20 UTC 2013
Date: Wednesday, November 27, 2013 @ 12:20:19
Author: obergix
Revision: 26588
Add get-orig-source and wtach file
Added:
packages/django-ldapdb/trunk/debian/watch
Modified:
packages/django-ldapdb/trunk/debian/rules
Modified: packages/django-ldapdb/trunk/debian/rules
===================================================================
--- packages/django-ldapdb/trunk/debian/rules 2013-11-27 12:20:15 UTC (rev 26587)
+++ packages/django-ldapdb/trunk/debian/rules 2013-11-27 12:20:19 UTC (rev 26588)
@@ -7,3 +7,12 @@
dh $@ --with python2 --buildsystem=python_distutils
+PKD = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+
+.PHONY: get-orig-source
+## http://wiki.debian.org/onlyjob/get-orig-source
+get-orig-source: $(info I: $(PKG)_$(VER))
+ @echo "# Downloading..."
+ uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
Added: packages/django-ldapdb/trunk/debian/watch
===================================================================
--- packages/django-ldapdb/trunk/debian/watch (rev 0)
+++ packages/django-ldapdb/trunk/debian/watch 2013-11-27 12:20:19 UTC (rev 26588)
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/django-ldapdb-$1\.tar\.gz/ \
+ https://github.com/jlaine/django-ldapdb/tags .*/v?(\d\S*)\.tar\.gz
More information about the Python-modules-commits
mailing list