[Python-modules-commits] r33249 - in packages/python-keyczar/trunk/debian (rules watch)

chrisk-guest at users.alioth.debian.org chrisk-guest at users.alioth.debian.org
Sun Jul 5 20:52:44 UTC 2015


    Date: Sunday, July 5, 2015 @ 20:52:43
  Author: chrisk-guest
Revision: 33249

d/rules: Add get-orig-source target                                                                              

To this end, the filenamemangle option was dropped from d/watch, as the
source is repacked anyway.

Modified:
  packages/python-keyczar/trunk/debian/rules
  packages/python-keyczar/trunk/debian/watch

Modified: packages/python-keyczar/trunk/debian/rules
===================================================================
--- packages/python-keyczar/trunk/debian/rules	2015-07-05 20:11:17 UTC (rev 33248)
+++ packages/python-keyczar/trunk/debian/rules	2015-07-05 20:52:43 UTC (rev 33249)
@@ -4,6 +4,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# Needed for get-orig-source
+PKGDIR := $(dir $(firstword $(MAKEFILE_LIST)))..
+UPVER := $(shell dpkg-parsechangelog -l$(PKGDIR)/debian/changelog | \
+		sed -nre 's/^Version: (.*)\+ds.*/\1/p')
 
 %:
 	dh $@ --with python2 --buildsystem=pybuild
@@ -19,3 +23,26 @@
 	dh_auto_clean
 	
 	rm -rf python_keyczar.egg-info
+
+get-orig-source:
+	uscan \
+		--noconf \
+		--force-download \
+		--download-version $(UPVER) \
+		--no-symlink \
+	  	--check-dirname-level=0 \
+		--destdir=$(CURDIR) \
+		$(PKGDIR)
+	tar -xzf Python_release_$(UPVER).tar.gz
+	cd keyczar-Python_release_$(UPVER) && mv python ../python-keyczar-$(UPVER)+ds
+	tar \
+		--owner=root \
+		--group=root \
+		--mode=a+rX \
+		--xz \
+		-cf python-keyczar_$(UPVER).orig.tar.xz \
+		python-keyczar-$(UPVER)+ds
+	rm -rf Python_release_$(UPVER).tar.gz \
+		keyczar-Python_release_$(UPVER) \
+		python-keyczar-$(UPVER)+ds
+

Modified: packages/python-keyczar/trunk/debian/watch
===================================================================
--- packages/python-keyczar/trunk/debian/watch	2015-07-05 20:11:17 UTC (rev 33248)
+++ packages/python-keyczar/trunk/debian/watch	2015-07-05 20:52:43 UTC (rev 33249)
@@ -1,4 +1,3 @@
 version=3
 
-opts="filenamemangle=s/(?:.*)?Python_release_(\d\S*)\.tar.gz/python-keyczar-$1\.tar\.gz/" \
 https://github.com/google/keyczar/releases .*/Python_release_(\d\S*)\.tar\.gz




More information about the Python-modules-commits mailing list