--- pypar2-1.4.orig/debian/changelog +++ pypar2-1.4/debian/changelog @@ -0,0 +1,118 @@ +pypar2 (1.4-6) unstable; urgency=low + + * Team upload. + * typeorder.patch: Use list of tuples instead of depending on the iteration + order of a dict. (Closes: #617966, LP: #719708) + + -- Stefano Rivera Wed, 23 Mar 2011 21:55:07 +0200 + +pypar2 (1.4-5) unstable; urgency=low + + [ Sandro Tosi ] + * Switch Vcs-Browser field to viewsvn + + [ Ryan Kavanagh ] + * Added a README.source + + [ Piotr Ożarowski ] + * Convert from python-central to python-support + * Standards-Version bumped to 3.8.3 (no changes needed) + + -- Piotr Ożarowski Tue, 17 Nov 2009 20:36:26 +0100 + +pypar2 (1.4-4) unstable; urgency=low + + * Add no_pyxml.patch - PrettyPrint() is available in PyXml only, + LP: #203899 + + quilt added to Depends + + -- Piotr Ożarowski Mon, 24 Mar 2008 23:31:44 +0100 + +pypar2 (1.4-3) unstable; urgency=low + + * Drop python-xml dependency as it is going to be removed from Debian + (it is part of the standard Python library since 2.4, closes: #468608) + * Homepage field added + * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now) + * Update Standards-Version to 3.7.3. + + -- Piotr Ożarowski Fri, 29 Feb 2008 19:43:48 +0100 + +pypar2 (1.4-2) unstable; urgency=low + + * Add Python Applications Team to the Uploaders + * debian/menu: section changed to "Applications/File Management" + * Add XS-Vcs-Svn and XS-Vcs-Browser fields + + -- Piotr Ożarowski Sat, 25 Aug 2007 20:20:02 +0200 + +pypar2 (1.4-1) unstable; urgency=low + + * New upstream release + * Changed my address to piotr@debian.org + + -- Piotr Ożarowski Wed, 18 Apr 2007 22:49:14 +0200 + +pypar2 (1.3-1) unstable; urgency=low + + * New upstream release + + -- Piotr Ozarowski Wed, 28 Feb 2007 01:21:43 +0100 + +pypar2 (1.2-1) unstable; urgency=low + + * New upstream release + + -- Piotr Ozarowski Thu, 8 Feb 2007 21:14:10 +0100 + +pypar2 (1.1-1) unstable; urgency=low + + * New upstream release + * Pixmaps dir patch removed (applied upstream) + * debian/watch file updated + + -- Piotr Ozarowski Tue, 30 Jan 2007 19:14:22 +0100 + +pypar2 (1.0-1) unstable; urgency=low + + * New upstream release + * Versioned dependency on par2 added + * Patch that creates pixmaps dir during install + + -- Piotr Ozarowski Sun, 21 Jan 2007 00:12:59 +0100 + +pypar2 (0.10-1) unstable; urgency=low + + * New upstream release + * Bumped debhelper and python-central required versions due to removal of + deprecated dh_python call in debian/rules, pycompat file removed + * Updated copyright file (wrong program name) + + -- Piotr Ozarowski Tue, 7 Nov 2006 19:03:28 +0100 + +pypar2 (0.09-1) unstable; urgency=low + + * New upstream release + + -- Piotr Ozarowski Sun, 13 Aug 2006 15:12:53 +0200 + +pypar2 (0.08-1) unstable; urgency=low + + * New upstream release + + -- Piotr Ozarowski Fri, 28 Jul 2006 10:43:56 +0200 + +pypar2 (0.07-1) unstable; urgency=low + + * New upstream release + * Added python-xml to dependencies (closes: #379438) + * Changed priority to extra (because of par2) + + -- Piotr Ozarowski Mon, 24 Jul 2006 17:58:36 +0200 + +pypar2 (0.06-1) unstable; urgency=low + + * Initial release (closes: #378859) + + -- Piotr Ozarowski Wed, 19 Jul 2006 17:39:29 +0200 + --- pypar2-1.4.orig/debian/control +++ pypar2-1.4/debian/control @@ -0,0 +1,26 @@ +Source: pypar2 +Section: gnome +Priority: extra +Maintainer: Piotr Ożarowski +Uploaders: Python Applications Team +Build-Depends: debhelper (>= 5), quilt (>= 0.40) +Build-Depends-Indep: python-support, python (>= 2.3.5-11) +Standards-Version: 3.8.3 +Homepage: http://pypar2.silent-blade.org/ +XS-Python-Version: >=2.4 +Vcs-Svn: svn://svn.debian.org/python-apps/packages/pypar2/trunk/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/pypar2/trunk/ + +Package: pypar2 +Architecture: all +Depends: par2 (>= 0.4-6), ${python:Depends}, python-gtk2 (>= 2.8.6-1), python-glade2 (>= 2.8.6-1), python-vte (>= 0.12.2-1) +XB-Python-Version: ${python:Versions} +Description: graphical frontend for the par2 utility + Par2 files create redundant data that can be used later in case parts + of the original data is lost or corrupted. + . + PyPar2 is a graphical frontend for the par2 command line utility, it is + designed to be very easy to use. For this reason: + * Advanced settings are present, but hidden by default. + * There is no preferences dialog, all selected options are automatically + saved and restored. --- pypar2-1.4.orig/debian/menu +++ pypar2-1.4/debian/menu @@ -0,0 +1,7 @@ +?package(pypar2):needs="X11" \ + section="Applications/File Management" \ + title="PyPar2" \ + hints="Gnome" \ + command="/usr/bin/pypar2" \ + longtitle="PyPar2 - par2 frontend" + --- pypar2-1.4.orig/debian/copyright +++ pypar2-1.4/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Piotr Ożarowski on +Wed, 19 Jul 2006 11:09:41 +0200. + +It was downloaded from +http://pypar2.silent-blade.org/index.php?n=Main.DownloadPage + +Upstream Author: François Ingelres + +Copyright: 2006-2007 François Ingelres + +License: + + 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 Library 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 + +The Debian packaging is © 2006-2009, Piotr Ożarowski and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- pypar2-1.4.orig/debian/README.source +++ pypar2-1.4/debian/README.source @@ -0,0 +1,8 @@ +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. Please see: + + /usr/share/doc/quilt/README.source + +for more information on how to apply the patches, modify patches, or +remove a patch. --- pypar2-1.4.orig/debian/rules +++ pypar2-1.4/debian/rules @@ -0,0 +1,46 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +build-stamp: + dh_testdir + touch $@ + +build: patch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + $(MAKE) clean + dh_clean build-stamp + +install: build + dh_testdir + dh_testroot + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/pypar2 prefix=/usr install + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs -i doc/whatsnew.txt + dh_installdocs -i + dh_installmenu -i + dh_link usr/share/pypar2/src/main.py /usr/bin/pypar2 + dh_compress -i + dh_fixperms -i + chmod +x debian/pypar2/usr/share/pypar2/src/main.py + dh_pysupport -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build install + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install --- pypar2-1.4.orig/debian/watch +++ pypar2-1.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pypar2.silent-blade.org/index.php?n=Main.DownloadPage http://pypar2.silent-blade.org/uploads/Main/pypar2-(.*).tar.gz debian uupdate --- pypar2-1.4.orig/debian/compat +++ pypar2-1.4/debian/compat @@ -0,0 +1 @@ +5 --- pypar2-1.4.orig/debian/source/format +++ pypar2-1.4/debian/source/format @@ -0,0 +1 @@ +1.0 --- pypar2-1.4.orig/debian/patches/series +++ pypar2-1.4/debian/patches/series @@ -0,0 +1,2 @@ +no_pyxml.patch +typeorder.patch --- pypar2-1.4.orig/debian/patches/no_pyxml.patch +++ pypar2-1.4/debian/patches/no_pyxml.patch @@ -0,0 +1,22 @@ +Index: pypar2-1.4/src/prefsManager.py +=================================================================== +--- pypar2-1.4.orig/src/prefsManager.py ++++ pypar2-1.4/src/prefsManager.py +@@ -16,7 +16,7 @@ + # along with this program; if not, write to the Free Software + # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +-import consts, os, typeToolBox, xml.dom.ext, xml.dom.minidom ++import consts, os, typeToolBox, xml.dom.minidom + + from gettext import gettext as _ + +@@ -69,7 +69,7 @@ def save() : + root.appendChild(node) + # Write the document to the disk + file_object = open(consts.filePrefs, 'w') +- xml.dom.ext.PrettyPrint(doc, file_object) ++ file_object.write(doc.toprettyxml()) + file_object.close() + + --- pypar2-1.4.orig/debian/patches/typeorder.patch +++ pypar2-1.4/debian/patches/typeorder.patch @@ -0,0 +1,27 @@ +Description: Use a list of tuples instead of depending on dict iteration order +Author: Stefano Rivera +Bug-Debian: http://bugs.debian.org/617966 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/719708 +Forwarded: yes +Last-Update: 2011-03-23 + +--- a/src/typeToolBox.py ++++ b/src/typeToolBox.py +@@ -20,14 +20,14 @@ + + # Supported types + # 'bool' type must be placed *before* 'int' type, otherwise booleans are detected as integers +-types = {bool : 'bool', int : 'int', str : 'str'} ++types = [(bool, 'bool'), (int, 'int'), (str, 'str')] + + + # Return a String with the type of value + def getType(value) : +- for type in types.keys() : ++ for type, name in types: + if isinstance(value, type) : +- return types[type] ++ return name + raise TypeError, str(value) + _(' has an unsupported type') + +