--- pyrite-publisher-2.1.1.orig/README.GUI +++ pyrite-publisher-2.1.1/README.GUI @@ -15,7 +15,7 @@ Pyrite Publisher and wxPython have been installed) or in Unix run it like this: - python /usr/local/lib/python2.1/site-packages/PyritePublisher/gui_wxwin.py + python /usr/lib/python2.1/site-packages/PyritePublisher/gui_wxwin.py The main window should be pretty straightforward: put the filename of the file you want to convert in the topmost text box (or use the --- pyrite-publisher-2.1.1.orig/PyritePublisher/gui_wxwin.py +++ pyrite-publisher-2.1.1/PyritePublisher/gui_wxwin.py @@ -28,6 +28,15 @@ __copyright__ = 'Copyright 2001 Rob Tillotson ' +import os + +# NOTE -- the following line is X specific. I don't care. +# wxPython has a bug in which it will invoke the C exit() function +# if there isn't a display available. + +if not os.environ.has_key("DISPLAY"): + raise ImportError, 'No display set; cannot import wxPython' + from wxPython.wx import * import sys @@ -73,7 +82,6 @@ EVT_LISTBOX(self, self.ID_LISTBOX, self.listbox_select) notebook = wxNotebook(self, -1) - notebook_sizer = wxNotebookSizer(notebook) # notebook info page info_panel = wxPanel(notebook, -1) @@ -102,7 +110,7 @@ info_panel.SetAutoLayout(true) info_panel.SetSizer(sz0) - main_sizer.Add(notebook_sizer, 2, wxEXPAND) + main_sizer.Add(notebook, 2, wxEXPAND) top_sizer.Add(main_sizer, 1, wxEXPAND|wxALL, 5) @@ -336,7 +344,7 @@ wc = self.instance.wildcards.items() wc.sort(lambda x,y: cmp(x[1],y[1])) wc.insert(0, ('*.*', 'All files')) - wct = string.join(map(lambda p: '%s (%s)|%s' % (p[1],p[0],p[0]), wc), '|') + wct = '|'.join(map(lambda p: '%s (%s)|%s' % (p[1],p[0],p[0]), wc)) dlg = wxFileDialog(self, "Choose a file to convert", wildcard = wct, style=wxOPEN) --- pyrite-publisher-2.1.1.orig/PyritePublisher/pyrpub +++ pyrite-publisher-2.1.1/PyritePublisher/pyrpub @@ -3,6 +3,10 @@ import sys +import traceback + +guiException = None + try: import dtkmain except: @@ -14,14 +18,21 @@ try: from PyritePublisher import gui_wxwin except: - pass + guiException = sys.exc_info() if len(sys.argv) == 1: + if guiException != None: + print >>sys.stderr, "No arguments given, but error starting GUI (is python-wxgtk2.6 installed?)" + traceback.print_exception(guiException[0],guiException[1],guiException[2]) + sys.exit(1) try: app = gui_wxwin.PPApp(0) app.MainLoop() sys.exit() + except SystemExit: + pass except: - sys.exit() + traceback.print_exc() + sys.exit(1) dtkmain.PPCLI()(sys.argv) --- pyrite-publisher-2.1.1.orig/debian/control +++ pyrite-publisher-2.1.1/debian/control @@ -0,0 +1,17 @@ +Source: pyrite-publisher +Section: otherosfs +Priority: extra +Maintainer: Daniel Martin +Build-Depends: debhelper (>= 5), python-dev, python-support +Standards-Version: 3.7.2 + +Package: pyrite-publisher +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends} +Suggests: python-wxgtk2.8 +Description: Convert html and text documents to palm DOC format + Pyrite Publisher can convert a variety of input formats into several + different variations on the palm doc format. + . + This version includes support for a gui interface; see + /usr/share/doc/pyrite-publisher/README.GUI for details. --- pyrite-publisher-2.1.1.orig/debian/dirs +++ pyrite-publisher-2.1.1/debian/dirs @@ -0,0 +1 @@ +usr/bin --- pyrite-publisher-2.1.1.orig/debian/pycompat +++ pyrite-publisher-2.1.1/debian/pycompat @@ -0,0 +1 @@ +2 --- pyrite-publisher-2.1.1.orig/debian/pyrite-publisher.doc-base +++ pyrite-publisher-2.1.1/debian/pyrite-publisher.doc-base @@ -0,0 +1,12 @@ +Document: pyrite-publisher +Title: Pyrite Publisher Manual +Author: Rob Tillotson +Abstract: This manual describes how to use + Pyrite Publisher to generate various ebook formats + for the palm platform. +Section: text + +Format: HTML +Index: /usr/share/doc/pyrite-publisher/pyrite-publisher/index.html +Files: /usr/share/doc/pyrite-publisher/pyrite-publisher/*.html /usr/share/doc/pyrite-publisher/pyrite-publisher/*.css + --- pyrite-publisher-2.1.1.orig/debian/docs +++ pyrite-publisher-2.1.1/debian/docs @@ -0,0 +1,5 @@ +NEWS +README.txt +doc/*.pdb +doc/pyrite-publisher +README.GUI --- pyrite-publisher-2.1.1.orig/debian/pyrite-publisher.manpages +++ pyrite-publisher-2.1.1/debian/pyrite-publisher.manpages @@ -0,0 +1 @@ +doc/pyrpub.1 --- pyrite-publisher-2.1.1.orig/debian/rules +++ pyrite-publisher-2.1.1/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=5 + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + python ./setup.py build --build-base=debian/pyrite-publisher-build --force + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + rm -rf debian/pyrite-publisher-build + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/pyrite-publisher. + + python ./setup.py build --build-base=debian/pyrite-publisher-build install --prefix=debian/pyrite-publisher/usr --no-compile + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_pysupport + dh_python + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- pyrite-publisher-2.1.1.orig/debian/copyright +++ pyrite-publisher-2.1.1/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Daniel Martin on +Tue, 16 Apr 2002 21:47:11 -0400 with massive help from debhelper. + +It was downloaded from + +Upstream Author: Rob Tillotson + +Copyright: + +Copyright 1998-2001 Rob Tillotson +All Rights Reserved + +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 you make. + +THE AUTHOR ROB TILLOTSON 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! + --- pyrite-publisher-2.1.1.orig/debian/watch +++ pyrite-publisher-2.1.1/debian/watch @@ -0,0 +1,6 @@ +version=2 +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Version Script +http://www.pyrite.org/dist/pyrite-publisher-([0-9.]*)\.tar\.gz debian uupdate --- pyrite-publisher-2.1.1.orig/debian/changelog +++ pyrite-publisher-2.1.1/debian/changelog @@ -0,0 +1,108 @@ +pyrite-publisher (2.1.1-7.1) unstable; urgency=low + + * Non-maintainer upload at request of maintainer. + * Update "Suggests:" from python-wxgtk2.6 to python-wxgtk2.8. + (Closes: #645567) + * README.Debian: Remove, since this package now supports all python versions + in the usual way (looks like that was fixed in 2.1.1-5.1). + * Add ${shlibs:Depends} to "Depends:" to fix lintian error + missing-dependency-on-libc. + + -- Olly Betts Thu, 20 Oct 2011 02:36:20 +0000 + +pyrite-publisher (2.1.1-7) unstable; urgency=low + + * Don't spout spurious messages when exiting normally. + + -- Daniel Martin Mon, 23 Oct 2006 15:52:35 -0400 + +pyrite-publisher (2.1.1-6) unstable; urgency=low + + * Switch string.join(a,b) to b.join(a) to fix error from not importing + string. (Closes: 387284) + * Remove no-longer-necessary notebook_sizer in gui. + * Add better warning/error messages when trying to use the gui without + an appropriate wxpython installed. + + -- Daniel Martin Sun, 22 Oct 2006 17:30:42 -0400 + +pyrite-publisher (2.1.1-5.2) unstable; urgency=low + + * Non-maintainer upload. + * Strip old pre/postrm that are not needed anymore (Closes: #381390). + (previous NMU should have done that, fixing my mess). + + -- Pierre Habouzit Fri, 4 Aug 2006 19:46:04 +0200 + +pyrite-publisher (2.1.1-5.1) unstable; urgency=low + + * Non-maintainer upload. + * Bump DH_COMPAT to 5. + * Compile for current python instead of hardcoding python2.3. + * Bump Standards-Version to 3.7.2. + * Update package for the new python policy (Closes: #380916). + * Fix various lintian warnings (especialy wrong doc-base). + + -- Pierre Habouzit Wed, 2 Aug 2006 19:31:34 +0200 + +pyrite-publisher (2.1.1-5) unstable; urgency=low + + * New wxwindows and python package. (closes: Bug#328408) + + -- Daniel Martin Wed, 2 Nov 2005 23:09:19 -0500 + +pyrite-publisher (2.1.1-4) unstable; urgency=low + + * Switching to wxwindows 2.4 and python 2.3 + + -- Daniel Martin Wed, 3 Sep 2003 21:52:07 -0400 + +pyrite-publisher (2.1.1-3) unstable; urgency=low + + * Switching over to wxwindows 2.3, since 2.2 is outdated (and no longer + compiles in unstable). (closes: Bug#166102) + + -- Daniel Martin Sat, 26 Oct 2002 15:12:32 -0400 + +pyrite-publisher (2.1.1-2) unstable; urgency=low + + * Debian's default python switched to 2.2; this version now goes against + that. + + -- Daniel Martin Mon, 23 Sep 2002 21:27:07 -0400 + +pyrite-publisher (2.1.1-1) unstable; urgency=low + + * New upstream release + * Nothing really new here; upstream fixed a bug that affects a different + OS. + * Rewritten description eliminates spelling error. (closes: Bug#125278) + * Added an X-specific hack in gui_wxwin.py to work around + Bug#146757 in libwxgtk2.2-python. pyrpub should now work again in the + case when the X display is not available, but the wxPython package is + installed. + + -- Daniel Martin Tue, 27 Aug 2002 21:56:52 -0400 + +pyrite-publisher (2.1.0-2) unstable; urgency=low + + * Remove extra copy of upstream changelog file. + * Fix section and priority header lines + + -- Daniel Martin Thu, 18 Apr 2002 00:25:07 -0400 + +pyrite-publisher (2.1.0-1) unstable; urgency=low + + * New upstream release + + -- Daniel Martin Wed, 17 Apr 2002 23:53:29 -0400 + +pyrite-publisher (2.0.0-1) unstable; urgency=low + + * Initial Release. + * Completely new packaging - the upstream changed a great deal and + I'm the new maintainer for this package + * Never released + + -- Daniel Martin Wed, 17 Apr 2002 23:12:41 -0400 +