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

zigo at users.alioth.debian.org zigo at users.alioth.debian.org
Wed Jun 25 17:23:36 UTC 2014


    Date: Wednesday, June 25, 2014 @ 17:23:35
  Author: zigo
Revision: 29508

Removed non-free files, Added debian/rules get-orig-src target to generate the orig.tar.xz file.

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

Modified: packages/python-networkx/trunk/debian/changelog
===================================================================
--- packages/python-networkx/trunk/debian/changelog	2014-06-25 17:23:31 UTC (rev 29507)
+++ packages/python-networkx/trunk/debian/changelog	2014-06-25 17:23:35 UTC (rev 29508)
@@ -1,4 +1,4 @@
-python-networkx (1.9-1) unstable; urgency=medium
+python-networkx (1.9+dfsg1-1) unstable; urgency=medium
 
   * Team upload.
   * New upstream release.
@@ -24,6 +24,7 @@
   * Removed obsolete XS-Python-Version: >= 2.6 X-Python3-Version: >= 3.2.
   * Adds using-local-mathjax.js.patch to avoid privacy breach in the doc.
   * Added missing --with python2.
+  * Added debian/rules get-orig-src target to generate the orig.tar.xz file.
 
  -- Thomas Goirand <zigo at debian.org>  Sun, 22 Jun 2014 07:11:42 +0000
 

Modified: packages/python-networkx/trunk/debian/rules
===================================================================
--- packages/python-networkx/trunk/debian/rules	2014-06-25 17:23:31 UTC (rev 29507)
+++ packages/python-networkx/trunk/debian/rules	2014-06-25 17:23:35 UTC (rev 29508)
@@ -87,6 +87,28 @@
 	dh_sphinxdoc
 endif
 
+DEBVERS         ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+VERSION         ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//')
+NODFSG_VERSION  ?= $(shell echo '$(VERSION)' | sed -e 's/\+dfsg[[:digit:]]*//')
+DEBFLAVOR       ?= $(shell dpkg-parsechangelog | grep -E ^Distribution: | cut -d" " -f2)
+DEBPKGNAME      ?= $(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2)
+UPSTREAM_GIT    ?= git://github.com/networkx/networkx.git
+
+get-orig-src:
+	set -ex && \
+		mkdir debian-tmp && \
+		cd debian-tmp && \
+		git clone $(UPSTREAM_GIT) && \
+		cd networkx && \
+		git reset --hard networkx-$(NODFSG_VERSION) && \
+		git rm -rf examples/javascript/force/d3 doc/source/static/force/d3js .hgtags && \
+		git commit -a -m "Removed non-free files" && \
+		git tag $(VERSION) && \
+		git archive --prefix=$(DEBPKGNAME)-$(VERSION)/ $(VERSION) \
+			| xz >../../../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ; \
+		cd ../.. ; \
+		rm -rf debian-tmp
+
 update_intersphinx_mapping:
 	wget http://docs.python.org/dev/objects.inv -O debian/python.org_objects.inv
 	wget http://docs.scipy.org/doc/numpy/objects.inv -O debian/scipy.org_numpy_objects.inv




More information about the Python-modules-commits mailing list