--- libtpproto-py-0.2.5.orig/debian/docs +++ libtpproto-py-0.2.5/debian/docs @@ -0,0 +1 @@ +README --- libtpproto-py-0.2.5.orig/debian/copyright +++ libtpproto-py-0.2.5/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Barry deFreese on +Mon, 05 Nov 2007 21:33:27 -0500. + +It was downloaded from http://downloads.sourceforge.net/thousandparsec/libtpclient-py-0.2.2.tar.bz2?modtime=1176994157&big_mirror=0 + +Upstream Author: + + Tim Ansell + +Copyright: + + Copyright © 2001, 2002, 2003, 2004, 2005, 2006, 2007 Tim Ansell + +License: + + This program 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 software 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 + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + +The Debian packaging and patches are (C) 2007, Debian Games Team +and are licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- libtpproto-py-0.2.5.orig/debian/README.source +++ libtpproto-py-0.2.5/debian/README.source @@ -0,0 +1,57 @@ +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. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- libtpproto-py-0.2.5.orig/debian/changelog +++ libtpproto-py-0.2.5/debian/changelog @@ -0,0 +1,35 @@ +libtpproto-py (0.2.5-3) unstable; urgency=low + + [ Barry deFreese ] + * 02_empty_file.diff. (Closes: #549087). + + Comment __init__.py so it gets installed. + * Add README.source for quilt patch system. + * Bump Standards Version to 3.8.3. + + -- Barry deFreese Fri, 09 Oct 2009 16:00:32 -0400 + +libtpproto-py (0.2.5-2) unstable; urgency=low + + [ Barry deFreese ] + * Refresh 01_setuptools.diff to apply cleanly. + * Bump Standards Version to 3.8.2. (No changes needed). + + -- Barry deFreese Sat, 25 Jul 2009 11:30:49 -0400 + +libtpproto-py (0.2.5-1) unstable; urgency=low + + [ Barry deFreese ] + * New upstream release. + * Bump Standards Version to 3.8.1. (No changes needed). + + -- Barry deFreese Wed, 08 Apr 2009 14:54:16 -0400 + +libtpproto-py (0.2.4-1) unstable; urgency=low + + [ Barry deFreese ] + * Initial release. (Closes: #463271). + * Add quilt patch system. + * 01_setuptools.diff - Use distutils.core for setup instead of setuptools. + * Add VCS fields in control. + + -- Barry deFreese Tue, 04 Nov 2008 12:31:48 -0500 --- libtpproto-py-0.2.5.orig/debian/compat +++ libtpproto-py-0.2.5/debian/compat @@ -0,0 +1 @@ +5 --- libtpproto-py-0.2.5.orig/debian/pycompat +++ libtpproto-py-0.2.5/debian/pycompat @@ -0,0 +1 @@ +2 --- libtpproto-py-0.2.5.orig/debian/watch +++ libtpproto-py-0.2.5/debian/watch @@ -0,0 +1,5 @@ +version=3 + +http://sf.net/thousandparsec/libtpproto-py-([\d.]+)\.tar\.bz2 + + --- libtpproto-py-0.2.5.orig/debian/rules +++ libtpproto-py-0.2.5/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +PYVERS=$(shell pyversions -r) + +build: build-stamp +build-stamp: patch + dh_testdir + + set -e; \ + for PYTHON in $(PYVERS); do \ + $$PYTHON setup.py build; \ + done + + touch $@ + +_clean: $(QUILT_STAMPFN) + dh_testdir + dh_testroot + + rm -rf build-stamp + + set -e; \ + for PYTHON in $(PYVERS); do \ + $$PYTHON setup.py clean; \ + done + + find ./ -name '*.py[co]' -delete + +clean: _clean unpatch + dh_clean + rm -rf build + +install: build + dh_testdir + dh_testroot + dh_clean -k + + set -e; \ + for PYTHON in $(PYVERS); do \ + $$PYTHON ./setup.py install --no-compile --root=debian/python-tp-netlib ; \ + done + + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_compress + dh_fixperms + dh_pysupport + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libtpproto-py-0.2.5.orig/debian/control +++ libtpproto-py-0.2.5/debian/control @@ -0,0 +1,23 @@ +Source: libtpproto-py +Section: python +Priority: extra +Maintainer: Debian Games Team +Uploaders: Barry deFreese +Build-Depends: debhelper (>= 5), quilt (>= 0.40) +Build-Depends-Indep: python-support (>= 0.6.4), python-all-dev +XS-Python-Version: >=2.4 +Standards-Version: 3.8.3 +Homepage: http://www.thousandparsec.net/tp/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/libtpproto-py/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/libtpproto-py/?op=log + +Package: python-tp-netlib +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Recommends: python-openssl, python-twisted-core +XB-Python-Version: ${python:Versions} +Description: Thousand Parsec Python protocol library + Thousand Parsec is a framework for turn based space empire building games. + . + This package contains a library of Python code for both servers and clients + to support the Thousand Parsec protocol. --- libtpproto-py-0.2.5.orig/debian/patches/02_empty_file.diff +++ libtpproto-py-0.2.5/debian/patches/02_empty_file.diff @@ -0,0 +1,6 @@ +Index: libtpproto-py-0.2.5/tp/netlib/objects/OrderExtra/__init__.py +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libtpproto-py-0.2.5/tp/netlib/objects/OrderExtra/__init__.py 2009-10-09 15:54:30.000000000 -0400 +@@ -0,0 +1 @@ ++# Some comment just so this file gets installed. --- libtpproto-py-0.2.5.orig/debian/patches/series +++ libtpproto-py-0.2.5/debian/patches/series @@ -0,0 +1,3 @@ +01_setuptools.diff + +02_empty_file.diff --- libtpproto-py-0.2.5.orig/debian/patches/01_setuptools.diff +++ libtpproto-py-0.2.5/debian/patches/01_setuptools.diff @@ -0,0 +1,13 @@ +Index: libtpproto-py-0.2.5/setup.py +=================================================================== +--- libtpproto-py-0.2.5.orig/setup.py 2008-01-27 19:33:07.000000000 -0500 ++++ libtpproto-py-0.2.5/setup.py 2009-07-25 11:29:22.000000000 -0400 +@@ -3,7 +3,7 @@ + from tp.netlib import __version__ as version + version = "%s.%s.%s" % version[0:3] + +-from setuptools import setup ++from distutils.core import setup + + setup( + name ="libtpproto-py", --- libtpproto-py-0.2.5.orig/debian/patches/02_no_pkg_resources.diff +++ libtpproto-py-0.2.5/debian/patches/02_no_pkg_resources.diff @@ -0,0 +1,13 @@ +diff -urN libtpproto-py-0.2.2.orig/setup.py libtpproto-py-0.2.2/setup.py +--- libtpproto-py-0.2.2.orig/setup.py 2007-11-06 16:07:43.000000000 -0500 ++++ libtpproto-py-0.2.2/setup.py 2007-11-06 16:08:26.000000000 -0500 +@@ -1,7 +1,7 @@ + #!/usr/bin/env python + +-import pkg_resources +-pkg_resources.require('libtpproto-py') ++#import pkg_resources ++#pkg_resources.require('libtpproto-py') + + from tp.netlib import version + version = "%s.%s.%s" % version