[Python-modules-commits] r4559 - in packages/migrate/trunk/debian (changelog rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Sat Feb 16 23:01:09 UTC 2008


    Date: Saturday, February 16, 2008 @ 23:01:08
  Author: piotr
Revision: 4559

* add Homepage, Vcs-Browser and Vcs-Svn fields to debian/control
* add Debian Python Modules Team to Uploaders
* use default Python version in /usr/bin/migrate's hashbang

Modified:
  packages/migrate/trunk/debian/changelog
  packages/migrate/trunk/debian/rules

Modified: packages/migrate/trunk/debian/changelog
===================================================================
--- packages/migrate/trunk/debian/changelog	2008-02-16 20:38:55 UTC (rev 4558)
+++ packages/migrate/trunk/debian/changelog	2008-02-16 23:01:08 UTC (rev 4559)
@@ -2,10 +2,12 @@
 
   * New upstream release (Closes: #464413)
   * incorporate upstream copyright changes
-  * add Homepage field to debian/control
+  * add Homepage, Vcs-Browser and Vcs-Svn fields to debian/control
   * don't depend on fixed revision numbers
   * update policy version to 3.7.3
   * depend on python-sqlalchemy (>= 0.3.10)
+  * add Debian Python Modules Team to Uploaders
+  * use default Python version in /usr/bin/migrate's hashbang
 
  -- Jan Dittberner <jan at dittberner.info>  Sat, 16 Feb 2008 12:38:56 +0100
 

Modified: packages/migrate/trunk/debian/rules
===================================================================
--- packages/migrate/trunk/debian/rules	2008-02-16 20:38:55 UTC (rev 4558)
+++ packages/migrate/trunk/debian/rules	2008-02-16 23:01:08 UTC (rev 4559)
@@ -3,25 +3,19 @@
 #export DH_VERBOSE=1
 
 DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
-	| grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+	| sed -rne 's,^Version: ([^-]+).*,\1,p')
 PYVERS=$(shell pyversions -vr)
 DOCS=$(shell find docs/ -name "*.rst" -printf "%p "| sed "s/.rst//g")
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-*
 	rm -rf dist build
-	find . -name *\.py[co] -exec rm {} \;
+	find . -name '*\.py[co]' -exec rm {} \;
 	rm -f docs/reference.txt
-	dh_clean
+	dh_clean build-*
 
-build: build-indep build-stamp
-build-stamp: $(PYVERS:%=build-python%)
-	touch $@
-build-python%:
-	python$* setup.py build
-	touch $@
+build: build-indep
 
 build-indep:
 	dh_installdirs -i
@@ -44,6 +38,8 @@
 	# make lintian happy
 	chmod +x debian/python-migrate/usr/lib/python$*/site-packages/migrate/versioning/templates/manage.py_tmpl
 	rm -rf debian/python-migrate/usr/lib
+	# default Python version in hashbang
+	sed -i -e '1s/python.*/python/' debian/python-migrate/usr/bin/migrate
 
 binary-indep: build install
 	dh_testdir -i
@@ -63,4 +59,4 @@
 
 binary: binary-indep binary-arch
 
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install




More information about the Python-modules-commits mailing list