[Python-modules-commits] r255 - in /packages/ply/trunk/debian: ./ README.Debian control control.in copyright python-ply.dirs python-ply.postinst python-ply.prerm rules

arnau-guest at users.alioth.debian.org arnau-guest at users.alioth.debian.org
Wed Apr 19 19:49:04 UTC 2006


Author: arnau-guest
Date: Wed Apr 19 19:49:03 2006
New Revision: 255

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=255
Log:
Add python-support and fix a lot of mistakes into the package

Added:
    packages/ply/trunk/debian/python-ply.dirs
    packages/ply/trunk/debian/python-ply.postinst
    packages/ply/trunk/debian/python-ply.prerm
Modified:
    packages/ply/trunk/debian/   (props changed)
    packages/ply/trunk/debian/README.Debian
    packages/ply/trunk/debian/control
    packages/ply/trunk/debian/control.in
    packages/ply/trunk/debian/copyright
    packages/ply/trunk/debian/rules

Propchange: packages/ply/trunk/debian/
------------------------------------------------------------------------------
    mergeWithUpstream = 1

Modified: packages/ply/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/README.Debian?rev=255&op=diff
==============================================================================
--- packages/ply/trunk/debian/README.Debian (original)
+++ packages/ply/trunk/debian/README.Debian Wed Apr 19 19:49:03 2006
@@ -1,6 +1,6 @@
 Please note:
 
-The documentation for this package is in python-ply-doc. 
+The documentation and examples for this package are in python-ply-doc. 
 
 When you install that package, you can find the documentation and examples
 in /usr/share/doc/python-ply-doc.

Modified: packages/ply/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/control?rev=255&op=diff
==============================================================================
--- packages/ply/trunk/debian/control (original)
+++ packages/ply/trunk/debian/control Wed Apr 19 19:49:03 2006
@@ -3,30 +3,12 @@
 Priority: optional
 Maintainer: Arnaud Fontaine <arnaud at andesi.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), python-dev (>= 2.3), python2.3-dev, python2.4-dev
+Build-Depends-Indep: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), python-dev
 Standards-Version: 3.6.2.2
 
 Package: python-ply
 Architecture: all
-Depends: python2.3-ply
-Suggests: python-ply-doc
-Description: Lex and Yacc implementation for Python
- This is a "dummy" package that will cause the Ply package for Debian's
- default Python version to always be present on your system.
- .
-  Homepage: http://www.dabeaz.com/ply/
-
-Package: python-ply-doc
-Section: docs
-Architecture: all
-Description: Lex and Yacc implementation for Python
- This package contains the documentation for Ply.
- .
-  Homepage: http://www.dabeaz.com/ply/
-
-Package: python2.3-ply
-Architecture: all
-Depends: ${python:Depends}
+Depends: python (>= 2.3), python-support
 Suggests: python-ply-doc
 Description: Lex and Yacc implementation for Python
  PLY   is   yet  another   implementation   of   lex   and  yacc   for
@@ -42,28 +24,12 @@
   * PLY is  extremely easy  to use and  provides very  extensive error
     checking."
  .
- This package is for Python 2.3.
+  Homepage: http://www.dabeaz.com/ply/
+
+Package: python-ply-doc
+Section: doc
+Architecture: all
+Description: Lex and Yacc implementation for Python
+ This package contains the documentation for Ply.
  .
   Homepage: http://www.dabeaz.com/ply/
-
-Package: python2.4-ply
-Architecture: all
-Depends: ${python:Depends}
-Suggests: python-ply-doc
-Description: Lex and Yacc implementation for Python
- PLY   is   yet  another   implementation   of   lex   and  yacc   for
- Python.  Although  several  other  parsing tools  are  available  for
- Python, there are  several reasons why you might want  to take a look
- at PLY:
-  * It's implemented entirely in Python.
-  * It uses  LR-parsing which is reasonably efficient  and well suited
-    for larger grammars.
-  * PLY  provides most  of  the standard  lex/yacc features  including
-    support for  empty productions, precedence  rules, error recovery,
-    and support for ambiguous grammars.
-  * PLY is  extremely easy  to use and  provides very  extensive error
-    checking."
- .
- This package is for Python 2.4.
- .
-  Homepage: http://www.dabeaz.com/ply/

Modified: packages/ply/trunk/debian/control.in
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/control.in?rev=255&op=diff
==============================================================================
--- packages/ply/trunk/debian/control.in (original)
+++ packages/ply/trunk/debian/control.in Wed Apr 19 19:49:03 2006
@@ -3,30 +3,12 @@
 Priority: optional
 Maintainer: Arnaud Fontaine <arnaud at andesi.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: @cdbs@, python-dev (>= 2.3), python2.3-dev, python2.4-dev
+Build-Depends-Indep: @cdbs@, python-dev
 Standards-Version: 3.6.2.2
 
 Package: python-ply
 Architecture: all
