--- pygpgme-0.1+bzr20090820.orig/debian/python-gpgme.docs +++ pygpgme-0.1+bzr20090820/debian/python-gpgme.docs @@ -0,0 +1 @@ +README --- pygpgme-0.1+bzr20090820.orig/debian/copyright +++ pygpgme-0.1+bzr20090820/debian/copyright @@ -0,0 +1,17 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Name: pygpgme +Upstream-Maintainer: James Henstridge +Upstream-Source: https://launchpad.net/pygpgme + +Files: * +Copyright: Copyright 2006, James Henstridge +License: LGPL-2.1+ + On Debian systems the full text of the GNU Lesser General Public License + can be found in the `/usr/share/common-licenses/LGPL-2.1' file. + +Files: debian/* +Copyright: 2009, Miguel Di Ciurcio Filho + 2009, Jonathan Wiltshire +License: GPL-3 + On Debian systems the full text of the GNU General Public License + can be found in the `/usr/share/common-licenses/GPL-3' file. --- pygpgme-0.1+bzr20090820.orig/debian/compat +++ pygpgme-0.1+bzr20090820/debian/compat @@ -0,0 +1 @@ +7 --- pygpgme-0.1+bzr20090820.orig/debian/watch +++ pygpgme-0.1+bzr20090820/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://launchpad.net/pygpgme/+download http://launchpad.net/pygpgme/.*/pygpgme-(.+).tar.gz --- pygpgme-0.1+bzr20090820.orig/debian/changelog +++ pygpgme-0.1+bzr20090820/debian/changelog @@ -0,0 +1,14 @@ +pygpgme (0.1+bzr20090820-1) unstable; urgency=low + + * Sync to Upstream bzr 2009-08-20 + * Fix "Fails to create a Context unless gpgme_check_version is called + manually" using custom patch until upstream doesn't fix it (Closes: #549921) + + -- Miguel Di Ciurcio Filho Wed, 14 Oct 2009 20:05:15 +0000 + +pygpgme (0.1+bzr20090429-1) unstable; urgency=low + + * Initial release. (Closes: #511170: ITP: pygpgme -- A Python wrapper + for the GPGME library) + + -- Miguel Di Ciurcio Filho Thu, 16 Jul 2009 19:30:00 -0300 --- pygpgme-0.1+bzr20090820.orig/debian/rules +++ pygpgme-0.1+bzr20090820/debian/rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this line to make output verbose +#export DH_VERBOSE=1 +include /usr/share/quilt/quilt.make + +PYVERS=$(shell pyversions -vr) +PKGDIR=$(CURDIR)/debian/python-gpgme + +clean: unpatch + # Enforce removal of *.pyc files. Apparently dh_clean does + # not perform find on provided filename patterns. + rm -rf build/ + find . -name *.pyc -exec rm -f {} \; + find . -name *.so -exec rm -f {} \; + dh_clean install-stamp build-stamp \ + $(PYVERS:%=install-python%) $(PYVERS:%=build-python%) \ + $(PYVERS:%=install-debug-python%) $(PYVERS:%=build-debug-python%) + +build: build-stamp + +build-stamp: $(QUILT_STAMPFN) $(PYVERS:%=build-python%) $(PYVERS:%=build-debug-python%) + touch $@ + +build-python%: + python$* setup.py build + touch $@ + +build-debug-python%: + python$*-dbg setup.py build + touch $@ + +install: install-stamp +install-stamp: $(PYVERS:%=install-python%) $(PYVERS:%=install-debug-python%) + dh_install + touch $@ + +install-python%: build + python$* setup.py install \ + --skip-build --root $(PKGDIR) + touch $@ + +install-debug-python%: build + python$*-dbg setup.py install \ + --skip-build --root $(PKGDIR)-dbg/ + find $(PKGDIR)-dbg/usr/ ! -type d ! -name '*_d\.so' -delete + find $(PKGDIR)-dbg/usr/ -depth -empty -delete + touch $@ + +#override_dh_auto_install: +# python setup.py install --no-compile --root=$(CURDIR)/debian/python-gpgme + + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs -a + dh_installchangelogs + dh_pysupport -a + dh_makeshlibs -a + dh_strip -ppython-gpgme --dbg-package=python-gpgme-dbg + rm -rf $(PKGDIR)-dbg/usr/share/doc/python-gpgme-dbg + ln -s python-gpgme $(PKGDIR)-dbg/usr/share/doc/python-gpgme-dbg + dh_compress -a -X.py + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a -- -Z bzip2 + +binary-indep: + dh_testdir -i + dh_testroot -i + dh_installdirs -i + dh_installdocs + dh_installchangelogs + dh_installexamples + dh_compress -i -X.py + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i -- -Z bzip2 + +binary: binary-indep binary-arch + +get-orig-source: + REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*bzr([0-9]{4})([0-9]{2})([0-9]{2}).*,\1-\2-\3,p'); \ + VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p'); \ + bzr export --root=pygpgme-$$VER -r date:$$REV ../pygpgme_$$VER.orig.tar.gz lp:pygpgme + +.PHONY: build clean binary-indep binary-arch binary install --- pygpgme-0.1+bzr20090820.orig/debian/README.source +++ pygpgme-0.1+bzr20090820/debian/README.source @@ -0,0 +1,5 @@ +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. + +See /usr/share/doc/quilt/README.source for a detailed explanation. --- pygpgme-0.1+bzr20090820.orig/debian/control +++ pygpgme-0.1+bzr20090820/debian/control @@ -0,0 +1,35 @@ +Source: pygpgme +Section: python +Priority: optional +Maintainer: Miguel Di Ciurcio Filho +Build-Depends: debhelper (>= 7.2.8), python-support (>= 0.5.3), python-all-dev, libgpgme11-dev, python-all-dbg, quilt +Standards-Version: 3.8.3.0 +Homepage: https://launchpad.net/products/pygpgme +XS-Python-Version: >= 2.4 +Uploaders: Jonathan Wiltshire + +Package: python-gpgme +Architecture: any +Provides: ${python:Provides} +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} +XB-Python-Version: ${python:Versions} +Description: python wrapper for the GPGME library + PyGPGME is a Python module that lets you sign, verify, encrypt + and decrypt messages using the OpenPGP format. + It is built on top of the GNU Privacy Guard and the + GPGME library. + +Package: python-gpgme-dbg +Priority: extra +Architecture: any +Section: debug +Provides: ${python:Provides} +Depends: python-dbg, python-gpgme (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +XB-Python-Version: ${python:Versions} +Description: python wrapper for the GPGME library (debug extension) + PyGPGME is a Python module that lets you sign, verify, encrypt + and decrypt messages using the OpenPGP format. + It is built on top of the GNU Privacy Guard and the + GPGME library. + . + This package contains the extension built for the Python debug interpreter. --- pygpgme-0.1+bzr20090820.orig/debian/python-gpgme.examples +++ pygpgme-0.1+bzr20090820/debian/python-gpgme.examples @@ -0,0 +1 @@ +examples/encrypt.py --- pygpgme-0.1+bzr20090820.orig/debian/patches/series +++ pygpgme-0.1+bzr20090820/debian/patches/series @@ -0,0 +1 @@ +fix_context_initialization --- pygpgme-0.1+bzr20090820.orig/debian/patches/fix_context_initialization +++ pygpgme-0.1+bzr20090820/debian/patches/fix_context_initialization @@ -0,0 +1,13 @@ +Index: pygpgme-0.1+bzr20090820/src/pygpgme-context.c +=================================================================== +--- pygpgme-0.1+bzr20090820.orig/src/pygpgme-context.c 2009-10-14 19:57:00.000000000 +0000 ++++ pygpgme-0.1+bzr20090820/src/pygpgme-context.c 2009-10-14 19:57:21.000000000 +0000 +@@ -92,6 +92,8 @@ + return -1; + } + ++ gpgme_check_version(NULL); ++ + if (pygpgme_check_error(gpgme_new(&self->ctx))) + return -1; +