--- simpleparse-2.1.0a1.orig/debian/python-simpleparse.install +++ simpleparse-2.1.0a1/debian/python-simpleparse.install @@ -0,0 +1,7 @@ +usr/lib/python*/site-packages/simpleparse/*.py +usr/lib/python*/site-packages/simpleparse/common/*.py +usr/lib/python*/site-packages/simpleparse/tests/*.py +usr/lib/python*/site-packages/simpleparse/stt/*.py +usr/lib/python*/site-packages/simpleparse/stt/TextTools/*.py +usr/lib/python*/site-packages/simpleparse/stt/TextTools/Constants/*.py +usr/lib/python*/site-packages/simpleparse/xml/*.py --- simpleparse-2.1.0a1.orig/debian/runtests.py +++ simpleparse-2.1.0a1/debian/runtests.py @@ -0,0 +1,15 @@ +import sys +from os.path import join +from distutils.sysconfig import get_python_lib +from site import addsitedir + +root = sys.argv.pop(1) +site_packages = get_python_lib().replace('dist-packages', 'site-packages') + +_path = sys.path[:] +sys.path[:] = [] +addsitedir(join(root, site_packages[1:])) +sys.path.extend(_path) +sys.path.append("tests") + +execfile("tests/test.py") --- simpleparse-2.1.0a1.orig/debian/python-simpleparse-doc.examples +++ simpleparse-2.1.0a1/debian/python-simpleparse-doc.examples @@ -0,0 +1 @@ +examples/* --- simpleparse-2.1.0a1.orig/debian/python-simpleparse-mxtexttools.install +++ simpleparse-2.1.0a1/debian/python-simpleparse-mxtexttools.install @@ -0,0 +1 @@ +usr/lib/python*/site-packages/simpleparse/stt/TextTools/mxTextTools/* --- simpleparse-2.1.0a1.orig/debian/changelog +++ simpleparse-2.1.0a1/debian/changelog @@ -0,0 +1,110 @@ +simpleparse (2.1.0a1-6build1) precise; urgency=low + + * Rebuild to drop python2.6 dependencies. + + -- Matthias Klose Sat, 31 Dec 2011 02:13:53 +0000 + +simpleparse (2.1.0a1-6) unstable; urgency=low + + * Team upload. + * No-change rebuild against python-defaults (>= 2.6.6-14). + + -- Jakub Wilk Sun, 01 May 2011 16:50:24 +0200 + +simpleparse (2.1.0a1-5) unstable; urgency=low + + * No-change rebuild to get rid of python2.4-simpleparse-mxtexttools + dependency, Python 2.4 is no longer supported (Closes: #562414). + * Build for sparc, to ensure it migrates to testing. + + -- Debian Python Modules Team Sun, 03 Jan 2010 14:29:02 +0100 + +simpleparse (2.1.0a1-4) unstable; urgency=low + + * debian/runtests.py + - replace 'dist-package' with 'site-package', in preparation for the + upcoming Python 2.6 transition; thanks to Jakub Wilk for the report and + patch; Closes: #557413 + * debian/control + - added python-egenix-mxdatetime to b-d, to build all tests at build-time; + thanks to Jakub Wilk for the report; Closes: #557414 + - bump Standards-Version to 3.8.3 (no changes needed) + * debian/README.source + - added since it's required by Policy 3.8.0 + + -- Debian Python Modules Team Wed, 02 Dec 2009 23:05:07 +0100 + +simpleparse (2.1.0a1-3) unstable; urgency=low + + [ Vincent Bernat ] + * Rework debian/rules to fix FTBFS with experimental version of + python-support and to not rely on python-support internals. + Closes: #517309. + * Bump Standards-Version to 3.8.1. + + [ Sandro Tosi ] + * debian/control + - switch Vcs-Browser field to viewsvn + + -- Vincent Bernat Sat, 21 Mar 2009 13:51:38 +0100 + +simpleparse (2.1.0a1-2) unstable; urgency=low + + * Do not forbid to build against furture Python 2.6 and add a patch to + remove the use of "with" as variable since it will become a reserved + keyword. + * Fix a bashism in debian/rules, thanks to patch from Chris Lamb + (Closes: #484437). + * Update Standards-Version to 3.8.0 + * Do not use XS-Python-Version since this is now deprecated by python-support + * Test only the libraries built for the current version of Python + (Closes: #485055), thanks to Daniel Schepler for spotting this one. + + -- Vincent Bernat Mon, 16 Jun 2008 19:27:39 +0200 + +simpleparse (2.1.0a1-1) unstable; urgency=low + + * New upstream release (Closes: #357537). + * Maintainership set to Debian Python Modules Team + * Bump Standards-Version to 3.7.3 + * Build-Depends on python-setuptools + * Add Vcs-* fields to debian/control + * Ship three packages: one with mxtexttools, another with + architecture-independant files and the last one with documentation and + examples. + * Add some cleaning rules to be able to build the package twice in a row + * Add debian/watch + * Run unit tests on build + * Ship with parts of mxTextTools and therefore does not need it any more + (Closes: #426429). + * Acknowledge NMU (Closes: #373381). + + -- Vincent Bernat Wed, 29 Aug 2007 11:30:36 +0200 + +simpleparse (2.0.0-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Update simpleparse to the new python policy (Closes: #373381). + * Fix B-D-I/B-D problems (see policy 7.6). + + -- Pierre Habouzit Thu, 29 Jun 2006 12:17:04 +0200 + +simpleparse (2.0.0-3) unstable; urgency=low + + * Initial release for uploading to Debian (Closes: #271781) + + -- Seo Sanghyeon Mon, 7 Mar 2005 19:33:25 +0900 + +simpleparse (2.0.0-2) unstable; urgency=low + + * Depend on python-dev to fix build failure + * Correct Bulid-Depends to Build-Depends-Indep + * Install documentation and example properly + + -- Seo Sanghyeon Mon, 7 Mar 2005 13:12:56 +0900 + +simpleparse (2.0.0-1) unstable; urgency=low + + * Initial packaging. + + -- Seo Sanghyeon Thu, 29 Jul 2004 17:28:02 +0900 --- simpleparse-2.1.0a1.orig/debian/rules +++ simpleparse-2.1.0a1/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pysupport + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +binary-predeb/python-simpleparse-doc:: + chmod 0644 $(CURDIR)/debian/python-simpleparse-doc/usr/share/doc/python-simpleparse-doc/examples/* + +install/python-simpleparse:: + for PY in $(shell pyversions -r); do \ + mkdir -p debian/tmp/usr/lib/$$PY ; \ + ln -s ../../../../../$$(echo $$(echo build/lib.*-$$(echo $$PY | sed 's/python//'))) \ + debian/tmp/usr/lib/$$PY/site-packages ; \ + done +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + ln -s ../test_printers_garbage.py tests/test_printers_garbage.py + for PY in $(shell pyversions -r); do \ + $$PY debian/runtests.py debian/tmp || exit 1 ; \ + done + rm -f tests/test_printers_garbage.py +endif + +clean:: + rm -f tests/test_printers_garbage.py + rm -rf build --- simpleparse-2.1.0a1.orig/debian/pyversions +++ simpleparse-2.1.0a1/debian/pyversions @@ -0,0 +1 @@ +2.4- --- simpleparse-2.1.0a1.orig/debian/README.source +++ simpleparse-2.1.0a1/debian/README.source @@ -0,0 +1,5 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +For more information about quilt, see /usr/share/doc/quilt/README.source --- simpleparse-2.1.0a1.orig/debian/python-simpleparse-doc.docs +++ simpleparse-2.1.0a1/debian/python-simpleparse-doc.docs @@ -0,0 +1 @@ +doc --- simpleparse-2.1.0a1.orig/debian/control +++ simpleparse-2.1.0a1/debian/control @@ -0,0 +1,48 @@ +Source: simpleparse +Section: python +Priority: optional +Maintainer: Debian Python Modules Team +Uploaders: Vincent Bernat +Build-Depends: debhelper (>= 7), cdbs (>= 0.4.43), python-all-dev (>= 2.3.5-11), python-support (>= 0.6.4), python-setuptools (>= 0.6b3), quilt, patchutils (>= 0.2.25), python-egenix-mxdatetime +Vcs-Svn: svn://svn.debian.org/python-modules/packages/simpleparse/trunk +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/simpleparse/trunk/ +Standards-Version: 3.8.3 +Homepage: http://simpleparse.sourceforge.net/ + +Package: python-simpleparse +Architecture: all +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} +Python-Depends: python-simpleparse-mxtexttools (>= ${binary:Version}) +Suggests: python-simpleparse-doc +XB-Python-Version: ${python:Versions} +Description: A simple parser generator for Python + SimpleParse is a BSD-licensed Python package providing a simple parser + generator for use with the mxTextTools text-tagging engine. SimpleParse + allows you to generate tagging tables for use with the text-tagging + engine directly from your EBNF grammar. + +Package: python-simpleparse-doc +Architecture: all +Depends: ${misc:Depends} +Section: doc +Description: Documentation for simpleparse, a simple parser generator for Python + SimpleParse is a BSD-licensed Python package providing a simple parser + generator for use with the mxTextTools text-tagging engine. SimpleParse + allows you to generate tagging tables for use with the text-tagging + engine directly from your EBNF grammar. + . + This package contains documentation and examples. + +Package: python-simpleparse-mxtexttools +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: A simple parser generator for Python - architecture dependent files + SimpleParse is a BSD-licensed Python package providing a simple parser + generator for use with the mxTextTools text-tagging engine. SimpleParse + allows you to generate tagging tables for use with the text-tagging + engine directly from your EBNF grammar. + . + This package contains a version of mxTextTools modified for + SimpleParse. --- simpleparse-2.1.0a1.orig/debian/copyright +++ simpleparse-2.1.0a1/debian/copyright @@ -0,0 +1,145 @@ +This Debian package was created by Seo Sanghyeon + +The upstream source was obtained from: + + http://sourceforge.net/projects/simpleparse + +Upstream authors: + + Mike C. Fletcher + +Copyright, License & Disclaimer + + 1998-2002, Copyright by Mike C. Fletcher; All Rights Reserved. + mailto: mcfletch@users.sourceforge.net + + Permission to use, copy, modify, and distribute this software + and its documentation for any purpose and without fee or royalty + is hereby granted, provided that the above copyright notice appear + in all copies and that both the copyright notice and this + permission notice appear in supporting documentation or portions + thereof, including modifications, that you make. + + THE AUTHOR MIKE C. FLETCHER DISCLAIMS ALL WARRANTIES WITH REGARD + TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE + LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY + DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE! + +This package also includes mxTextTools which is licensed under +EGENIX.COM Public License Agreement reproduced below. + + + EGENIX.COM PUBLIC LICENSE AGREEMENT VERSION 1.1.0 + ________________________________________________________________________ + + 1. Introduction + + This "License Agreement" is between eGenix.com Software, Skills + and Services GmbH ("eGenix.com"), having an office at + Pastor-Loeh-Str. 48, D-40764 Langenfeld, Germany, and the + Individual or Organization ("Licensee") accessing and otherwise + using this software in source or binary form and its associated + documentation ("the Software"). + + 2. License + + Subject to the terms and conditions of this eGenix.com Public + License Agreement, eGenix.com hereby grants Licensee a + non-exclusive, royalty-free, world-wide license to reproduce, + analyze, test, perform and/or display publicly, prepare derivative + works, distribute, and otherwise use the Software alone or in any + derivative version, provided, however, that the eGenix.com Public + License Agreement is retained in the Software, or in any + derivative version of the Software prepared by Licensee. + + 3. NO WARRANTY + + eGenix.com is making the Software available to Licensee on an "AS + IS" basis. SUBJECT TO ANY STATUTORY WARRANTIES WHICH CAN NOT BE + EXCLUDED, EGENIX.COM MAKES NO REPRESENTATIONS OR WARRANTIES, + EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, + EGENIX.COM MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY + OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT + THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. + + 4. LIMITATION OF LIABILITY + + EGENIX.COM SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF + THE SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES + OR LOSS (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF + BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS + INFORMATION, OR OTHER PECUNIARY LOSS) AS A RESULT OF USING, + MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, + EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + + SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF + INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE EXCLUSION OR + LIMITATION MAY NOT APPLY TO LICENSEE. + + 5. Termination + + This License Agreement will automatically terminate upon a + material breach of its terms and conditions. + + 6. Third Party Rights + + Any software or documentation in source or binary form provided + along with the Software that is associated with a separate license + agreement is licensed to Licensee under the terms of that license + agreement. This License Agreement does not apply to those portions + of the Software. Copies of the third party licenses are included + in the Software Distribution. + + 7. General + + Nothing in this License Agreement affects any statutory rights of + consumers that cannot be waived or limited by contract. + + Nothing in this License Agreement shall be deemed to create any + relationship of agency, partnership, or joint venture between + eGenix.com and Licensee. + + If any provision of this License Agreement shall be unlawful, + void, or for any reason unenforceable, such provision shall be + modified to the extent necessary to render it enforceable without + losing its intent, or, if no such modification is possible, be + severed from this License Agreement and shall not affect the + validity and enforceability of the remaining provisions of this + License Agreement. + + This License Agreement shall be governed by and interpreted in all + respects by the law of Germany, excluding conflict of law + provisions. It shall not be governed by the United Nations + Convention on Contracts for International Sale of Goods. + + This License Agreement does not grant permission to use eGenix.com + trademarks or trade names in a trademark sense to endorse or + promote products or services of Licensee, or any third party. + + The controlling language of this License Agreement is English. If + Licensee has received a translation into another language, it has + been provided for Licensee's convenience only. + + 8. Agreement + + By downloading, copying, installing or otherwise using the + Software, Licensee agrees to be bound by the terms and conditions + of this License Agreement. + + + For question regarding this License Agreement, please write to: + + eGenix.com Software, Skills and Services GmbH + Pastor-Loeh-Str. 48 + D-40764 Langenfeld + Germany + +Copyright of this package is: + + Copyright (c) 1997-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com + Copyright (c) 2000-2002, eGenix.com Software GmbH; mailto:info@egenix.com + Copyright (c) 2003-2006, Mike Fletcher; mailto:mcfletch@vrplumber.com --- simpleparse-2.1.0a1.orig/debian/pycompat +++ simpleparse-2.1.0a1/debian/pycompat @@ -0,0 +1 @@ +2 --- simpleparse-2.1.0a1.orig/debian/watch +++ simpleparse-2.1.0a1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/simpleparse/SimpleParse-([\d\.]+.*)\.tar\.gz --- simpleparse-2.1.0a1.orig/debian/compat +++ simpleparse-2.1.0a1/debian/compat @@ -0,0 +1 @@ +7 --- simpleparse-2.1.0a1.orig/debian/source/format +++ simpleparse-2.1.0a1/debian/source/format @@ -0,0 +1 @@ +1.0 --- simpleparse-2.1.0a1.orig/debian/patches/series +++ simpleparse-2.1.0a1/debian/patches/series @@ -0,0 +1 @@ +remove-with-keyword.patch --- simpleparse-2.1.0a1.orig/debian/patches/remove-with-keyword.patch +++ simpleparse-2.1.0a1/debian/patches/remove-with-keyword.patch @@ -0,0 +1,131 @@ +Remove "with" keyword to remove a warning with python2.5 + +--- SimpleParse-2.1.0a1/stt/TextTools/TextTools.py~ 2006-02-19 00:33:56.000000000 +0100 ++++ SimpleParse-2.1.0a1/stt/TextTools/TextTools.py 2008-01-26 17:07:18.000000000 +0100 +@@ -167,7 +167,7 @@ + # Extra stuff useful in combination with the C functions + # + +-def replace(text,what,with,start=0,stop=None, ++def replace(text,what,withwhat,start=0,stop=None, + + SearchObject=TextSearch,join=join,joinlist=joinlist,tag=tag, + string_replace=string.replace,type=type, +@@ -188,11 +188,11 @@ + what = so.match + if stop is None: + if start == 0 and len(what) < 2: +- return string_replace(text,what,with) ++ return string_replace(text,what,withwhat) + stop = len(text) + t = ((text,sWordStart,so,+2), + # Found something, replace and continue searching +- (with,Skip+AppendTagobj,len(what),-1,-1), ++ (withwhat,Skip+AppendTagobj,len(what),-1,-1), + # Rest of text + (text,Move,ToEOF) + ) +@@ -203,13 +203,13 @@ + + # Alternative (usually slower) versions using different techniques: + +-def _replace2(text,what,with,start=0,stop=None, ++def _replace2(text,what,withwhat,start=0,stop=None, + + join=join,joinlist=joinlist,tag=tag, + TextSearchType=TextSearchType,TextSearch=TextSearch): + + """Analogon to string.replace; returns a string with all occurences +- of what in text[start:stop] replaced by with. ++ of what in text[start:stop] replaced by withwhat. + + This version uses a one entry tag-table and a + Boyer-Moore-Search-object. what can be a string or a +@@ -226,13 +226,13 @@ + stop = len(text) + if type(what) is not TextSearchType: + what=TextSearch(what) +- t = ((with,sFindWord,what,+1,+0),) ++ t = ((withwhat,sFindWord,what,+1,+0),) + found,taglist,last = tag(text,t,start,stop) + if not found: + return text + return join(joinlist(text,taglist)) + +-def _replace3(text,what,with, ++def _replace3(text,what,withwhat, + + join=string.join,TextSearch=TextSearch, + TextSearchType=TextSearchType): +@@ -245,12 +245,12 @@ + l = [] + x = 0 + for left,right in slices: +- l.append(text[x:left] + with) ++ l.append(text[x:left] + withwhat) + x = right + l.append(text[x:]) + return join(l,'') + +-def _replace4(text,what,with, ++def _replace4(text,what,withwhat, + + join=join,joinlist=joinlist,tag=tag,TextSearch=TextSearch, + TextSearchType=TextSearchType): +@@ -262,7 +262,7 @@ + return text + repl = [None]*len(slices) + for i in range(len(slices)): +- repl[i] = (with,)+slices[i] ++ repl[i] = (withwhat,)+slices[i] + return join(joinlist(text,repl)) + + def multireplace(text,replacements,start=0,stop=None, +@@ -569,16 +569,16 @@ + print 'Replacing strings' + print '-'*72 + print +- for what,with in (('m','M'),('mx','MX'),('mxText','MXTEXT'), ++ for what,withwhat in (('m','M'),('mx','MX'),('mxText','MXTEXT'), + ('hmm','HMM'),('hmmm','HMM'),('hmhmm','HMM')): +- print 'Replace "%s" with "%s"' % (what,with) ++ print 'Replace "%s" with "%s"' % (what,withwhat) + t.start() + for i in range(100): +- rtext = string.replace(text,what,with) ++ rtext = string.replace(text,what,withwhat) + print 'with string.replace:',t.stop(),'sec.' + t.start() + for i in range(100): +- ttext = replace(text,what,with) ++ ttext = replace(text,what,withwhat) + print 'with tag.replace:',t.stop(),'sec.' + if ttext != rtext: + print 'results are NOT ok !' +@@ -586,7 +586,7 @@ + mismatch(rtext,ttext) + t.start() + for i in range(100): +- ttext = _replace2(text,what,with) ++ ttext = _replace2(text,what,withwhat) + print 'with tag._replace2:',t.stop(),'sec.' + if ttext != rtext: + print 'results are NOT ok !' +@@ -594,7 +594,7 @@ + print rtext + t.start() + for i in range(100): +- ttext = _replace3(text,what,with) ++ ttext = _replace3(text,what,withwhat) + print 'with tag._replace3:',t.stop(),'sec.' + if ttext != rtext: + print 'results are NOT ok !' +@@ -602,7 +602,7 @@ + print rtext + t.start() + for i in range(100): +- ttext = _replace4(text,what,with) ++ ttext = _replace4(text,what,withwhat) + print 'with tag._replace4:',t.stop(),'sec.' + if ttext != rtext: + print 'results are NOT ok !'