--- pyspi-0.6.1.orig/cspi.pxd +++ pyspi-0.6.1/cspi.pxd @@ -14,9 +14,7 @@ ctypedef struct AccessibleTextRange ctypedef struct AccessibleKeySet - ctypedef enum SPIBoolean: - FALSE = 0, - TRUE + ctypedef unsigned int SPIBoolean ctypedef struct AccessibleEvent: char *type --- pyspi-0.6.1.orig/pyspi.pyx +++ pyspi-0.6.1/pyspi.pyx @@ -25,9 +25,15 @@ cdef class Event (EventBase) cdef class DeviceEvent -ctypedef enum bool: +ctypedef unsigned int bool + +import __builtin__ +try: + False = __builtin__.False + True = __builtin__.True +except AttributeError: False = 0 - True + True = 1 # SPIExceptionCode values: (SPI_EXCEPTION_UNSPECIFIED, SPI_EXCEPTION_DISCONNECT, SPI_EXCEPTION_NO_IMPL, SPI_EXCEPTION_IO, SPI_EXCEPTION_BAD_DATA)=range(5) @@ -991,11 +997,11 @@ Wraps cspi.AccessibleHyperlink_getObject """ self.__checkSelf () - cdef Accessible object - object = Accessible () - object.__setItem (cspi.AccessibleHyperlink_getObject (self.__item, i)) - object.__checkSelf () - return object + cdef Accessible obj + obj = Accessible () + obj.__setItem (cspi.AccessibleHyperlink_getObject (self.__item, i)) + obj.__checkSelf () + return obj def getURI (self, i): """ @@ -1551,7 +1557,7 @@ cdef cspi.AccessibleDeviceListener *__item cdef public object modMasks - def __init__ (self, callback, eventMask = cspi.SPI_KEY_PRESSED | cspi.SPI_KEY_RELEASED): + def __init__ (self, callback, eventMask = cspi.SPI_KEY_PRESSED | cspi.SPI_KEY_RELEASED): """ Registers a python callback function to be called. --- pyspi-0.6.1.orig/debian/python-at-spi.install +++ pyspi-0.6.1/debian/python-at-spi.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/python* --- pyspi-0.6.1.orig/debian/compat +++ pyspi-0.6.1/debian/compat @@ -0,0 +1 @@ +5 --- pyspi-0.6.1.orig/debian/rules +++ pyspi-0.6.1/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pysupport +PYVERS=$(shell pyversions -vr) + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +build/python-at-spi-dbg:: + set -e; \ + for i in $(cdbs_python_build_versions); do \ + python$$i-dbg ./setup.py build; \ + done + +install/python-at-spi-dbg:: + for i in $(cdbs_python_build_versions); do \ + python$$i-dbg ./setup.py install --root $(CURDIR)/debian/python-at-spi-dbg; \ + done + find debian/python-at-spi-dbg \ + ! -type d ! -name '*.so' | xargs rm -f + find debian/python-at-spi-dbg -depth -empty -exec rmdir {} \; + +binary-predeb/python-at-spi-dbg:: + rm -rf debian/python-at-spi-dbg/usr/share/doc/python-at-spi-dbg + ln -s python-at-spi debian/python-at-spi-dbg/usr/share/doc/python-at-spi-dbg + +clean:: + rm -rf build + rm -f atspi.c + --- pyspi-0.6.1.orig/debian/copyright +++ pyspi-0.6.1/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Zack Cerza on +Sun, 10 Jul 2006 22:40:36 -0400 + +It was downloaded from http://gnome.org/projects/dogtail + +Upstream Authors: Zack Cerza, Chris Lee and Lawrence Lim + +This software is copyright (c) Red Hat, Inc. + +License: + + This package 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 of the License, or (at your option) any later version. + + This package 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 package; 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'. --- pyspi-0.6.1.orig/debian/control +++ pyspi-0.6.1/debian/control @@ -0,0 +1,37 @@ +Source: pyspi +Section: python +Priority: optional +Maintainer: Ubuntu Core developers +XSBC-Original-Maintainer: Jose Carlos Garcia Sogo +Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, python-all-dbg +Standards-Version: 3.7.2 +XS-X-Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk + +Package: python-at-spi +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, at-spi +Provides: ${python:Provides} +Suggests: python-at-spi-dbg +Description: Assistive Technology Service Provider Interface - Python bindings + at-spi is the "Assistive Technology Service Provider Interface". + . + Accessibility is enabling people with disabilities to participate in + substantial life activities that include work and the use of + services, products and information. + . + This package contains Python bindings for the core components of + GNOME Accessibility. + +Package: python-at-spi-dbg +Priority: extra +Architecture: any +Depends: python-at-spi (= ${Source-Version}), python-dbg, ${shlibs:Depends} +Description: Assistive Technology Service Provider Interface - Python bindings (debug extension) + at-spi is the "Assistive Technology Service Provider Interface". + . + Accessibility is enabling people with disabilities to participate in + substantial life activities that include work and the use of + services, products and information. + . + This package contains Python bindings for the core components of + GNOME Accessibility (debug extension). --- pyspi-0.6.1.orig/debian/pyversions +++ pyspi-0.6.1/debian/pyversions @@ -0,0 +1 @@ +2.4- --- pyspi-0.6.1.orig/debian/pycompat +++ pyspi-0.6.1/debian/pycompat @@ -0,0 +1 @@ +2 --- pyspi-0.6.1.orig/debian/changelog +++ pyspi-0.6.1/debian/changelog @@ -0,0 +1,90 @@ +pyspi (0.6.1-1ubuntu2) gutsy; urgency=low + + * Fix build failure with recent pyrex. LP: #128227. + + -- Matthias Klose Fri, 24 Aug 2007 08:27:57 +0000 + +pyspi (0.6.1-1ubuntu1) feisty; urgency=low + + * Build a python-at-spi-dbg package. + * Set package section to python. + * Set Ubuntu maintainer address. + + -- Matthias Klose Sun, 18 Feb 2007 00:01:11 +0100 + +pyspi (0.6.1-1) unstable; urgency=low + + * New upstream release. + + Upload to Debian (Closes: #399325) + * Use python-support, and as it is handled by CDBS, we don't need any hack + in debian/rules file. + + -- Jose Carlos Garcia Sogo Sun, 19 Nov 2006 01:17:18 +0100 + +pyspi (0.5.5-0ubuntu1) edgy; urgency=low + + * New upstream release: + - 0.5.5: + - Better error and exception handling. Where before, calls would + mysteriously fail and "IDL:omg.org/CORBA/COMM_FAILURE:1.0" would be + printed, now a SpiException is raised. + - AccessibleValue bindings + - AccessibleSelection bindings + - Bugfixes: + - EventListener's deregistering now works properly: it is possible to + register and deregister the same EventListener multiple times. + - 0.5.4: + - An improved build system for RPMs + - Initial support for DeviceListener - note: the current implementation + seems to be nonworking; callbacks are never called. + + -- Daniel Holbach Tue, 1 Aug 2006 22:55:09 +0200 + +pyspi (0.5.3-0ubuntu1) dapper; urgency=low + + * [Zack Cerza] + - New upstream release. + - Build -dbg package by default. + * [Daniel Holbach] + - debian/changelog + - changed to Ubuntu versioning + - debian/rules: + - use dh_python, + - remove -dbg package. + - debian/compat: + - set to 5. + - debian/control: + - added {shlibs,misc,python}:Depends. + - added python-dev (>= 2.4) Build-Depends. + - bumped debhelper Build-Dep to 5. + - bumped Standards-Version. + - dropped -dbg package. + - debian/copyright: + - wrapped a line. + + -- Daniel Holbach Sat, 28 Jan 2006 12:35:30 +0100 + +pyspi (0.5.2-1) unstable; urgency=low + + * New upstream release. + + -- Zack Cerza Thu, 6 Oct 2005 23:26:05 -0400 + +pyspi (0.5.1-1) unstable; urgency=low + + * New upstream release. + + -- Zack Cerza Thu, 6 Oct 2005 17:24:03 -0400 + +pyspi (0.5.0-1) unstable; urgency=low + + * New upstream release. + + -- Zack Cerza Thu, 6 Oct 2005 16:57:47 -0400 + +pyspi (0.0.1.90-1) unstable; urgency=low + + * Initial Release + + -- Zack Cerza Sun, 10 Jul 2006 22:40:36 -0400 +