[Python-modules-commits] r11528 - in packages/python-ctypeslib/trunk/debian (copyright rules)

mrbeige-guest at users.alioth.debian.org mrbeige-guest at users.alioth.debian.org
Wed Feb 3 07:22:29 UTC 2010


    Date: Wednesday, February 3, 2010 @ 07:22:27
  Author: mrbeige-guest
Revision: 11528

Fix some slight errors in d/rules and d/copyright

Modified:
  packages/python-ctypeslib/trunk/debian/copyright
  packages/python-ctypeslib/trunk/debian/rules

Modified: packages/python-ctypeslib/trunk/debian/copyright
===================================================================
--- packages/python-ctypeslib/trunk/debian/copyright	2010-02-03 06:32:32 UTC (rev 11527)
+++ packages/python-ctypeslib/trunk/debian/copyright	2010-02-03 07:22:27 UTC (rev 11528)
@@ -27,6 +27,6 @@
     OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
     WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-Files: *
+Files: debian/*
 Copyright: 2010, Richard Darst <rkd at zgib.net>
 License: MIT

Modified: packages/python-ctypeslib/trunk/debian/rules
===================================================================
--- packages/python-ctypeslib/trunk/debian/rules	2010-02-03 06:32:32 UTC (rev 11527)
+++ packages/python-ctypeslib/trunk/debian/rules	2010-02-03 07:22:27 UTC (rev 11528)
@@ -10,23 +10,24 @@
 export DH_VERBOSE=1
 
 PYVERS=$(shell pyversions -vr debian/control)
-SRC_VERSION = $(shell dpkg-parsechangelog --count 1 | \
+PACKAGE = python-ctypeslib
+UPSTR_VERSION = $(shell dpkg-parsechangelog --count 1 | \
                      grep 'Version: ' | \
                      sed --regexp-extended 's/Version: ([^-]+)-.+/\1/' )
-SVN_VERSION = $(shell echo $(SRC_VERSION | \
-                     sed --regexp-extended 's/Version: .*+svn([0-9]+).*/\1/' )
-TARBALL = python-ctypeslib_$(SRC_VERSION).orig.tar.gz
+SVN_DATE = $(shell echo $(UPSTR_VERSION) | \
+                     sed --regexp-extended 's/.*\+svn([0-9]+).*/\1/' )
+TARBALL = $(PACKAGE)_$(UPSTR_VERSION).orig.tar.gz
 
 get-orig-source:
 	rm -rf get-orig-source
 	mkdir get-orig-source
-	svn export --revision '{20100125}' \
+	svn export --revision '{$(SVN_DATE)}' \
 	    http://svn.python.org/projects/ctypes/trunk/ctypeslib/ \
-	    get-orig-source/python-ctypeslib_$(SRC_VERSION).orig/
-	GZIP=--best tar czf python-ctypeslib_$(SRC_VERSION).orig.tar.gz \
-	               -C get-orig-source python-ctypeslib_$(SRC_VERSION).orig/
+	    get-orig-source/$(PACKAGE)_$(UPSTR_VERSION).orig/
+	GZIP=--best tar czf $(TARBALL) \
+	           -C get-orig-source $(PACKAGE)_$(UPSTR_VERSION).orig/
 	rm -rf get-orig-source
-	echo "  $(TARBALL) created, move it where you want."
+	@echo "--> $(TARBALL) created, move it where you want."
 
 build:
 	dh build
@@ -36,9 +37,9 @@
 	done
 
 binary:
-	dh binary --until dh_pysupport
+	dh binary --until dh_install #pysupport
 #	python -c 'print "x"*5000'
-	dh_install
+#	dh_install
 	mv debian/python-ctypeslib/usr/bin/h2xml.py \
            debian/python-ctypeslib/usr/bin/h2xml
 	mv debian/python-ctypeslib/usr/bin/xml2py.py \




More information about the Python-modules-commits mailing list