rpms/pyatspi/devel 0001-Use-pyatspi_corba-if-desktop-gnome-interface-at-spi.patch, NONE, 1.1 import.log, NONE, 1.1 pyatspi.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matthias Clasen mclasen at fedoraproject.org
Sat Jan 9 06:04:23 UTC 2010


Author: mclasen

Update of /cvs/pkgs/rpms/pyatspi/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29368/devel

Modified Files:
	.cvsignore sources 
Added Files:
	0001-Use-pyatspi_corba-if-desktop-gnome-interface-at-spi.patch 
	import.log pyatspi.spec 
Log Message:
initial import


0001-Use-pyatspi_corba-if-desktop-gnome-interface-at-spi.patch:
 __init__.py |   45 +++++++++++++++++++++++++++++++--------------
 1 file changed, 31 insertions(+), 14 deletions(-)

--- NEW FILE 0001-Use-pyatspi_corba-if-desktop-gnome-interface-at-spi.patch ---
>From dca73eb4051d4c56601da757e98deb60c1af6deb Mon Sep 17 00:00:00 2001
From: Willie Walker <william.walker at sun.com>
Date: Wed, 6 Jan 2010 13:44:46 -0500
Subject: [PATCH] Use pyatspi_corba if /desktop/gnome/interface/at-spi-corba is True

---
 pyatspi/__init__.py |   44 +++++++++++++++++++++++++++++++-------------
 1 files changed, 31 insertions(+), 13 deletions(-)

diff --git a/pyatspi/__init__.py b/pyatspi/__init__.py
index 9b508e3..5106df2 100644
--- a/pyatspi/__init__.py
+++ b/pyatspi/__init__.py
@@ -12,20 +12,38 @@
 #along with this program; if not, write to the Free Software
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-__version__ = (1, 9, 0)
+try:
+    import gconf
+    gconfClient = gconf.client_get_default()
+    useCorba = gconfClient.get_bool("/desktop/gnome/interface/at-spi-corba")
+except:
+    useCorba = False
+finally:
+    del gconfClient
+    del gconf
 
-import constants
-from Accessibility import *
+if useCorba:
+    import sys
+    import pyatspi_corba
+    sys.modules['pyatspi'] = pyatspi_corba
+    del sys
+else:
+    __version__ = (1, 9, 0)
 
-from dbus.mainloop.glib import DBusGMainLoop
-DBusGMainLoop (set_as_default=True)
-del DBusGMainLoop
+    import constants
+    from Accessibility import *
 
-#This is a re-creation of the namespace pollution implemented
-#by PyORBit.
-import sys
-import Accessibility
-sys.modules['Accessibility'] = Accessibility
-del sys
+    from dbus.mainloop.glib import DBusGMainLoop
+    DBusGMainLoop (set_as_default=True)
+    del DBusGMainLoop
 
-import appevent as event
+    #This is a re-creation of the namespace pollution implemented
+    #by PyORBit.
+    import sys
+    import Accessibility
+    sys.modules['Accessibility'] = Accessibility
+    del sys
+
+    import appevent as event
+
+del useCorba
-- 
1.5.6.5



--- NEW FILE import.log ---
pyatspi-0_1_4-3_fc12:HEAD:pyatspi-0.1.4-3.fc12.src.rpm:1263016855


--- NEW FILE pyatspi.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%global debug_package %{nil}

Name:           pyatspi
Version:        0.1.4
Release:        3%{?dist}
Summary:        Python bindings for at-spi

Group:          Development/Languages
License:        LGPLv2
URL:            http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus
Source0:        http://download.gnome.org/sources/pyatspi/0.1/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python

Requires:       GConf2
Requires:       at-spi2-core

# https://bugzilla.gnome.org/show_bug.cgi?id=606251
Patch0:         0001-Use-pyatspi_corba-if-desktop-gnome-interface-at-spi.patch

BuildArch:      noarch

%description
at-spi allows assistive technologies to access GTK-based
applications. Essentially it exposes the internals of applications for
automation, so tools such as screen readers, magnifiers, or even
scripting interfaces can query and interact with GUI controls.

This version of at-spi is a major break from previous versions.
It has been completely rewritten to use D-Bus rather than
ORBIT / CORBA for its transport protocol.

This package includes a python client library for at-spi.


%prep
%setup -q
%patch0 -p1 -b .better-switch


%build
%configure
make


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING AUTHORS README
%{python_sitelib}/*


%changelog
* Thu Jan  7 2010 Matthias Clasen <mclasen at redhat.com> - 0.1.4-3
- Incorporate review feedback

* Thu Jan  7 2010 Matthias Clasen <mclasen at redhat.com> - 0.1.4-2
- Fix License field
- Change CORBA/DBus switching method

* Tue Dec 22 2009 Matthias Clasen <mclasen at redhat.com> - 0.1.4-1
- Update to 0.1.4

* Sat Dec  5 2009 Matthias Clasen <mclasen at redhat.com> - 0.1.3-1
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pyatspi/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	9 Jan 2010 04:40:02 -0000	1.1
+++ .cvsignore	9 Jan 2010 06:04:22 -0000	1.2
@@ -0,0 +1 @@
+pyatspi-0.1.4.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pyatspi/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	9 Jan 2010 04:40:02 -0000	1.1
+++ sources	9 Jan 2010 06:04:22 -0000	1.2
@@ -0,0 +1 @@
+bfe79896407c60e8b7c98db4f9097eec  pyatspi-0.1.4.tar.bz2




More information about the fedora-extras-commits mailing list