[Python-apps-commits] r1999 - in packages/pylint/trunk/debian (5 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Wed Nov 26 15:47:03 UTC 2008


    Date: Wednesday, November 26, 2008 @ 15:47:02
  Author: morph
Revision: 1999

  - moved python (removing version, since we are in a 2.4+2.5 distribution) to
    build-dep from build-dep-indep (to satisfy clean target needs)
  - added ${python:Depends}, ${misc:Depends} to depends instead of directly
    depending on "python" package
* debian/pylint.docs
  - install all doc/ directory files
  - added README and TODO (from debian/rules)
* debian/rules
  - merged 'rm -f' commands into dh_clean call
  - added "python setup.py clean" call in clean target
  - install upstream "Changelog" using dh_installchangelog
  - removed files passed to dh_installdocs since using debian/pylint.docs and
    because debian/NEWS.Debian is automatically installed
  - using '-delete' find option instead of xargs
  - fix executables shebang with a for loop

Added:
  packages/pylint/trunk/debian/TODO
Modified:
  packages/pylint/trunk/debian/changelog
  packages/pylint/trunk/debian/control
  packages/pylint/trunk/debian/pylint.docs
  packages/pylint/trunk/debian/rules

Added: packages/pylint/trunk/debian/TODO
===================================================================
--- packages/pylint/trunk/debian/TODO	                        (rev 0)
+++ packages/pylint/trunk/debian/TODO	2008-11-26 15:47:02 UTC (rev 1999)
@@ -0,0 +1 @@
+- use tests (run at build time + install)

Modified: packages/pylint/trunk/debian/changelog
===================================================================
--- packages/pylint/trunk/debian/changelog	2008-11-26 12:00:43 UTC (rev 1998)
+++ packages/pylint/trunk/debian/changelog	2008-11-26 15:47:02 UTC (rev 1999)
@@ -7,9 +7,24 @@
     - moved Homepage field to source stanza
     - bump Standards-Version to 3.8.0
       + added debian/README.source
+    - moved python (removing version, since we are in a 2.4+2.5 distribution) to
+      build-dep from build-dep-indep (to satisfy clean target needs)
+    - added ${python:Depends}, ${misc:Depends} to depends instead of directly
+      depending on "python" package
   * debian/watch
     - bump verstion to 3
     - left only the url to scan, adding "opts=pasv" for ftp scan
+  * debian/pylint.docs
+    - install all doc/ directory files
+    - added README and TODO (from debian/rules)
+  * debian/rules
+    - merged 'rm -f' commands into dh_clean call
+    - added "python setup.py clean" call in clean target
+    - install upstream "Changelog" using dh_installchangelog
+    - removed files passed to dh_installdocs since using debian/pylint.docs and
+      because debian/NEWS.Debian is automatically installed
+    - using '-delete' find option instead of xargs
+    - fix executables shebang with a for loop
 
  -- Sandro Tosi <morph at debian.org>  Wed, 19 Nov 2008 18:52:12 +0100
 

Modified: packages/pylint/trunk/debian/control
===================================================================
--- packages/pylint/trunk/debian/control	2008-11-26 12:00:43 UTC (rev 1998)
+++ packages/pylint/trunk/debian/control	2008-11-26 15:47:02 UTC (rev 1999)
@@ -3,15 +3,15 @@
 Priority: optional
 Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
 Uploaders: Sylvain Thénault <sylvain.thenault at logilab.fr>, Alexandre Fayolle <afayolle at debian.org>, Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 5.0.38)
-Build-Depends-Indep: python (>=2.3.5-7), python-central (>=0.5.6)
+Build-Depends: debhelper (>= 5.0.38), python
+Build-Depends-Indep: python-central (>=0.5.6)
 Standards-Version: 3.8.0
 XS-Python-Version: all
 Homepage: http://www.logilab.org/Project/name/pylint
 
 Package: pylint
 Architecture: all
-Depends: python, python-logilab-common (>= 0.22.2), python-logilab-astng (>= 0.17.1)
+Depends: ${python:Depends}, ${misc:Depends}, python-logilab-common (>= 0.22.2), python-logilab-astng (>= 0.17.1)
 Recommends: python-tk
 XB-Python-Version: ${python:Versions}
 Conflicts: python2.2-pylint, python2.3-pylint, python2.4-pylint, pylint-common, pylint-test

Modified: packages/pylint/trunk/debian/pylint.docs
===================================================================
--- packages/pylint/trunk/debian/pylint.docs	2008-11-26 12:00:43 UTC (rev 1998)
+++ packages/pylint/trunk/debian/pylint.docs	2008-11-26 15:47:02 UTC (rev 1999)
@@ -1,6 +1,3 @@
-doc/features.html
-doc/quickstart.html
-doc/FAQ.html
-doc/FAQ.txt
-doc/quickstart.txt
-doc/features.txt
+doc/*
+README
+TODO

Modified: packages/pylint/trunk/debian/rules
===================================================================
--- packages/pylint/trunk/debian/rules	2008-11-26 12:00:43 UTC (rev 1998)
+++ packages/pylint/trunk/debian/rules	2008-11-26 15:47:02 UTC (rev 1999)
@@ -20,48 +20,45 @@
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp
-	rm -rf build
-	find . -name "*.pyc" | xargs rm -f
-	rm -f changelog.gz
-	dh_clean
 
+	python setup.py clean
+
+	find . -name "*.pyc" -delete
+
+	dh_clean build-stamp build
+
 install: build
 	dh_testdir
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
+
 	python setup.py -q install --no-compile --prefix=debian/pylint/usr/
 
 	rm -rf debian/pylint/usr/lib/python*/site-packages/pylint/test
-	if head -1 debian/pylint/usr/bin/pylint | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
-		sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/pylint; \
-	fi
-	chmod a+x debian/pylint/usr/bin/pylint
-	if head -1 debian/pylint/usr/bin/pylint-gui | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
-		sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/pylint-gui; \
-	fi
-	chmod a+x debian/pylint/usr/bin/pylint-gui
-	if head -1 debian/pylint/usr/bin/symilar | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
-		sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/symilar; \
-	fi
-	chmod a+x debian/pylint/usr/bin/symilar
+
+	# fixes shebangs
+	for exec in pylint pylint-gui symilar ; do \
+	  if head -1 debian/pylint/usr/bin/$$exec | grep "^#! */usr/bin" | grep "python" >/dev/null ; then \
+		sed -i "s@^#! */usr/bin/env \+python\$$@#!/usr/bin/python@" debian/pylint/usr/bin/$$exec; \
+	  fi ; \
+	  chmod a+x debian/pylint/usr/bin/$$exec; \
+	done
+
 	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_pycentral -i
-	gzip -9 -c ChangeLog > changelog.gz
-	dh_installchangelogs -i
+	dh_installchangelogs -i ChangeLog
 	dh_installexamples -i
-	dh_installdocs -i README TODO changelog.gz debian/NEWS.Debian
+	dh_installdocs -i
 	dh_installman -i
 	dh_installemacsen
 	dh_link -i
@@ -76,4 +73,3 @@
 
 binary: binary-indep
 .PHONY: build clean binary binary-indep binary-arch
-




More information about the Python-apps-commits mailing list