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

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Aug 19 13:57:22 UTC 2012


    Date: Sunday, August 19, 2012 @ 13:57:21
  Author: morph
Revision: 22535

convert to dh sequencer

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

Modified: packages/mpmath/trunk/debian/changelog
===================================================================
--- packages/mpmath/trunk/debian/changelog	2012-08-19 13:44:54 UTC (rev 22534)
+++ packages/mpmath/trunk/debian/changelog	2012-08-19 13:57:21 UTC (rev 22535)
@@ -7,8 +7,9 @@
     - add python-pytest to b-d-i, needed to run tests
   * debian/{control, rules}
     - use dh_sphinxdoc
+    - convert to dh sequencer
 
- -- Sandro Tosi <morph at debian.org>  Sun, 19 Aug 2012 15:44:30 +0200
+ -- Sandro Tosi <morph at debian.org>  Sun, 19 Aug 2012 15:52:09 +0200
 
 mpmath (0.17-1) unstable; urgency=low
 

Modified: packages/mpmath/trunk/debian/control
===================================================================
--- packages/mpmath/trunk/debian/control	2012-08-19 13:44:54 UTC (rev 22534)
+++ packages/mpmath/trunk/debian/control	2012-08-19 13:57:21 UTC (rev 22535)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 5), python
+Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~)
 Build-Depends-Indep: python-support (>= 0.4), python-sphinx (>= 1.0.7+dfsg), python-codespeak-lib, texlive-latex-base, dvipng, texlive-latex-extra, python-pytest
 Standards-Version: 3.9.3
 XS-Python-Version: all

Modified: packages/mpmath/trunk/debian/rules
===================================================================
--- packages/mpmath/trunk/debian/rules	2012-08-19 13:44:54 UTC (rev 22534)
+++ packages/mpmath/trunk/debian/rules	2012-08-19 13:57:21 UTC (rev 22535)
@@ -4,63 +4,51 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-build: build-stamp
-build-stamp:
-	dh_testdir
+PY2VERS := $(shell pyversions -s)
 
-	python setup.py build;
+%:
+	dh $@ --with sphinxdoc
 
-ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
-	-python mpmath/tests/runtests.py -strict -py -local
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	#set -e ; \
+	for python in $(PY2VERS); do \
+		$$python mpmath/tests/runtests.py -strict -py -local ; \
+	done
 endif
 
+override_dh_auto_build:
+	set -e ; \
+	for python in $(PY2VERS); do \
+		$$python setup.py build; \
+	done
+
 	( cd doc ; PYTHONPATH=../build/lib/ python build.py )
 	
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-
-	[ ! -d build ] || rm -rf build
-
-	python setup.py clean;
-
-	rm -rf doc/build
-
+override_dh_auto_clean:
+	set -e ; \
+	for python in $(PY2VERS); do \
+		$$python setup.py clean; \
+	done
 	find . -name '*\.py[co]' -delete
+	dh_clean
 
-	dh_clean build-stamp patch-stamp
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_installdirs
-
+override_dh_auto_install:
 	# Add here commands to install the package into debian/python-mpmath.
-	python setup.py install --root=debian/python-mpmath --install-layout=deb;
+	set -e ; \
+	for python in $(PY2VERS); do \
+		$$python setup.py install --root=debian/python-mpmath --install-layout=deb; \
+	done
 
 	# move generated documentation under subdir to keep doc/ dir clean
 	cp -arp doc/build/* $(CURDIR)/debian/python-mpmath-doc/usr/share/doc/python-mpmath-doc/html/
 	cp -arp doc/source/* $(CURDIR)/debian/python-mpmath-doc/usr/share/doc/python-mpmath-doc/txt/
 
+override_dh_installchangelogs:
+	dh_installchangelogs    CHANGES
 
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs	CHANGES
-	dh_installdocs
-	dh_installexamples	-ppython-mpmath-doc demo/*
-	dh_pysupport
-	dh_compress		-X.py -X.js -Xobjects.inv -X.txt
-	dh_sphinxdoc
-	dh_link
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+override_dh_installexamples:
+	dh_installexamples      -ppython-mpmath-doc demo/*
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+override_dh_compress:
+	dh_compress             -X.py -X.js -Xobjects.inv -X.txt




More information about the Python-modules-commits mailing list