-Depends: python2.3-ply
-Suggests: python-ply-doc
-Description: Lex and Yacc implementation for Python
- This is a "dummy" package that will cause the Ply package for Debian's
- default Python version to always be present on your system.
- .
-  Homepage: http://www.dabeaz.com/ply/
-
-Package: python-ply-doc
-Section: docs
-Architecture: all
-Description: Lex and Yacc implementation for Python
- This package contains the documentation for Ply.
- .
-  Homepage: http://www.dabeaz.com/ply/
-
-Package: python2.3-ply
-Architecture: all
-Depends: ${python:Depends}
+Depends: python (>= 2.3), python-support
 Suggests: python-ply-doc
 Description: Lex and Yacc implementation for Python
  PLY   is   yet  another   implementation   of   lex   and  yacc   for
@@ -42,28 +24,12 @@
   * PLY is  extremely easy  to use and  provides very  extensive error
     checking."
  .
- This package is for Python 2.3.
+  Homepage: http://www.dabeaz.com/ply/
+
+Package: python-ply-doc
+Section: doc
+Architecture: all
+Description: Lex and Yacc implementation for Python
+ This package contains the documentation for Ply.
  .
   Homepage: http://www.dabeaz.com/ply/
-
-Package: python2.4-ply
-Architecture: all
-Depends: ${python:Depends}
-Suggests: python-ply-doc
-Description: Lex and Yacc implementation for Python
- PLY   is   yet  another   implementation   of   lex   and  yacc   for
- Python.  Although  several  other  parsing tools  are  available  for
- Python, there are  several reasons why you might want  to take a look
- at PLY:
-  * It's implemented entirely in Python.
-  * It uses  LR-parsing which is reasonably efficient  and well suited
-    for larger grammars.
-  * PLY  provides most  of  the standard  lex/yacc features  including
-    support for  empty productions, precedence  rules, error recovery,
-    and support for ambiguous grammars.
-  * PLY is  extremely easy  to use and  provides very  extensive error
-    checking."
- .
- This package is for Python 2.4.
- .
-  Homepage: http://www.dabeaz.com/ply/

Modified: packages/ply/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/copyright?rev=255&op=diff
==============================================================================
--- packages/ply/trunk/debian/copyright (original)
+++ packages/ply/trunk/debian/copyright Wed Apr 19 19:49:03 2006
@@ -3,9 +3,9 @@
 
 It was downloaded from http://www.dabeaz.com/ply/
 
-Copyright:
+Author: David M. Beazley <dave at dabeaz.com>
 
-Copyright (C) 2001-2005 David M. Beazley <dave at dabeaz.com>
+Copyright: 2001-2006 David M. Beazley <dave at dabeaz.com>
    
    This  library is  free  software; you  can  redistribute it  and/or
    modify it under the terms  of the GNU Lesser General Public License

Added: packages/ply/trunk/debian/python-ply.dirs
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/python-ply.dirs?rev=255&op=file
==============================================================================
--- packages/ply/trunk/debian/python-ply.dirs (added)
+++ packages/ply/trunk/debian/python-ply.dirs Wed Apr 19 19:49:03 2006
@@ -1,0 +1,1 @@
+usr/share/python-support/ply/

Added: packages/ply/trunk/debian/python-ply.postinst
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/python-ply.postinst?rev=255&op=file
==============================================================================
--- packages/ply/trunk/debian/python-ply.postinst (added)
+++ packages/ply/trunk/debian/python-ply.postinst Wed Apr 19 19:49:03 2006
@@ -1,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ] && which update-python-modules >/dev/null 2>&1; then
+        update-python-modules -i /usr/share/python-support/ply
+fi

Added: packages/ply/trunk/debian/python-ply.prerm
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/python-ply.prerm?rev=255&op=file
==============================================================================
--- packages/ply/trunk/debian/python-ply.prerm (added)
+++ packages/ply/trunk/debian/python-ply.prerm Wed Apr 19 19:49:03 2006
@@ -1,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if which update-python-modules >/dev/null 2>&1; then
+        update-python-modules -c -i /usr/share/python-support/ply
+fi

Modified: packages/ply/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/ply/trunk/debian/rules?rev=255&op=diff
==============================================================================
--- packages/ply/trunk/debian/rules (original)
+++ packages/ply/trunk/debian/rules Wed Apr 19 19:49:03 2006
@@ -1,9 +1,22 @@
 #!/usr/bin/make -f
 # -*- mode: makefile; coding: utf-8 -*-
 
-# Common rules
+# python-distutils before debhelper to avoid it calling dh_python
+# itself
+include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
+
+# Don't compress .py files
+DEB_COMPRESS_EXCLUDE := .py
+
+# python-support stuff (based on python-cherrypy, thanks to its
+# maintainer)
+DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0 --install-lib usr/share/python-support/ply
+PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)
+
+common-binary-post-install-indep::
+	# Clean the python-ply-doc packages by removing *.py files
+	rm -rf debian/python-ply-doc/usr/lib debian/python-ply-doc/usr/share/python-support
 
 $(patsubst %,binary-install/%,$(filter-out python-ply-doc,$(DEB_ALL_PACKAGES)))::
 	cp debian/README.Debian \




More information about the Python-modules-commits mailing list