--- python-pmw-1.3.2.orig/debian/README.source +++ python-pmw-1.3.2/debian/README.source @@ -0,0 +1,58 @@ +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. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- python-pmw-1.3.2.orig/debian/compat +++ python-pmw-1.3.2/debian/compat @@ -0,0 +1 @@ +7 --- python-pmw-1.3.2.orig/debian/python-pmw-doc.doc-base +++ python-pmw-1.3.2/debian/python-pmw-doc.doc-base @@ -0,0 +1,12 @@ +Document: python-pmw-doc +Title: Python MegaWidgets +Author: Greg Mc Farlane +Abstract: Pmw is a framework for building high-level compound widgets in Python + using the Tkinter interface to the Tk graphics library. It + consists of a set of base classes and a library of flexible and + extensible megawidgets built on these base classes. +Section: Programming/Python + +Format: html +Index: /usr/share/doc/python-pmw-doc/html/index.html +Files: /usr/share/doc/python-pmw-doc/html/*.html --- python-pmw-1.3.2.orig/debian/watch +++ python-pmw-1.3.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/pmw/Pmw.([\d\.]*)\.tar\.gz debian uupdate --- python-pmw-1.3.2.orig/debian/rules +++ python-pmw-1.3.2/debian/rules @@ -0,0 +1,62 @@ +#! /usr/bin/make -f +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. + +include /usr/share/quilt/quilt.make + +packagedoc=python-pmw-doc +source_dir=$(CURDIR)/src/Pmw +package_dir=./debian/python-pmw +pdoc=./debian/python-pmw-doc +v=Pmw_1_3 +PYTHON=`readlink /usr/bin/python` + +build: patch + dh_testdir + touch build + +clean: unpatch + dh_testdir + -rm -f build + dh_clean -i + +binary-indep: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -Ai + mkdir -p $(package_dir)/usr/lib/$(PYTHON)/site-packages/Pmw/$(v) + mkdir -p $(pdoc)/usr/share/doc/$(packagedoc)/examples + dh_installdocs -Ai $(source_dir)/README + dh_installchangelogs -i $(source_dir)/$(v)/doc/changes.html + install -m 644 $(source_dir)/__init__.py \ + $(package_dir)/usr/lib/$(PYTHON)/site-packages/Pmw/ + install -m 644 $(source_dir)/$(v)/__init__.py \ + $(package_dir)/usr/lib/$(PYTHON)/site-packages/Pmw/$(v)/ + cp -pr $(source_dir)/$(v)/lib \ + $(package_dir)/usr/lib/$(PYTHON)/site-packages/Pmw/$(v)/ + install -m 644 $(source_dir)/$(v)/demos/* \ + $(pdoc)/usr/share/doc/$(packagedoc)/examples/ + cp -pr $(source_dir)/$(v)/doc \ + $(pdoc)/usr/share/doc/$(packagedoc)/html + dh_fixperms -i + dh_compress -AiX.py + chmod a+x $(pdoc)/usr/share/doc/$(packagedoc)/examples/All.py + dh_pycentral -i + rm -f $(package_dir)/usr/lib + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: +# There are no architecture-dependent files to be uploaded +# generated by this package. If there were any they would be +# made here. + + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean --- python-pmw-1.3.2.orig/debian/copyright +++ python-pmw-1.3.2/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Frederic Lepied on +Mon, 24 Nov 1997 20:54:19 +0100. + +It was downloaded from http://pmw.sourceforge.net/ + +Copyright: + +Copyright (c) 1997, 1998, 1999, 2000, 2001 Telstra Corporation Limited, +Australia (ACN 051 775 556) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. --- python-pmw-1.3.2.orig/debian/control +++ python-pmw-1.3.2/debian/control @@ -0,0 +1,34 @@ +Source: python-pmw +Section: python +Priority: optional +Maintainer: Carlo Segre +Build-Depends: debhelper (>= 7), quilt +Build-Depends-Indep: python (>= 2.3.5-10), python-central (>= 0.5) +XS-Python-Version: all +Standards-Version: 3.8.3 + +Package: python-pmw +Architecture: all +Depends: python-tk (>= 2.4.3), ${python:Depends} +Recommends: blt +Suggests: python-pmw-doc +XB-Python-Version: ${python:Versions} +Description: Pmw -- Python MegaWidgets + Pmw is a framework for building high-level compound widgets in Python + using the Tkinter interface to the Tk graphics library. It + consists of a set of base classes and a library of flexible and + extensible megawidgets built on these base classes. + . + This package provides the pmw modules + +Package: python-pmw-doc +Architecture: all +Section: doc +XB-Python-Version: ${python:Versions} +Description: Pmw -- Python MegaWidgets + Pmw is a framework for building high-level compound widgets in Python + using the Tkinter interface to the Tk graphics library. It + consists of a set of base classes and a library of flexible and + extensible megawidgets built on these base classes. + . + This package provides the pmw documentation --- python-pmw-1.3.2.orig/debian/changelog +++ python-pmw-1.3.2/debian/changelog @@ -0,0 +1,200 @@ +python-pmw (1.3.2-4) unstable; urgency=low + + [ Carlo Segre ] + * Upgrade to compatibility level 7 and Standards-version 3.8.3 + (no changes necessary) + * Patches below accepted, thanks Christoph. + + [ Christoph Berg ] + * Do not try to delete commands in python versions >= 2.5.4. + (Closes: #561145) + + -- Carlo Segre Sun, 20 Dec 2009 14:20:45 -0600 + +python-pmw (1.3.2-3) unstable; urgency=low + + * Don't fail build if usr/lib is already removed (Closes: #472023) + * Upgrade to Standards-Version 3.7.3 (no changes) + * Remove boilerplate in README.Debian + * Change doc-base section to Programming/Python + + -- Carlo Segre Sat, 22 Mar 2008 00:40:00 -0500 + +python-pmw (1.3.2-2) unstable; urgency=low + + * Remove empty /usr/lib directory after running pycentral. + + -- Carlo Segre Wed, 21 Nov 2007 00:13:03 -0600 + +python-pmw (1.3.2-1) unstable; urgency=low + + * New upstream release + + -- Carlo Segre Wed, 26 Sep 2007 17:15:16 -0500 + +python-pmw (1.3.1-1) unstable; urgency=low + + * New upstream release + + -- Carlo Segre Sat, 18 Aug 2007 17:37:53 -0500 + +python-pmw (1.2-6) unstable; urgency=low + + * New Maintainer (Closes: #395871). + * Upgrade watch file to version 3. + + -- Carlo Segre Sat, 30 Dec 2006 16:05:33 -0600 + +python-pmw (1.2-5) unstable; urgency=low + + * Orphan the package. + + -- Matthias Klose Sat, 28 Oct 2006 12:13:17 +0200 + +python-pmw (1.2-4) unstable; urgency=low + + * Convert to updated Python policy. Closes: #373338. + * Supports more than one python version. Closes: #216728. + + -- Matthias Klose Fri, 16 Jun 2006 21:22:37 +0000 + +python-pmw (1.2-3) unstable; urgency=low + + * Add watch file. + + -- Matthias Klose Thu, 11 Nov 2004 07:48:35 +0100 + +python-pmw (1.2-2) unstable; urgency=low + + * Update to new standards version 3.6.1 (no changes). + + -- Matthias Klose Wed, 15 Oct 2003 22:12:04 +0200 + +python-pmw (1.2-1) unstable; urgency=low + + * New maintainer (closes: #206861). + + -- Matthias Klose Wed, 24 Sep 2003 08:32:10 +0200 + +python-pmw (1.2-0.1) unstable; urgency=low + + * NMU + * New upstream version (closes: #206848). + * Set maintainer to Debian QA Group + + -- Matthias Klose Thu, 28 Aug 2003 20:16:41 +0200 + +python-pmw (0.8.5-6.2) unstable; urgency=low + + * NMU. + * Standards-version is 3.6.0: + - Move debhelper from build-depends-indep to build-depends. + * Use dh_python, require debhelper 4.1.62. + * Move to section python. + * Rebuild with python 2.3 (closes: #205751, #205272, #205544). + + -- Josselin Mouette Tue, 19 Aug 2003 12:33:10 +0200 + +python-pmw (0.8.5-6.1) unstable; urgency=low + + * Non Maintainer Upload + * Switched to Python-2.2 (closes: #158930) + + -- Michael Banck Sun, 1 Sep 2002 13:32:28 +0200 + +python-pmw (0.8.5-6) unstable; urgency=low + + * Stopped compiling entire site-packages tree (closes: #128576) + + -- Harry Henry Gebel Thu, 10 Jan 2002 09:18:07 -0500 + +python-pmw (0.8.5-5) unstable; urgency=low + + * Moved python-pmw-doc to section doc + * Changed form of depends to conform to policy (closes: #118440) + + -- Harry Henry Gebel Mon, 7 Jan 2002 04:01:42 -0500 + +python-pmw (0.8.5-4) unstable; urgency=low + + * Changed priority to optional in accordance with override file + + -- Harry Henry Gebel Mon, 5 Nov 2001 20:47:07 -0500 + +python-pmw (0.8.5-3) unstable; urgency=low + + * Updated to conform to new python policy + * Removed python2 package + * Upgraded blt from a suggestion to a recommendation + * Updated to conform to new python policy (closes: #118191) + * Updated debhelper build-dep to version 3.0.0 + * Changed build-depends to build-depends-indep + * Changed policy to 3.5.6 + + -- Harry Henry Gebel Sun, 4 Nov 2001 21:41:00 -0500 + +python-pmw (0.8.5-2) unstable; urgency=low + + * Adopted package (closes: #90055) + * Added python2 package + * Updated out of date (1997) copyright and README.debian files + * Removed unneccesary debian/dirs + + -- Harry Henry Gebel Thu, 24 May 2001 05:27:46 -0400 + +python-pmw (0.8.5-1) unstable; urgency=low + + * The maintainer has orphaned this package (see bug #90055); set + maintainer to Debian QA Group. + * New upstream version (closes: #61577). + * We already use debhelper, so cleaned up various things that debhelper + can do for us. + * Updated to policy version 3.5.2: + - FHS updates (closes: #91615). + - Build dependencies. + - Installed changes.html as the upstream changelog and used + dh_installchangelogs to convert it to text. + + -- Colin Watson Thu, 29 Mar 2001 00:04:28 +0100 + +python-pmw (0.8.1-1) unstable; urgency=low + + * new upstream version. + + -- Frederic Lepied Tue, 17 Aug 1999 21:58:58 +0200 + +python-pmw (0.8-1) unstable; urgency=low + + * new upstream release. + * fixed bug #28000. + + -- Frederic Lepied Sat, 19 Dec 1998 18:30:09 +0100 + +python-pmw (0.7-1) unstable; urgency=low + + * new upstream version. + + -- Frederic Lepied Wed, 3 Jun 1998 18:48:54 +0200 + +python-pmw (0.6.2-0.1) frozen unstable; urgency=low + + * non maintainer release. + * a python-pmw 0.6.1 version was uploaded by Gregor Hoffleit + to hamm before the code freeze, but + disappeared somehow ... + * install python files in path, where python finds them (Fixes #20200). + * build binary independent package. + * use debhelper. + * don't include byte compiled files in deb file. + * fixed examples/All.py to find python files in /usr/doc/python-pmw/examples. + * look for new upstream version in the slink release. + + -- Matthias Klose Mon, 4 May 1998 14:59:32 +0200 + +python-pmw (0.5.1-1) unstable; urgency=low + + * Initial Release. + + -- Frederic Lepied Mon, 24 Nov 1997 20:54:19 +0100 + + --- python-pmw-1.3.2.orig/debian/README.Debian +++ python-pmw-1.3.2/debian/README.Debian @@ -0,0 +1,6 @@ +Python Mega Widgets for DEBIAN +------------------------------ + +Pmw is configured to use BLT if it's installed. + +Harry Henry Gebel Thu, 24 May 2001 03:52:26 -0400 --- python-pmw-1.3.2.orig/debian/patches/series +++ python-pmw-1.3.2/debian/patches/series @@ -0,0 +1 @@ +PmwOptionMenu.py-deletecommand --- python-pmw-1.3.2.orig/debian/patches/PmwOptionMenu.py-deletecommand +++ python-pmw-1.3.2/debian/patches/PmwOptionMenu.py-deletecommand @@ -0,0 +1,54 @@ +Source: http://github.com/nanotube/pmw_fixes/commit/5e6dcbdaef2bb6c40037b922dd0efa081f1575ab (Daniel Folkinshteyn) + +fix bug in OptionMenu.setitems, introduced with the fixing of this python +bug: +http://bugs.python.org/issue1342811 + +versions of python 2.5.4 and newer now automatically delete commands when +items are deleted +however, that causes error if the command is deleted manually beforehand. +old versions, on the contrary, require manual command deletion to free up +the objects. + +so we put in a python version check to see if we need to manually delete +commands. + +fixes the Pmw bug referred to here: +http://sourceforge.net/forum/forum.php?thread_id=3283195&forum_id=33675 +and here: +http://sourceforge.net/tracker/?func=detail&aid=2795731&group_id=10743&ati +d=110743 + +--- a/src/Pmw/Pmw_1_3/lib/PmwOptionMenu.py ++++ b/src/Pmw/Pmw_1_3/lib/PmwOptionMenu.py +@@ -1,6 +1,7 @@ + import types + import Tkinter + import Pmw ++import sys + + class OptionMenu(Pmw.MegaWidget): + +@@ -59,11 +60,17 @@ class OptionMenu(Pmw.MegaWidget): + + def setitems(self, items, index = None): + +- # Clean up old items and callback commands. +- for oldIndex in range(len(self._itemList)): +- tclCommandName = str(self._menu.entrycget(oldIndex, 'command')) +- if tclCommandName != '': +- self._menu.deletecommand(tclCommandName) ++ # python version check ++ # python versions >= 2.5.4 automatically clean commands ++ # and manually cleaning them causes errors when deleting items ++ ++ if sys.version_info[0] * 100 + sys.version_info[1] * 10 + \ ++ sys.version_info[2] < 254: ++ # Clean up old items and callback commands. ++ for oldIndex in range(len(self._itemList)): ++ tclCommandName = str(self._menu.entrycget(oldIndex, 'command')) ++ if tclCommandName != '': ++ self._menu.deletecommand(tclCommandName) + self._menu.delete(0, 'end') + self._itemList = list(items) +