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

jandd-guest at users.alioth.debian.org jandd-guest at users.alioth.debian.org
Sat Mar 28 17:23:14 UTC 2009


    Date: Saturday, March 28, 2009 @ 17:23:13
  Author: jandd-guest
Revision: 8096

improve build
- allow building of complete API docs (needs sqlalchemy as
  build-dependency)
- only build for default Python version (depend on python instead of
  python-all and change debian/rules)

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

Modified: packages/migrate/trunk/debian/changelog
===================================================================
--- packages/migrate/trunk/debian/changelog	2009-03-28 16:52:11 UTC (rev 8095)
+++ packages/migrate/trunk/debian/changelog	2009-03-28 17:23:13 UTC (rev 8096)
@@ -6,9 +6,11 @@
   * debian/control:
     - update Standards-Version to 3.8.1 (no changes needed)
     - depend and build depend on sphinx >= 0.6.1
-    - build depends on python-all (>= 2.5.4-1~) instead of python and
-      python-all-dev
+    - build depends on python (>= 2.5.4-1~), drop python-all-dev
+      dependency, no need to build for all versions
     - remove python-central dependency
+    - add python-sqlalchemy to build-depends-indep to allow the build
+      of complete API docs
   * debian/rules:
     - add --no-compile --install-layout=deb
     - use py_libdir macro from python.mk instead of hardcoded paths

Modified: packages/migrate/trunk/debian/control
===================================================================
--- packages/migrate/trunk/debian/control	2009-03-28 16:52:11 UTC (rev 8095)
+++ packages/migrate/trunk/debian/control	2009-03-28 17:23:13 UTC (rev 8096)
@@ -4,8 +4,9 @@
 Maintainer: Jan Dittberner <jan at dittberner.info>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Build-Depends: debhelper (>= 5.0.38)
-Build-Depends-Indep: python-all (>= 2.5.4-1~), python-support (>= 0.6.4),
- python-setuptools (>= 0.6b3), python-codespeak-lib, python-sphinx (>= 0.6.1)
+Build-Depends-Indep: python (>= 2.5.4-1~), python-support (>= 0.6.4),
+ python-setuptools (>= 0.6b3), python-codespeak-lib,
+ python-sphinx (>= 0.6.1), python-sqlalchemy (>= 0.5.1)
 Standards-Version: 3.8.1
 XS-Python-Version: >= 2.4
 Homepage: http://code.google.com/p/sqlalchemy-migrate/

Modified: packages/migrate/trunk/debian/rules
===================================================================
--- packages/migrate/trunk/debian/rules	2009-03-28 16:52:11 UTC (rev 8095)
+++ packages/migrate/trunk/debian/rules	2009-03-28 17:23:13 UTC (rev 8096)
@@ -5,7 +5,6 @@
 
 DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
 	| sed -rne 's,^Version: ([^-]+).*,\1,p')
-PYVERS=$(shell pyversions -vr)
 DOCS=$(shell find docs/ -name "*.rst" -printf "%p ")
 
 clean:
@@ -24,7 +23,7 @@
 	cp -R $(DOCS) docs/conf.py debian/python-migrate/usr/share/doc/python-migrate/
 	ln -s /usr/share/sphinx/themes/basic/static \
 	  debian/python-migrate/usr/share/doc/python-migrate/_static
-	PYTHONPATH=`pwd` sphinx-build -b html -a -E -N \
+	PYTHONPATH=$(CURDIR) sphinx-build -b html -a -E -N \
 	  debian/python-migrate/usr/share/doc/python-migrate/ \
 	  debian/python-migrate/usr/share/doc/python-migrate/html/
 	rm -rf \
@@ -36,18 +35,17 @@
 	  /usr/share/doc/python-migrate/html/_static
 	touch $@
 
-install: build $(PYVERS:%=install-python%)
-install-python%:
-	python$* setup.py install\
+install: build
+	python setup.py install\
 		--no-compile --install-layout=deb\
 		--root $(CURDIR)/debian/python-migrate
 	# share Egg dir (remove versions from dirname)
-	mv debian/python-migrate$(call py_libdir,$*)/sqlalchemy_migrate-${DEB_UPSTREAM_VERSION}-py$*.egg-info \
-	  debian/python-migrate$(call py_libdir,$*)/sqlalchemy_migrate-${DEB_UPSTREAM_VERSION}.egg-info
+	mv debian/python-migrate$(call py_libdir,$(shell pyversions -d))/sqlalchemy_migrate-${DEB_UPSTREAM_VERSION}-py$(shell pyversions -d|sed 's/python//').egg-info \
+	  debian/python-migrate$(call py_libdir,$(shell pyversions -d))/sqlalchemy_migrate-${DEB_UPSTREAM_VERSION}.egg-info
 	# make lintian happy
-	chmod +x debian/python-migrate$(call py_libdir,$*)/migrate/versioning/templates/manage.py_tmpl
+	chmod +x debian/python-migrate$(call py_libdir,$(shell pyversions -d))/migrate/versioning/templates/manage.py_tmpl
 
-binary-indep: build install
+binary-indep: install
 	dh_testdir -i
 	dh_testroot -i
 	dh_installchangelogs -i CHANGELOG




More information about the Python-modules-commits mailing list