[Python-modules-commits] r19115 - in packages/python-unipath/tags (3 files)
arnau at users.alioth.debian.org
arnau at users.alioth.debian.org
Mon Oct 31 01:30:40 UTC 2011
Date: Monday, October 31, 2011 @ 01:30:39
Author: arnau
Revision: 19115
[svn-buildpackage] Tagging python-unipath 0.2.1+dfsg-1
Added:
packages/python-unipath/tags/0.2.1+dfsg-1/
packages/python-unipath/tags/0.2.1+dfsg-1/debian/rules
(from rev 19114, packages/python-unipath/trunk/debian/rules)
Deleted:
packages/python-unipath/tags/0.2.1+dfsg-1/debian/rules
Deleted: packages/python-unipath/tags/0.2.1+dfsg-1/debian/rules
===================================================================
--- packages/python-unipath/trunk/debian/rules 2011-10-30 22:59:15 UTC (rev 19112)
+++ packages/python-unipath/tags/0.2.1+dfsg-1/debian/rules 2011-10-31 01:30:39 UTC (rev 19115)
@@ -1,29 +0,0 @@
-#!/usr/bin/make -f
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p')
-
-%:
- dh $@ --with python2
-
-override_dh_auto_test:
-ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
- cp unipath/test.py .
- for python in $(shell pyversions -r); do \
- $$python $(shell which nosetests) ./test.py; \
- done
- rm -f ./test.py ./test.pyc
-endif
-
-get-orig-source:
- uscan --noconf --force-download --rename --download-current-version --destdir=.
- rm -rf python-unipath-$(DEB_UPSTREAM_VERSION)
- tar -xf python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz
- rm python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz
- rm -rf Unipath-$(DEB_UPSTREAM_VERSION)/doc
- rm -f Unipath-$(DEB_UPSTREAM_VERSION)/.hg*
- mv Unipath-$(DEB_UPSTREAM_VERSION) python-unipath-$(DEB_UPSTREAM_VERSION).orig
- GZIP=--best tar -cz --owner root --group root --mode a+rX \
- -f python-unipath_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz \
- python-unipath-$(DEB_UPSTREAM_VERSION).orig
- rm -r python-unipath-$(DEB_UPSTREAM_VERSION).orig
Copied: packages/python-unipath/tags/0.2.1+dfsg-1/debian/rules (from rev 19114, packages/python-unipath/trunk/debian/rules)
===================================================================
--- packages/python-unipath/tags/0.2.1+dfsg-1/debian/rules (rev 0)
+++ packages/python-unipath/tags/0.2.1+dfsg-1/debian/rules 2011-10-31 01:30:39 UTC (rev 19115)
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p')
+
+%:
+ dh $@ --with python2
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ cp unipath/test.py .
+ set -e; for python in $(shell pyversions -r); do \
+ $$python $(shell which nosetests) ./test.py; \
+ done
+ rm -f ./test.py ./test.pyc
+endif
+
+get-orig-source:
+ uscan --noconf --force-download --rename --download-current-version --destdir=.
+
+ gunzip python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+
+ # Create a tarball with the same md5sum by not extracting and
+ # deleting files with mv/rm as it should change atime and thus
+ #Â lead to a different md5sum for the resulting tarball
+ tar --delete --wildcards \
+ --file=python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar \
+ Unipath-$(DEB_UPSTREAM_VERSION)/doc \
+ Unipath-$(DEB_UPSTREAM_VERSION)/.hg*
+
+ GZIP='-n --best' gzip python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar
+
+ mv python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
+ python-unipath_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz
More information about the Python-modules-commits
mailing list