[Python-modules-commits] r23068 - in packages/python-gdata/branches/wheezy/debian (3 files)
mitya57-guest at users.alioth.debian.org
mitya57-guest at users.alioth.debian.org
Sun Nov 25 17:01:40 UTC 2012
Date: Sunday, November 25, 2012 @ 17:01:37
Author: mitya57-guest
Revision: 23068
Add get-orig-source.sh, remove non-free contents from upstream tarball (closes: #694336)
Added:
packages/python-gdata/branches/wheezy/debian/get-orig-source.sh
Modified:
packages/python-gdata/branches/wheezy/debian/changelog
packages/python-gdata/branches/wheezy/debian/rules
Modified: packages/python-gdata/branches/wheezy/debian/changelog
===================================================================
--- packages/python-gdata/branches/wheezy/debian/changelog 2012-11-25 16:51:44 UTC (rev 23067)
+++ packages/python-gdata/branches/wheezy/debian/changelog 2012-11-25 17:01:37 UTC (rev 23068)
@@ -1,7 +1,11 @@
-python-gdata (2.0.17-1+deb7u1) unstable; urgency=low
+python-gdata (2.0.17+dfsg-1) unstable; urgency=low
* Add missing Breaks/Replaces for python-gdata (<< 2.0.14-2) to
python-gdata-doc (closes: #694289).
+ * Remove Cipher directory from upstream tarball (closes: #694336).
+ + Add debian/get-orig-source.sh script.
+ * Move chmod calls to debian/get-orig-source.sh, so that file
+ permissions do not differ before and after the build.
-- Dmitry Shachnev <mitya57 at gmail.com> Sun, 25 Nov 2012 13:44:38 +0400
Added: packages/python-gdata/branches/wheezy/debian/get-orig-source.sh
===================================================================
--- packages/python-gdata/branches/wheezy/debian/get-orig-source.sh (rev 0)
+++ packages/python-gdata/branches/wheezy/debian/get-orig-source.sh 2012-11-25 17:01:37 UTC (rev 23068)
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+set -ex
+
+export TAR_OPTIONS='--owner root --group root --mode a+rX'
+export GZIP_OPTIONS='-9n'
+pwd=$(pwd)
+dfsg_version="$1"
+if [ -z "$dfsg_version" ]
+then
+ printf 'Usage: %s <version>\n' "$0"
+ exit 1
+fi
+upstream_version="${dfsg_version%+dfsg*}"
+cd "$(dirname "$0")/../"
+tmpdir=$(mktemp -t -d get-orig-source.XXXXXX)
+uscan --noconf --force-download --rename --download-version="$upstream_version" --destdir="$tmpdir"
+cd "$tmpdir"
+tar -xzf python-gdata_*.orig.tar.gz
+rm python-gdata_*.orig.tar.gz
+
+rm -rf gdata-*/src/gdata/Crypto/Cipher # http://bugs.debian.org/694336
+chmod a-x gdata-*/src/samples/oauth/oauth_on_appengine/appengine_utilities/*.py
+chmod a-x gdata-*/src/samples/blogger/oauth-appengine/*.py
+chmod a-x gdata-*/src/samples/blogger/app/*.py
+chmod a-x gdata-*/src/samples/apps/marketplace_sample/gdata/tlslite/*.py
+chmod a-x gdata-*/src/samples/apps/marketplace_sample/gdata/tlslite/*/*
+chmod a-x gdata-*/src/samples/apps/marketplace_sample/gdata/oauth/*
+chmod a-x gdata-*/src/samples/apps/marketplace_sample/gdata/apps/client.py
+chmod a-x gdata-*/src/samples/apps/marketplace_sample/gdata/apps/multidomain/__init__.py
+
+mv gdata-*/ "python-gdata-${dfsg_version}.orig"
+tar -czf "$pwd/python-gdata_${dfsg_version}.orig.tar.gz" python-gdata-*.orig/
+cd ..
+rm -Rf "$tmpdir"
Property changes on: packages/python-gdata/branches/wheezy/debian/get-orig-source.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: packages/python-gdata/branches/wheezy/debian/rules
===================================================================
--- packages/python-gdata/branches/wheezy/debian/rules 2012-11-25 16:51:44 UTC (rev 23067)
+++ packages/python-gdata/branches/wheezy/debian/rules 2012-11-25 17:01:37 UTC (rev 23068)
@@ -1,22 +1,18 @@
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
+DEB_DIRECTORY := $(dir $(firstword $(MAKEFILE_LIST)))
+DEB_VERSION := $(word 2,$(shell cd $DEB_DIRECTORY/.. && dpkg-parsechangelog | grep ^Version:))
+UPSTREAM_DFSG_VERSION := $(firstword $(subst -, ,$(DEB_VERSION)))
+
%:
dh $@ --with python2
-override_dh_auto_build:
- chmod a-x samples/oauth/oauth_on_appengine/appengine_utilities/*.py
- chmod a-x samples/blogger/oauth-appengine/*.py
- chmod a-x samples/blogger/app/*.py
- chmod a-x samples/apps/marketplace_sample/gdata/tlslite/*.py
- chmod a-x samples/apps/marketplace_sample/gdata/tlslite/*/*
- chmod a-x samples/apps/marketplace_sample/gdata/oauth/*
- chmod a-x samples/apps/marketplace_sample/gdata/apps/client.py
- chmod a-x samples/apps/marketplace_sample/gdata/apps/multidomain/__init__.py
- dh_auto_build
-
override_dh_installchangelogs:
dh_installchangelogs RELEASE_NOTES.txt
override_dh_compress:
dh_compress -X.py -X.js -X.c
+
+get-orig-source:
+ sh $(dir $(firstword $(MAKEFILE_LIST)))/get-orig-source.sh $(UPSTREAM_DFSG_VERSION)
More information about the Python-modules-commits
mailing list