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

noskcaj-guest at users.alioth.debian.org noskcaj-guest at users.alioth.debian.org
Sat Nov 23 02:03:49 UTC 2013


    Date: Saturday, November 23, 2013 @ 02:03:48
  Author: noskcaj-guest
Revision: 26483

Switch to dh

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

Modified: packages/python-meld3/trunk/debian/changelog
===================================================================
--- packages/python-meld3/trunk/debian/changelog	2013-11-23 02:03:36 UTC (rev 26482)
+++ packages/python-meld3/trunk/debian/changelog	2013-11-23 02:03:48 UTC (rev 26483)
@@ -2,6 +2,7 @@
 
   * Add package to debian python module team
   * Set DPMT as maintainer, myself as uploader
+  * Switch to dh
 
  -- Jackson Doak <noskcaj at ubuntu.com>  Sat, 23 Nov 2013 12:17:33 +1100
 

Modified: packages/python-meld3/trunk/debian/rules
===================================================================
--- packages/python-meld3/trunk/debian/rules	2013-11-23 02:03:36 UTC (rev 26482)
+++ packages/python-meld3/trunk/debian/rules	2013-11-23 02:03:48 UTC (rev 26483)
@@ -6,21 +6,10 @@
 PYDEF=$(shell pyversions -d)
 PYVERS=$(shell pyversions -r)
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
+%:
+	dh $@ --with python2
 
-	touch configure-stamp
-
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-
-build-stamp: configure-stamp  
-	dh_testdir
-
+override_dh_auto_build:
 	# Add here commands to compile the package.
 	for python in $(PYVERS); do \
 		python=$$(echo $$python | sed "s/$(PYDEF)/python/"); \
@@ -28,28 +17,19 @@
 		$$python setup.py build; \
 	done
 	touch $@
+	dh_auto_build
 
-clean: 
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
+override_dh_clean:
 	for python in $(PYVERS); do \
 		python=$$(echo $$python | sed "s/$(PYDEF)/python/"); \
 		USE_MELD3_EXTENSION_MODULES=true \
 		$$python setup.py clean; \
 	done
 	rm -rf build/
-
 	dh_clean 
 
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
+override_dh_installdirs:
 	dh_installdirs
-
 	# Add here commands to install the package into debian/tmp
 	set -e; \
 	for python in $(PYVERS); do \
@@ -59,28 +39,9 @@
 		$$python setup.py install --no-compile --root=debian/tmp --install-layout=deb; \
 	done
 
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
+override_dh_installchangelogs:
 	dh_installchangelogs CHANGES.txt
-	dh_installdocs
-	dh_installexamples
+
+override_dh_install:
 	dh_install --sourcedir=debian/tmp
-	dh_python2
-	dh_strip
-	dh_shlibdeps
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
-




More information about the Python-modules-commits mailing list