[Python-apps-commits] r10324 - in packages/pylint/trunk/debian (changelog rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Jan 5 11:13:33 UTC 2014


    Date: Sunday, January 5, 2014 @ 11:13:31
  Author: morph
Revision: 10324

* debian/rules
  - moved to dh sequencer

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

Modified: packages/pylint/trunk/debian/changelog
===================================================================
--- packages/pylint/trunk/debian/changelog	2014-01-05 01:46:20 UTC (rev 10323)
+++ packages/pylint/trunk/debian/changelog	2014-01-05 11:13:31 UTC (rev 10324)
@@ -12,8 +12,10 @@
   * debian/control
     - bump Standards-Version to 3.9.5 (no changes needed)
     - replace all depencencies on astng with astroid 
+  * debian/rules
+    - moved to dh sequencer
 
- -- Sandro Tosi <morph at debian.org>  Sun, 05 Jan 2014 02:45:58 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 05 Jan 2014 12:13:10 +0100
 
 pylint (0.27.0-1) experimental; urgency=low
 

Modified: packages/pylint/trunk/debian/rules
===================================================================
--- packages/pylint/trunk/debian/rules	2014-01-05 01:46:20 UTC (rev 10323)
+++ packages/pylint/trunk/debian/rules	2014-01-05 11:13:31 UTC (rev 10324)
@@ -1,52 +1,25 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-#
-# adapted by Logilab for automatic generation by debianize
-# (part of the devtools project, http://www.logilab.org/projects/devtools)
-#
-# Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE).
-# http://www.logilab.fr/ -- mailto:contact at logilab.fr
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 PYVERS := $(shell pyversions -s -v)
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp:
-	dh_testdir
+%:
+	dh $@
+
+override_dh_auto_build:
+	dh_auto_build
 	NO_SETUPTOOLS=1 python setup.py -q build
 
+override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	# use the default python version to select the script dir to run the tests
 	-./test/fulltest.sh $(PYVERS)
 endif
 
 
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-
-	NO_SETUPTOOLS=1 python setup.py clean
-
-	find . -name "*.pyc" -delete
-	find . -name "*.pyo" -delete
-
-	rm -rf build
-
-	dh_clean build-stamp
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
+override_dh_auto_install:
 	NO_SETUPTOOLS=1 python setup.py -q install --no-compile \
 			--root=$(CURDIR)/debian/pylint \
 			--install-layout=deb
@@ -63,29 +36,8 @@
 
 	install -m 644 elisp/pylint.el debian/pylint/usr/share/emacs/site-lisp/pylint/
 
-	# install tests
-	#(cd test && find . -type f -not \( -path '*/CVS/*' -or -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/pylint/usr/share/doc/pylint/test/{} \;)
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir 
-	dh_testroot 
-	dh_install -i
-	dh_pysupport -i
+override_dh_installchangelogs:
 	dh_installchangelogs -i ChangeLog
-	dh_installexamples -i
-	dh_installdocs -i
-	dh_installman -i
-	dh_installemacsen
-	dh_link -i
-	dh_compress -i -X.py -X.ini -X.xml -Xtest
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i 
-	dh_md5sums -i
-	dh_builddeb -i
 
-binary-arch:
-
-binary: binary-indep
-.PHONY: build clean binary binary-indep binary-arch
+override_dh_compress:
+	dh_compress -i -X.py -X.ini -X.xml -Xtest




More information about the Python-apps-commits mailing list