--- pytrainer-1.8.0.orig/debian/postinst +++ pytrainer-1.8.0/debian/postinst @@ -0,0 +1,15 @@ +#!/bin/sh -e +# +#DEBHELPER# +case "$1" in + configure) + if test -x /usr/bin/update-menus; then update-menus; fi + if [ -x /usr/sbin/update-mime ]; then + update-mime + fi + if [ -x /usr/bin/update-desktop-database ]; then + update-desktop-database + fi + ;; + *) +esac --- pytrainer-1.8.0.orig/debian/menu +++ pytrainer-1.8.0/debian/menu @@ -0,0 +1,2 @@ +?package(pytrainer):needs="X11" section="Applications/Data Management"\ + title="pytrainer" command="/usr/bin/pytrainer" --- pytrainer-1.8.0.orig/debian/rules +++ pytrainer-1.8.0/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: + dh_testdir + dh_quilt_patch + touch build_stamp + +clean: + dh_testdir + dh_testroot + dh_quilt_unpatch + rm -f build-stamp configure-stamp + dh_clean + rm -rf $(CURDIR)/build + rm -rf $(CURDIR)/debian/pytrainer/usr + +install: + rm -rf $(CURDIR)/debian/pytrainer/usr + rm -rf $(CURDIR)/build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + python setup.py install --no-compile --prefix $(CURDIR)/debian/pytrainer/usr --install-layout=deb + mv $(CURDIR)/debian/pytrainer/usr/bin/pytrainer $(CURDIR)/debian/pytrainer/usr/bin/pytr + cp $(CURDIR)/debian/mozpytrainer.sh $(CURDIR)/debian/pytrainer/usr/bin/pytrainer + +binary-arch: +#nothing to do + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installmenu + dh_installman debian/pytrainer.1 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_pysupport + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep +.PHONY: build clean binary-indep binary install --- pytrainer-1.8.0.orig/debian/copyright +++ pytrainer-1.8.0/debian/copyright @@ -0,0 +1,131 @@ +This package was debianized by +Fiz Vazquez on Tue, 27 Apr 2006 09:52:53 +0200 +Noèl Köthe on Sat, 09 Aug 2008 20:46:08 +0200 + +It was downloaded from http://pytrainer.e-oss.net + http://sourceforge.net/projects/pytrainer/ + +Copyright Holder: Fiz Vazquez + +License: + + (C) Fiz Vazquez + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. See the + GNU General Public License + for more details. + + You can found the license on Debian systems in the file + /usr/share/common-licenses/GPL-2 + + +extensions/wordpress/wordpresslib.py + +Copyright (C) 2005 Michele Ferretti +black.bird@tiscali.it +http://www.blackbirdblog.it + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + + +extensions/dotclear/main.py + +Copyright (C) DJ dj@namurlug.org http://blog.dedj.be + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + + +plugins/garmingpx/main.py + +Copyright (C) Kevin Dwyer kevin@pheared.net + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + + + +plugins/ipod/main.py + +Copyright (C) Miguel Angel Otero + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + + +pytrainer/gui/SimpleGladeApp.py + +Copyright (C) 2004 Sandino Flores Moreno + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + --- pytrainer-1.8.0.orig/debian/changelog +++ pytrainer-1.8.0/debian/changelog @@ -0,0 +1,465 @@ +pytrainer (1.8.0-1ubuntu1) oneiric; urgency=low + + * Port from python-gtkmozembed to python-webkit. GtkMozEmbed has been + abandoned upstream and we are dropping xulrunner from Ubuntu entirely + (see https://blueprints.launchpad.net/ubuntu/+spec/ + desktop-o-mozilla-rapid-release-maintenance) + - add debian/patches/01_port_to_webkit.patch + - add debian/patches/series + - update debian/control + - update debian/rules + + -- Chris Coulson Wed, 08 Jun 2011 10:28:20 +0100 + +pytrainer (1.8.0-1) unstable; urgency=low + + * new upstream release + - fixed problem with missing config (closes: #581991) + * ACK NMU (closes: #591983) + + -- Noèl Köthe Sat, 11 Dec 2010 21:27:45 +0100 + +pytrainer (1.7.2-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Add python as dependency thanks to Jakub Wilk (Closes: #591983). + + -- Martijn van Brummelen Fri, 17 Sep 2010 13:12:47 +0200 + +pytrainer (1.7.2-1) unstable; urgency=low + + * new upstream release from 2010-04-11 + - upstream added import "with" statement. closes: #568781 + * updated Standards-Version to 3.8.4 without changes + * changed browser dependency as requested by Luke Faraone + closes: Bug#580521 + * corrected "except .. as" syntax error for python 2.5. This will + be dropped with python 2.6 as default python + + -- Noèl Köthe Wed, 12 May 2010 15:33:22 +0200 + +pytrainer (1.7.1-1.1) unstable; urgency=low + + * Non-maintainer upload, to prepare for Python 2.6 transition + * debian/rules + - added '--install-layout=deb' parameter to setup.py install call; thanks to + Jakub Wilk for the report; Closes: #530526 + * debian/control + - set b-d on python (instead of p-dev) and bump version to '>= 2.5.3-1~', to + support install-layout + * debian/{control, rules} + - added python-support, to byte-compiling and properly handle Python + module; thanks to Luca Falavigna for the report; Closes: #566046 + * plugins/{garmintools/garmintools.py, garmintools_full/garmintools_full.py}, + import/file_garmintools.py + - patched to explicitly import the "with" statement; thanks to Jonathan + Wiltshire for the report; Closes: #568781 + + -- Sandro Tosi Thu, 04 Mar 2010 15:00:30 +0100 + +pytrainer (1.7.1-1) unstable; urgency=low + + * new upstream release from 2010-01-24 + - .desktop file doesn't have the Encoding anymore + (closes: Bug#560906) + - garmin tool integration + (closes: Bug#536572) + - fixed wordpress integration (upstream Ticket#27) + (closes: Bug#564472) + * fixed lintian warning debhelper-but-no-misc-depends + + -- Noèl Köthe Sun, 24 Jan 2010 20:54:37 +0100 + +pytrainer (1.7.0-1) unstable; urgency=low + + * new upstream release + * debian/control added python-lxml dependency + * debian/rules added --no-compile to python setup.py + (closes: #553483) + * debian/copyright corrected lintian warning + old-fsf-address-in-copyright-file + * debian/control updated Standards-Version (no changes) + * debian/mozpytrainer.sh corrected lintian warning + executable-not-elf-or-script + * debian/control changed Section: from x11 to utils (from override) + + -- Noèl Köthe Mon, 07 Dec 2009 17:05:38 +0100 + +pytrainer (1.6.0.9-1) unstable; urgency=low + + * new upstream release from 2009-09-22 + - fixes typo closes: #537723 + + -- Noèl Köthe Thu, 24 Sep 2009 07:49:38 +0200 + +pytrainer (1.6.0.8-1) unstable; urgency=low + + * new upstream release from 2009-04-19 + + -- Noèl Köthe Wed, 13 May 2009 22:23:37 +0200 + +pytrainer (1.6.0.7-2) unstable; urgency=low + + * added missing dependency. closes: #528427 + * corrected Homepage: (e-oss.net is outdated) + * updated Standards-Version: without changes + * raised compat version to 5 + * corrected menu section + + -- Noèl Köthe Wed, 13 May 2009 21:42:57 +0200 + +pytrainer (1.6.0.7-1) unstable; urgency=low + + * new upstream release 1.6.0.7 from 2009-03-29 + 1.6.0.6 was rejected by ftp-master because of files in the + upstream orig with non-free license. 1.6.0.7 had these files + removed so uploading it again + - closing ITP again (closes: Bug#467038) + + -- Noèl Köthe Mon, 06 Apr 2009 17:33:04 +0200 + +pytrainer (1.6.0.6-1) unstable; urgency=low + + * Imported Upstream version 1.6.0.6 + - closing ITP: (closes: Bug#467038) + * updated copyright of some source files + + -- Noèl Köthe Sat, 10 Jan 2009 22:28:11 +0100 + +pytrainer (1.5.0.0.1-2) unstable; urgency=low + + * building package for Debian + * debian/control + - added Homepage + - updated Standards-Version + - using description improvements from David Paleino + - changed firefox to iceweasel dependency + - removed unneeded xvfb Build-Dep + * debian/copyright + - added myself + - corrected GPL link to GPL-2 + * removed old/unneeded code from postinst and postrm + * removed usr/sbin from debian/dirs + + -- Noèl Köthe Sat, 09 Aug 2008 19:59:51 +0200 + +pytrainer (1.5.0.0.1-1) gutsy; urgency=low + + * New upstream release + + -- Fiz Vazquez (vud1) Sat, 19 Jan 2008 23:59:06 +0100 + +pytrainer (1.5-1) gutsy; urgency=low + + * New upstream release + * New Basque translation + * New Danish translation + * new heart rate support + * New garmin heart rate plugin + * other bugs closed + + -- Fiz Vazquez (vud1) Thu, 10 Jan 2008 20:51:22 +0100 + +pytrainer (1.4.7.2-1) gutsy; urgency=low + + * New upstream release + + -- Fiz Vazquez (vud1) Sun, 09 Dec 2007 23:52:06 +0100 + +pytrainer (1.4.7.1-1) gutsy; urgency=low + + * Added ipod plugin + + -- Fiz Vazquez (vud1) Sun, 09 Dec 2007 23:40:21 +0100 + +pytrainer (1.4.7-1) gutsy; urgency=low + + * New upstream release + * A lot of bugs closed + * New menu icon + * New App category + * Support for multitrack gpx files. + * Some changes in the graphs + * gpx lib improve + * New french translation + + -- Fiz Vazquez (vud1) Sun, 09 Dec 2007 23:13:38 +0100 + +pytrainer (1.4.6-3) gutsy; urgency=low + + * Gusty package + + -- Fiz Vazquez (vud1) Wed, 2 Dec 2007 21:52:11 +0200 +pytrainer (1.4.6-2) feisty; urgency=low + + * New Category + + -- Fiz Vazquez (vud1) Wed, 10 Oct 2007 21:52:11 +0200 +pytrainer (1.4.6-1) feisty; urgency=low + + * New icon + + -- Fiz Vazquez (vud1) Wed, 10 Oct 2007 21:50:11 +0200 + +pytrainer (1.4.5-1) feisty; urgency=low + + * New upstream release + * fedora bugs solved + + -- Fiz Vazquez (vud1) Fri, 5 Oct 2007 21:24:46 +0200 + +pytrainer (1.4.4-1) feisty; urgency=low + + * New upstream release + * Some bugs closed + * New translation: Czech + * Maps improved + * New Plugin: nikeplus ipod + + -- Fiz Vazquez (vud1) Sun, 30 Sep 2007 19:00:39 +0200 + +pytrainer (1.4.3-1) feisty; urgency=low + + * New upstream release + * Some bugs solved + * Beta waypoints editor + * Maps improved + + -- Fiz Vazquez (vud1) Tue, 25 Sep 2007 20:18:27 +0200 + +pytrainer (1.4.2-2) feisty; urgency=low + + * new package dependences + + -- Fiz Vazquez (vud1) Tue, 5 Sep 2007 21:31:20 +0200 + +pytrainer (1.4.2-1) feisty; urgency=low + + * New upstream release + * Alpha waypoints editor + * New translation (norwegian) + * Googlemaps improved + * Some bugs fixed + + -- Fiz Vazquez (vud1) Tue, 4 Sep 2007 23:31:20 +0200 + +pytrainer (1.4.1-1) feisty; urgency=low + + * Beta extensions support + * New worpdress extension + + -- Fiz Vazquez (vud1) Thu, 14 Jun 2007 19:40:24 +0200 + +pytrainer (1.3.4-1) feisty; urgency=low + + * New googleearth plugin + * Feisty package + * Closes several bugs + + -- Fiz Vazquez (vud1) Sun, 27 May 2007 10:12:12 +0200 + +pytrainer (1.3.3-2) unstable; urgency=low + + * New postinst and postrm files (modify the shared libraries) + + -- Fiz Vazquez (vud1) Sat, 3 Mar 2007 17:46:58 +0100 + +pytrainer (1.3.3-1) unstable; urgency=low + + * New upstream release + * google-maps support + + -- Fiz Vazquez (vud1) Sat, 3 Mar 2007 16:46:58 +0100 + +pytrainer (1.3.2-1) unstable; urgency=low + + * New record window area + * More ddbb field: Accumulated Unevennes + * Some bugs + * New upstream release + + -- Fiz Vazquez (vud1) Sat, 17 Feb 2007 19:32:19 +0100 + +pytrainer (1.3.1-2) unstable; urgency=low + + * ubuntu package + + -- Fiz Vazquez (vud1) Sun, 12 Feb 2007 23:37:40 +0100 + +pytrainer (1.3.1-1) unstable; urgency=low + + * New upstream release + + -- Fiz Vazquez (vud1) Sun, 4 Feb 2007 19:37:40 +0100 + +pytrainer (1.3.0-1) unstable; urgency=low + + * listview search form activate + + -- Fiz Vazquez (vud1) Sun, 4 Feb 2007 11:10:55 +0100 + +pytrainer (1.2.1-1) unstable; urgency=low + + * Bug November-December resolved + * New widget ins list_view: Select columns + + -- Fiz Vazquez (vud1) Sat, 3 Feb 2007 20:12:29 +0100 + +pytrainer (1.2.0-2) unstable; urgency=low + + * New gpsbabel dependence + + -- Fiz Vazquez (vud1) Wed, 15 Nov 2006 22:45:44 +0100 + +pytrainer (1.2.0-1) unstable; urgency=low + + * New GPS Devices Plugin system + * New garmin 301 plugin + + -- Fiz Vazquez (vud1) Wed, 15 Nov 2006 22:31:25 +0100 + +pytrainer (1.0.4-1) unstable; urgency=low + + * First day month-monthview bug fixed + + -- Fiz Vazquez (vud1) Fri, 10 Nov 2006 22:50:06 +0100 + +pytrainer (1.0.3-2) unstable; urgency=low + + * New pytrainer dependences + * Edgy package + + -- Fiz Vazquez (vud1) Thu, 9 Nov 2006 20:23:55 +0100 + +pytrainer (1.0.3-1) unstable; urgency=low + + * Changes in *.desktop file + * Changes in dependences + + -- Fiz Vazquez (vud1) Sun, 5 Nov 2006 18:33:12 +0100 + +pytrainer (1.0.2-1) unstable; urgency=low + + * update polish translation + + -- Fiz Vazquez (vud1) Thu, 26 Oct 2006 22:00:34 +0200 + +pytrainer (1.0.0-1) unstable; urgency=low + + * First stable version :D + + -- Fiz Vazquez (vud1) Sat, 21 Oct 2006 12:11:50 +0200 + +pytrainer (0.9.9-2) unstable; urgency=low + * new dependence: python-gnome2 + + -- Fiz Vazquez (vud1) Thu, 19 Oct 2006 20:39:56 +0200 + +pytrainer (0.9.9-1) unstable; urgency=low + + * New upstream release + * New title record value + * New record view: listview + + -- Fiz Vazquez (vud1) Thu, 19 Oct 2006 18:39:56 +0200 + +pytrainer (0.9.8.2-1) unstable; urgency=low + + * New upstream release + + -- Fiz Vazquez (vud1) Wed, 18 Oct 2006 14:33:27 +0200 + +pytrainer (0.9.8.1-1) unstable; urgency=low + + * Calendar bug fixed + * Migration sport/ddbb system + + -- Fiz Vazquez (vud1) Tue, 17 Oct 2006 18:42:21 +0200 + +pytrainer (0.9.8-1) unstable; urgency=low + + * New upstream release + * New German translation + * New export to csv option + * Some bug fixed + + -- Fiz Vazquez (vud1) Sun, 3 Sep 2006 20:18:43 +0200 + +pytrainer (0.9.7-1) unstable; urgency=low + + * New upstream release + * New French translations + * Some bux fixed + + -- Fiz Vazquez (vud1) Wed, 12 Jul 2006 21:21:23 +0200 + +pytrainer (0.9.6-1) unstable; urgency=low + + * New upstream release + * Several bugs fixed + * New dialog new record + * New functionality edit record + + -- Fiz Vazquez (vud1) Sun, 4 Jun 2006 21:45:14 +0200 + +pytrainer (0.9.5-1) unstable; urgency=low + + * New upstream release + * format variables bug fixed + * new user bug fixed + + -- Fiz Vazquez (vud1) Thu, 11 May 2006 18:07:07 +0200 + +pytrainer (0.9.4-2) unstable; urgency=low + + * Better dependences + + -- Fiz Vazquez (vud1) Tue, 9 May 2006 20:21:18 +0200 + +pytrainer (0.9.4-1) unstable; urgency=low + + * New upstream release + * Ubuntu dapper package + * gnome Integration + + -- Fiz Vazquez (vud1) Tue, 9 May 2006 20:04:46 +0200 + +pytrainer (0.9.3-4) unstable; urgency=low + + * Man pages updated + + -- Fiz Vazquez (vud1) Mon, 1 May 2006 10:06:50 +0200 + +pytrainer (0.9.3-3) unstable; urgency=low + + * Compatibility whith ubuntu packages + + -- Fiz Vazquez (vud1) Sun, 30 Apr 2006 23:55:55 +0200 + +pytrainer (0.9.3-2) unstable; urgency=low + + * Change in Dependences + + -- Fiz Vazquez (vud1) Sun, 30 Apr 2006 22:55:55 +0200 + +pytrainer (0.9.3-1) unstable; urgency=low + + * New upstream release + * Gettext support + * New Depend list + * New Dialog window + + -- Fiz Vazquez (vud1) Sun, 30 Apr 2006 21:55:55 +0200 + +pytrainer (0.9.2-1) unstable; urgency=low + + * New release + + -- Fiz Vazquez (vud1) Sat, 29 Apr 2006 21:31:27 +0200 + +pytrainer (0.9.1-1) unstable; urgency=low + + * Initial release + + -- Fiz Vazquez (vud1) Sat, 29 Apr 2006 21:16:30 +0200 + --- pytrainer-1.8.0.orig/debian/postrm +++ pytrainer-1.8.0/debian/postrm @@ -0,0 +1,13 @@ +#!/bin/sh -e +# +#DEBHELPER# +case "$1" in + configure) + if test -x /usr/bin/update-menus; then update-menus; fi + if [ -x /usr/bin/update-desktop-database ]; then + update-desktop-database + fi + ;; + *) +esac + --- pytrainer-1.8.0.orig/debian/compat +++ pytrainer-1.8.0/debian/compat @@ -0,0 +1 @@ +5 --- pytrainer-1.8.0.orig/debian/control +++ pytrainer-1.8.0/debian/control @@ -0,0 +1,20 @@ +Source: pytrainer +Section: utils +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Noèl Köthe +Build-Depends-Indep: python (>= 2.5.3-1~), python-support (>= 1.0.0) +Build-Depends: debhelper (>= 5.0.0), quilt +Standards-Version: 3.8.4 +Homepage: http://sourceforge.net/projects/pytrainer/ + +Package: pytrainer +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, python-libxml2, python-lxml, python-pysqlite2, python-glade2, python-gtk2, python-matplotlib, python-scipy, python-numpy, gpsbabel, iceweasel | firefox | abrowser, python-webkit, python-soappy, zenity +Description: The Free Sport Training Center + Pytrainer is a tool to log your sport activities. This software was + originally thought for cyclists, but it can also be used for other + resistance sports like running, swimming, skiing, and so on. Pytrainer + is also able to generate detailed graphs and statistics with data + retrieved from GPS-provided fitness devices. + --- pytrainer-1.8.0.orig/debian/pytrainer.1 +++ pytrainer-1.8.0/debian/pytrainer.1 @@ -0,0 +1,31 @@ +.\" +.TH PYTRAINER 1 "abril 26, 2006" +.\" +.SH NAME +pytrainer \- The free sport training center +.\" +.SH SYNOPSIS +.B pytrainer +.\" +.SH DESCRIPTION +Pytrainer is a tool to log your sport activities. This software is originally programed for cyclist but it can be used for another type of sportman resistance like runners, swimmers, skiers, mountain bikers, etc... Pytrainer works with your GPS fitness device and it is be able to generate detailed graphics and statistics with your gps data. + +.\" +.PP +.\" +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH AUTHOR +pytrainer was written by Fiz Vazquez . +.PP +This manual page was written by Fiz Vazquez , +for the Debian project (but may be used by others). --- pytrainer-1.8.0.orig/debian/mozpytrainer.sh +++ pytrainer-1.8.0/debian/mozpytrainer.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +LD_LIBRARY_PATH=/usr/lib/firefox MOZILLA_FIVE_HOME=/usr/lib/firefox python /usr/bin/pytr --- pytrainer-1.8.0.orig/debian/dirs +++ pytrainer-1.8.0/debian/dirs @@ -0,0 +1,4 @@ +usr/bin +usr/share/applications +usr/share/pixmaps +usr/share/mime/packages --- pytrainer-1.8.0.orig/debian/patches/01_port_to_webkit.patch +++ pytrainer-1.8.0/debian/patches/01_port_to_webkit.patch @@ -0,0 +1,143 @@ +--- a/pytrainer/extensions/googlemaps.py ++++ b/pytrainer/extensions/googlemaps.py +@@ -35,9 +35,7 @@ class Googlemaps: + def drawMap(self,activity): + '''Draw google map + create html file using Google API version3 +- render using embedded Mozilla +- +- info at http://www.pygtk.org/pygtkmozembed/class-gtkmozembed.html ++ render using embedded Webkit + ''' + logging.debug(">>") + points = [] +--- a/pytrainer/extensions/mapviewer.py ++++ b/pytrainer/extensions/mapviewer.py +@@ -16,7 +16,7 @@ + #along with this program; if not, write to the Free Software + #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +-import gtkmozembed ++import webkit + import logging + import os + +@@ -31,14 +31,13 @@ class MapViewer: + logging.debug("Display box (%s) is None" % ( str(box))) + return + self.box = box +- gtkmozembed.set_profile_path("/tmp", "foobar") # http://faq.pygtk.org/index.py?req=show&file=faq19.018.htp #TODO FIX??? +- self.moz = gtkmozembed.MozEmbed() ++ self.wkview = webkit.WebView() + self.pack_box() + logging.debug("<<") + + def pack_box(self): + logging.debug(">>") +- self.box.pack_start(self.moz, True, True) ++ self.box.pack_start(self.wkview, True, True) + self.box.show_all() + logging.debug("<<") + +@@ -46,7 +45,7 @@ class MapViewer: + logging.debug(">>") + if htmlfile is None: + htmlfile = self.createErrorHtml() +- self.moz.load_url("file://%s" % (htmlfile)) ++ self.wkview.load_uri("file://%s" % (htmlfile)) + #self.box.show_all() + logging.debug("<<") + +--- a/pytrainer/extensions/osm.py ++++ b/pytrainer/extensions/osm.py +@@ -2,7 +2,6 @@ + # TODO: store OpenLayers.js locally (1MB file) + # TODO: Add google satelite images layers ? + +-import gtkmozembed + import os + import re + import logging +@@ -24,9 +23,7 @@ class Osm: + def drawMap(self,activity): + '''Draw osm map + create html file using Open Layers and Open Street Map +- render using embedded Mozilla +- +- info at http://www.pygtk.org/pygtkmozembed/class-gtkmozembed.html ++ render using embedded Webkit + ''' + logging.debug(">>") + points = [] +--- a/pytrainer/extensions/waypointeditor.py ++++ b/pytrainer/extensions/waypointeditor.py +@@ -16,7 +16,7 @@ + #along with this program; if not, write to the Free Software + #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +-import gtkmozembed ++import webkit + import os + import re + +@@ -33,9 +33,9 @@ class WaypointEditor: + logging.debug(">>") + self.data_path = data_path + self.extension = Extension() +- self.moz = gtkmozembed.MozEmbed() +- self.moz.connect('title', self.handle_title_changed) +- vbox.pack_start(self.moz, True, True) ++ self.wkview = webkit.WebView() ++ self.wkview.connect('notify::title', self.handle_title_changed) ++ vbox.pack_start(self.wkview, True, True) + vbox.show_all() + self.htmlfile = "" + self.waypoint=waypoint +@@ -43,7 +43,9 @@ class WaypointEditor: + logging.debug("<<") + + def handle_title_changed(self, *args): +- title = self.moz.get_title() ++ title = self.wkview.get_title() ++ if title == None: ++ return + logging.debug("Received title: "+ title) + m = re.match("call:([a-zA-Z]*)[(](.*)[)]", title) + if m: +@@ -86,7 +88,7 @@ class WaypointEditor: + tmpdir = self.pytrainer_main.profile.tmpdir + htmlfile = tmpdir+"/waypointeditor.html" + logging.debug("HTML file: "+str(htmlfile)) +- self.moz.load_url("file://"+htmlfile) ++ self.wkview.load_uri("file://"+htmlfile) + logging.debug("<<") + + def createHtml(self,default_waypoint=None): +--- a/bin/pytrainer ++++ b/bin/pytrainer +@@ -95,25 +95,6 @@ gettext.install("pytrainer", gettext_pat + sys.path.insert(0, site_path) + from pytrainer.main import pyTrainer + +-#Determine xulrunner location +-xulrunners = glob.glob("/usr/li*/xulrunner*/xulrunner") +-if len(xulrunners) == 0: +- #Didnt find any - fall back to old approach +- xul_env = commands.getstatusoutput("find /usr/li* -name xulrunner -exec dirname {} \; 2>/dev/null")[1] +-elif len(xulrunners) == 1: +- #Found just one location - use that +- xul_env = os.path.dirname(xulrunners[0]) +-else: +- #Found more than one - need to choose one... +- max_version = None +- for item in xulrunners: +- xul_dir = os.path.dirname(item) +- max_version = _max(max_version, xul_dir) +- xul_env = max_version +- +-print "Using xulrunner dir: %s" % xul_env +-os.environ['MOZILLA_FIVE_HOME'] = xul_env +- + def main(): + pytrainer = pyTrainer(None, data_path) + --- pytrainer-1.8.0.orig/debian/patches/series +++ pytrainer-1.8.0/debian/patches/series @@ -0,0 +1 @@ +01_port_to_webkit.patch