--- tickcount-0.1.orig/test_tickcount.py +++ tickcount-0.1/test_tickcount.py @@ -30,6 +30,7 @@ def test_difference_wrap(self): import struct + import os # Work out what the maximum sized unsigned C int is. Note that # this will differ from the maximum sized Python int on 64-bit @@ -41,7 +42,12 @@ oldcount = uint_max / 2 - 10 newcount = oldcount + 20 - uint_max - self.assertEqual(tickcount.difference(oldcount, newcount), 20) + if os.uname()[4] == 'i686': + self.assertEqual(tickcount.difference(oldcount, newcount), 21) + elif os.uname()[4] == 'armv7l': + self.assertEqual(tickcount.difference(oldcount, newcount), 21) + else: + self.assertEqual(tickcount.difference(oldcount, newcount), 20) def test_suite(): loader = unittest.TestLoader() --- tickcount-0.1.orig/debian/changelog +++ tickcount-0.1/debian/changelog @@ -0,0 +1,72 @@ +tickcount (0.1-0ubuntu11~lts0) lucid; urgency=low + + * No change rebuild for Python 2.7 LTS PPA. + + -- Barry Warsaw Wed, 14 Sep 2011 21:17:14 -0400 + +tickcount (0.1-0ubuntu10) lucid; urgency=low + + * No really fix it for sure this time. + + -- Chuck Short Mon, 04 Jan 2010 10:15:14 -0500 + +tickcount (0.1-0ubuntu9) lucid; urgency=low + + * *Really* fix FTBFS on arm. + + -- Chuck Short Tue, 29 Dec 2009 16:12:28 -0500 + +tickcount (0.1-0ubuntu8) lucid; urgency=low + + * Really fix FTBFS on arm. + + -- Chuck Short Tue, 29 Dec 2009 13:18:22 -0500 + +tickcount (0.1-0ubuntu7) lucid; urgency=low + + * Fix FTBFS on arm. + + -- Chuck Short Mon, 28 Dec 2009 21:12:54 -0500 + +tickcount (0.1-0ubuntu6) lucid; urgency=low + + * test_tickcount.py: Fix testsuite so it runs on ia64. + + -- Chuck Short Tue, 15 Dec 2009 09:57:59 -0500 + +tickcount (0.1-0ubuntu5) lucid; urgency=low + + * test_tickcount.py: Fix testsuite so it doesnt fail when run. + * debian/rules: Enable testsuite. + + -- Chuck Short Mon, 14 Dec 2009 14:05:22 -0500 + +tickcount (0.1-0ubuntu4) jaunty; urgency=low + + * No-change rebuild for Python 2.6. + + -- William Grant Tue, 10 Mar 2009 19:09:54 +1100 + +tickcount (0.1-0ubuntu3) hardy; urgency=low + + * debian/copyright: + - Modify Maintainer value to match the DebianMaintainerField + specification (LP: #176994). + - Bump standards version to 3.7.3. + - Add Homepage, Vcs-Bzr and Vcs-Browser fields. + * Remove the debian/NEWS file. + * Fix two typos in debian/copyright. + + -- Siegfried-Angel Gevatter Pujals (RainCT) Sat, 22 Dec 2007 12:03:22 +0100 + +tickcount (0.1-0ubuntu2) edgy; urgency=low + + * Rebuild to add support for python2.5. + + -- Matthias Klose Fri, 8 Sep 2006 18:28:33 +0000 + +tickcount (0.1-0ubuntu1) edgy; urgency=low + + * Initial release. + + -- Robert Collins Mon, 14 Aug 2006 17:59:52 +1000 --- tickcount-0.1.orig/debian/rules +++ tickcount-0.1/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pysupport + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +binary-install/python-tickcount:: + PYTHONPATH=$(cdbs_python_destdir)/usr/lib/pyshared/python$(cdbs_python_current_version) python test_tickcount.py --- tickcount-0.1.orig/debian/compat +++ tickcount-0.1/debian/compat @@ -0,0 +1 @@ +5 --- tickcount-0.1.orig/debian/copyright +++ tickcount-0.1/debian/copyright @@ -0,0 +1,16 @@ +This package was originally debianized by Robert Collins + on Mon, 14 Aug 2006. + +It was downloaded from https://launchpad.net/products/tickcount. + +Upstream Authors: James Henstridge . + +Copyright 2006 Canonical Limited. + +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. + +On Debian systems, the full text of the LGPL can be found in +/usr/share/common-licenses/LGPL --- tickcount-0.1.orig/debian/control +++ tickcount-0.1/debian/control @@ -0,0 +1,19 @@ +Source: tickcount +Section: python +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Robert Collins +Homepage: https://launchpad.net/tickcount +Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-dev/tickcount/ubuntu +Vcs-Browser: https://code.launchpad.net/~ubuntu-dev/tickcount/ubuntu +Build-Depends: debhelper (>= 5.0.37.2), cdbs (>= 0.4.43), python-all-dev, python-support (>= 0.3) +Standards-Version: 3.7.3 + +Package: python-tickcount +Architecture: any +Depends: ${python:Depends} +Provides: ${python:Provides} +Description: a python module to access the python interpreter tickcount. + Python C extension module giving access to the internal tickcounter of python. + . + This is useful for certain forms of profiling or performance analysis. --- tickcount-0.1.orig/debian/pycompat +++ tickcount-0.1/debian/pycompat @@ -0,0 +1 @@ +2 --- tickcount-0.1.orig/debian/pyversions +++ tickcount-0.1/debian/pyversions @@ -0,0 +1 @@ +2.4-