--- gnupginterface-0.3.2.orig/debian/postinst +++ gnupginterface-0.3.2/debian/postinst @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + --- gnupginterface-0.3.2.orig/debian/changelog +++ gnupginterface-0.3.2/debian/changelog @@ -0,0 +1,148 @@ +gnupginterface (0.3.2-9.1ubuntu3) precise; urgency=low + + * Rebuild to drop python2.6 dependencies. + + -- Matthias Klose Sat, 31 Dec 2011 02:03:31 +0000 + +gnupginterface (0.3.2-9.1ubuntu2) oneiric; urgency=low + + * Switch to dh_python2. (LP: #788514) + + -- Barry Warsaw Wed, 20 Jul 2011 17:56:45 -0400 + +gnupginterface (0.3.2-9.1ubuntu1) natty; urgency=low + + * debian/patches/03_gpg2_compatibility.patch: + - use gpg2 if installed, thanks to "nobled" (LP: #497529) + forwarded to debian as http://bugs.debian.org/602677 + + -- Michael Vogt Mon, 22 Nov 2010 15:24:01 +0100 + +gnupginterface (0.3.2-9.1) unstable; urgency=low + + * Non-maintainer upload. + * Merge in Ubuntu patches to address exit status bug, thanks! + * Move setup.py patch from diff.gz to patch system. + + -- Thijs Kinkhorst Fri, 18 Dec 2009 13:34:48 +0100 + +gnupginterface (0.3.2-9ubuntu2) jaunty; urgency=low + + * Add 01__print_exit_status_correctly.patch (Closes: #509415, LP: #333057) + Thanks to Kenneth Loafman for the initial patch. + + -- Brian Murray Tue, 31 Mar 2009 14:48:28 -0700 + +gnupginterface (0.3.2-9ubuntu1) gutsy; urgency=low + + * Rebuild to remove the .pyc file (LP: #36733) + * debian/control: + + Update to current python-support usage. + + Modify Maintainer value to match DebianMaintainerField spec. + * setup.py: Rename the licence field to license as suggested by the warning. + + -- Michael Bienia Fri, 24 Aug 2007 01:47:09 +0200 + +gnupginterface (0.3.2-9) unstable; urgency=low + + [ Piotr Ozarowski ] + * Added watch file. + + [ Gustavo Franco ] + * debian/rules: Add simple-patchsys support without patches. + + * New Python Policy Changes: (Closes: #373438) + + debian/control: + - Bump up cdbs dependency to >= 0.4.41. + - Add python-support as Build-Depends-Indep. + - Add XS-Python-Version field. + - Depends on ${python:Depends} and not on python2.3. + - Add XB-Python-Version field. + + debian/rules: + - Add DEB_PYTHON_SYSTEM=pysupport. + - Remove python-support related entries since cdbs take care + of this now. + + debian/postinst && debian/prerm: + - Remove "hand made" python-support stuff, cdbs does this. + + -- Gustavo Franco Thu, 15 Jun 2006 17:05:55 -0300 + +gnupginterface (0.3.2-8) unstable; urgency=low + + * python-support added to provide this module for multiple + python versions + * debian/control: + - Add Gustavo Franco to Uploaders + - Update Standards-Version to 3.7.2 with no changes + - Update debhelper depends to 5 + - Move cdbs and debhelper to Build-Depends field + - Relax python dependencies due to multiple versions support + + -- Gustavo Franco Fri, 26 May 2006 18:59:07 -0300 + +gnupginterface (0.3.2-7) unstable; urgency=low + + * New maintainer (Closes: #305461) + * Create a doc-base entry for the package + * Fix setup.py to use 'license' instead of 'licence' + * debian/control: + - Changed section to 'python' + - Bumped Standards-Version to 3.6.1.1 + - Build dependencies + + Add build-dependency on cdbs + + Reduce versioned dependency on debhelper to 4.1.0 + + Remove python and python2.3-dev: only python-dev should suffice + * debian/rules: + - Fully converted to CDBS + - No longer exports DH_COMPAT + + -- Guilherme de S. Pastore Fri, 22 Apr 2005 09:10:13 -0300 + +gnupginterface (0.3.2-6) unstable; urgency=low + + * Orphaning this package. + + -- John Goerzen Tue, 19 Apr 2005 23:19:22 -0500 + +gnupginterface (0.3.2-5) unstable; urgency=low + + * Apply patch from Matthias Ulrichs to + fix error reporting if/when gnupg dies. (Closes: #226462) + + -- John Goerzen Mon, 28 Mar 2005 06:44:13 -0600 + +gnupginterface (0.3.2-4) unstable; urgency=low + + * Added build-dep on python. Closes: #259115. + + -- John Goerzen Tue, 13 Jul 2004 10:52:00 -0500 + +gnupginterface (0.3.2-3) unstable; urgency=low + + * ACK NMU. Closes: #213109, #205394, #180495. + * Call setup.py clean in debian/rules clean target and rm -rf build. + + -- John Goerzen Tue, 21 Oct 2003 22:23:50 -0500 + +gnupginterface (0.3.2-2.1) unstable; urgency=low + + * NMU. + * Build package in the binary-indep target. + * Removed the example scripts in the debian directory. + * Use postinst/prerm to handle byte compiled files (closes: #205394). + * Remove empty directories from binary package (closes: #180495). + + -- Matthias Klose Sun, 28 Sep 2003 14:30:30 +0200 + +gnupginterface (0.3.2-2) unstable; urgency=low + + * Updated to use Python 2.3. + + -- John Goerzen Tue, 12 Aug 2003 13:15:50 -0500 + +gnupginterface (0.3.2-1) unstable; urgency=low + + * Initial Release. Closes: #168995. + + -- John Goerzen Thu, 14 Nov 2002 11:22:58 -0600 + --- gnupginterface-0.3.2.orig/debian/doc-base +++ gnupginterface-0.3.2/debian/doc-base @@ -0,0 +1,11 @@ +Document: gnupginterface +Title: GnuPGInterface Documentation +Author: Frank J. Tobin +Abstract: GnuPGInterface is a Python module created to allow scripts + to easily interact with gpg. It has an extremely detailed documentation, + full of examples and explanations. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/python-gnupginterface/GnuPGInterface.html +Files: /usr/share/doc/python-gnupginterface/GnuPGInterface.html --- gnupginterface-0.3.2.orig/debian/rules +++ gnupginterface-0.3.2/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- + +DEB_PYTHON2_MODULE_PACKAGES = python-gnupginterface + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +build/python-gnupginterface:: + pydoc -w ./GnuPGInterface.py + +clean:: + -rm *.pyc *.html --- gnupginterface-0.3.2.orig/debian/control +++ gnupginterface-0.3.2/debian/control @@ -0,0 +1,20 @@ +Source: gnupginterface +Section: python +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Guilherme de S. Pastore +Uploaders: Debian Python Modules Team , Gustavo Franco +Build-Depends: cdbs (>= 0.4.90~), debhelper (>= 5.0.37.1), python (>= 2.6.6-3~) +Standards-Version: 3.7.2 + +Package: python-gnupginterface +Architecture: all +Depends: ${python:Depends}, gnupg (>= 1.2.1) | gnupg2, ${misc:Depends} +Provides: ${python:Provides} +Description: Python interface to GnuPG (GPG) + GnuPGInterface is a Python module to interface with GnuPG. + It concentrates on interacting with GnuPG via filehandles, + providing access to control GnuPG via versatile and extensible means. + . + This module is based on GnuPG::Interface, a Perl module by the same + author. --- gnupginterface-0.3.2.orig/debian/copyright +++ gnupginterface-0.3.2/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by John Goerzen on +Thu, 14 Nov 2002 11:22:58 -0600. + +It was downloaded from http://py-gnupg.sourceforge.net/ + +Upstream Author: Frank J. Tobin + +Copyright: + +This software is licensed under the GNU Lesser General Public License. + +Debian users may find that license at /usr/share/common-licenses/LGPL-2.1 --- gnupginterface-0.3.2.orig/debian/watch +++ gnupginterface-0.3.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://qa.debian.org/watch/sf.php/py-gnupg/ GnuPGInterface-(.*)\.tar\.gz --- gnupginterface-0.3.2.orig/debian/compat +++ gnupginterface-0.3.2/debian/compat @@ -0,0 +1 @@ +5 --- gnupginterface-0.3.2.orig/debian/docs +++ gnupginterface-0.3.2/debian/docs @@ -0,0 +1 @@ +GnuPGInterface.html --- gnupginterface-0.3.2.orig/debian/prerm +++ gnupginterface-0.3.2/debian/prerm @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + --- gnupginterface-0.3.2.orig/debian/patches/03_gpg2_compatibility.patch +++ gnupginterface-0.3.2/debian/patches/03_gpg2_compatibility.patch @@ -0,0 +1,39 @@ +Subject: use gpg2 if available. +From: nobled@dreamwidth.org +Bug-Ubuntu: https://bugs.launchpad.net/bugs/497529 +Bug-Debian: http://bugs.debian.org/602677 +--- gnupginterface-0.3.2~/GnuPGInterface.py 2002-01-11 20:22:04.000000000 +0000 ++++ gnupginterface-0.3.2/GnuPGInterface.py 2010-02-12 02:34:47.000000000 +0000 +@@ -269,7 +269,10 @@ + """ + + def __init__(self): +- self.call = 'gpg' ++ if (self._pathexists('gpg2')): ++ self.call = 'gpg2' ++ else: ++ self.call = 'gpg' + self.passphrase = None + self.options = Options() + +@@ -440,6 +443,20 @@ + + gnupg_commands + args + + os.execvp( command[0], command ) ++ ++ ++ def _pathexists(self, filename): ++ """Checks if 'filename' is present in the system PATH. ++ In other words, it checks if os.execvp(filename, ...) will work.""" ++ ++ pathenv = os.getenv("PATH") ++ path = pathenv.split(":") ++ for directory in path: ++ fullpath = os.path.join(directory, filename) ++ if (os.path.exists(fullpath)): ++ return True ++ ++ return False + + + class Pipe: --- gnupginterface-0.3.2.orig/debian/patches/02_setup_license.patch +++ gnupginterface-0.3.2/debian/patches/02_setup_license.patch @@ -0,0 +1,13 @@ +Description: correct syntax error in license. + +--- gnupginterface-0.3.2/setup.py.orig 2009-12-18 13:38:31.577852029 +0100 ++++ gnupginterface-0.3.2/setup.py 2009-12-18 13:27:38.729859000 +0100 +@@ -14,7 +14,7 @@ + long_description = long_description, + author = 'Frank J. Tobin', + author_email = 'ftobin@users.sourceforge.net', +- licence = 'LGPL', ++ license = 'LGPL', + platforms = 'POSIX', + keywords = 'GnuPG gpg', + url = 'http://py-gnupg.sourceforge.net/', --- gnupginterface-0.3.2.orig/debian/patches/01_print_exit_status_correctly.patch +++ gnupginterface-0.3.2/debian/patches/01_print_exit_status_correctly.patch @@ -0,0 +1,16 @@ +Description: correctly report error codes. +Ubuntu: https://bugs.launchpad.net/bugs/333057 +Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509415 + +diff -Nur -x '*.orig' -x '*~' gnupginterface-0.3.2/GnuPGInterface.py gnupginterface-0.3.2.new/GnuPGInterface.py +--- gnupginterface-0.3.2/GnuPGInterface.py 2002-01-11 12:22:04.000000000 -0800 ++++ gnupginterface-0.3.2.new/GnuPGInterface.py 2009-03-31 14:43:06.000000000 -0700 +@@ -636,7 +636,7 @@ + + e = os.waitpid(self.pid, 0)[1] + if e != 0: +- raise IOError, "GnuPG exited non-zero, with code %d" % (e << 8) ++ raise IOError, "GnuPG exited non-zero, with code %d" % (e >> 8) + + def _run_doctests(): + import doctest, GnuPGInterface