Hello community, here is the log from the commit of package python-atspi for openSUSE:Factory checked in at 2014-05-05 21:16:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-atspi (Old) and /work/SRC/openSUSE:Factory/.python-atspi.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-atspi" Changes: -------- --- /work/SRC/openSUSE:Factory/python-atspi/python-atspi.changes 2013-09-27 17:58:45.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-atspi.new/python-atspi.changes 2014-05-05 21:18:29.000000000 +0200 @@ -1,0 +2,32 @@ +Tue Mar 25 13:59:22 UTC 2014 - dimstar@opensuse.org + +- Update to version 2.12.0: + + Stable release, no changes since 2.11.92. + +------------------------------------------------------------------- +Wed Mar 19 14:48:33 UTC 2014 - dimstar@opensuse.org + +- Update to version 2.11.92: + + Fix a traceback when removing a text selection. + +------------------------------------------------------------------- +Wed Feb 19 10:45:53 UTC 2014 - zaitor@opensuse.org + +- Update to version 2.11.90: + + Add AtspitableCell, tracking the new atk interface. + +------------------------------------------------------------------- +Mon Dec 16 23:08:32 UTC 2013 - dimstar@opensuse.org + +- Update to version 2.11.3: + + bgo#719508: document: add support to current page and page + count. + +------------------------------------------------------------------- +Tue Nov 19 19:58:06 UTC 2013 - dimstar@opensuse.org + +- Update to version 2.11.2: + + Add new roles and states to track atk (bgo#710464, bgo#712608, + bgo#712609). + +------------------------------------------------------------------- python3-atspi.changes: same change Old: ---- pyatspi-2.10.0.tar.xz New: ---- pyatspi-2.12.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-atspi.spec ++++++ --- /var/tmp/diff_new_pack.v24W6K/_old 2014-05-05 21:18:30.000000000 +0200 +++ /var/tmp/diff_new_pack.v24W6K/_new 2014-05-05 21:18:30.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-atspi # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -36,13 +36,13 @@ Name: python-atspi %define _name pyatspi -Version: 2.10.0 +Version: 2.12.0 Release: 0 Summary: Assistive Technology Service Provider Interface - Python bindings License: LGPL-2.0 Group: Development/Libraries/Python Url: http://www.gnome.org/ -Source0: http://download.gnome.org/sources/pyatspi/2.10/%{_name}-%{version}.tar.xz +Source0: http://download.gnome.org/sources/pyatspi/2.12/%{_name}-%{version}.tar.xz BuildRequires: fdupes # Needed to have typelib() Requires. BuildRequires: gobject-introspection python3-atspi.spec: same change ++++++ pyatspi-2.10.0.tar.xz -> pyatspi-2.12.0.tar.xz ++++++ ++++ 25317 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/NEWS new/pyatspi-2.12.0/NEWS --- old/pyatspi-2.10.0/NEWS 2013-09-16 23:41:26.000000000 +0200 +++ new/pyatspi-2.12.0/NEWS 2014-03-17 23:32:07.000000000 +0100 @@ -1,3 +1,19 @@ +What's new in pyatspi 2.11.92: + +*Fix a traceback when removing a text selection. + +What's new in pyatspi 2.11.90: + +* Add AtspiTableCell, tracking the new atk interface. + +What's new in pyatspi 2.11.3: + +* document: add support to current page and page count (BGO#719508). + +What's new in pyatspi 2.11.2: + +* Add new roles and states to track atk (BGO#710464, BGO#712608, BGO#712609). + What's new in pyatspi 2.9.92: * Handle attribute lists with multiple accepted values for the same key diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/config/missing new/pyatspi-2.12.0/config/missing --- old/pyatspi-2.10.0/config/missing 2013-09-24 00:10:54.000000000 +0200 +++ new/pyatspi-2.12.0/config/missing 2014-03-24 22:31:42.000000000 +0100 @@ -1,10 +1,10 @@ #! /bin/sh -# Common stub for a few missing GNU programs while installing. +# Common wrapper for a few potentially missing GNU programs. -scriptversion=2012-01-06.18; # UTC +scriptversion=2012-06-26.16; # UTC -# Copyright (C) 1996-2012 Free Software Foundation, Inc. -# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -29,61 +29,33 @@ exit 1 fi -run=: -sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' -sed_minuso='s/.* -o \([^ ]*\).*/\1/p' - -# In the cases where this matters, 'missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi +case $1 in -msg="missing on your system" + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; -case $1 in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... -Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails Supported PROGRAM values: - aclocal touch file 'aclocal.m4' - autoconf touch file 'configure' - autoheader touch file 'config.h.in' - autom4te touch the output file, or create a stub one - automake touch all 'Makefile.in' files - bison create 'y.tab.[ch]', if possible, from existing .[ch] - flex create 'lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create 'lex.yy.c', if possible, from existing .c - makeinfo touch the output file - yacc create 'y.tab.[ch]', if possible, from existing .[ch] + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. @@ -98,228 +70,141 @@ ;; -*) - echo 1>&2 "$0: Unknown '$1' option" + echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac -# normalize program name to check for. -program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - -# Now exit if we have it, but it failed. Also exit now if we -# don't have it and --version was passed (most likely to detect -# the program). This is about non-GNU programs, so use $1 not -# $program. -case $1 in - lex*|yacc*) - # Not GNU programs, they don't have --version. - ;; +# Run the given program, remember its exit status. +"$@"; st=$? - *) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - # Could not run --version or --help. This is probably someone - # running '$TOOL --version' or '$TOOL --help' to check whether - # $TOOL exists and not knowing $TOOL uses missing. - exit 1 - fi - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case $program in - aclocal*) - echo 1>&2 "\ -WARNING: '$1' is $msg. You should only need it if - you modified 'acinclude.m4' or '${configure_ac}'. You might want - to install the Automake and Perl packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf*) - echo 1>&2 "\ -WARNING: '$1' is $msg. You should only need it if - you modified '${configure_ac}'. You might want to install the - Autoconf and GNU m4 packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader*) - echo 1>&2 "\ -WARNING: '$1' is $msg. You should only need it if - you modified 'acconfig.h' or '${configure_ac}'. You might want - to install the Autoconf and GNU m4 packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case $f in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; +# If it succeeded, we are done. +test $st -eq 0 && exit 0 - automake*) - echo 1>&2 "\ -WARNING: '$1' is $msg. You should only need it if - you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'. - You might want to install the Automake and Perl packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print | - sed 's/\.am$/.in/' | - while read f; do touch "$f"; done - ;; - - autom4te*) - echo 1>&2 "\ -WARNING: '$1' is needed, but is $msg. - You might have modified some files without having the - proper tools for further handling them. - You can get '$1' as part of Autoconf from any GNU - archive site." - - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo "#! /bin/sh" - echo "# Created by GNU Automake missing as a replacement of" - echo "# $ $@" - echo "exit 0" - chmod +x $file - exit 1 - fi - ;; - - bison*|yacc*) - echo 1>&2 "\ -WARNING: '$1' $msg. You should only need it if - you modified a '.y' file. You may need the Bison package - in order for those modifications to take effect. You can get - Bison from any GNU archive site." - rm -f y.tab.c y.tab.h - if test $# -ne 1; then - eval LASTARG=\${$#} - case $LASTARG in - *.y) - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" y.tab.c - fi - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" y.tab.h - fi - ;; - esac - fi - if test ! -f y.tab.h; then - echo >y.tab.h - fi - if test ! -f y.tab.c; then - echo 'main() { return 0; }' >y.tab.c - fi - ;; - - lex*|flex*) - echo 1>&2 "\ -WARNING: '$1' is $msg. You should only need it if - you modified a '.l' file. You may need the Flex package - in order for those modifications to take effect. You can get - Flex from any GNU archive site." - rm -f lex.yy.c - if test $# -ne 1; then - eval LASTARG=\${$#} - case $LASTARG in - *.l) - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if test -f "$SRCFILE"; then - cp "$SRCFILE" lex.yy.c - fi - ;; - esac - fi - if test ! -f lex.yy.c; then - echo 'main() { return 0; }' >lex.yy.c - fi - ;; - - help2man*) - echo 1>&2 "\ -WARNING: '$1' is $msg. You should only need it if - you modified a dependency of a manual page. You may need the - Help2man package in order for those modifications to take - effect. You can get Help2man from any GNU archive site." - - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -f "$file"; then - touch $file - else - test -z "$file" || exec >$file - echo ".ab help2man is required to generate this page" - exit $? - fi - ;; - - makeinfo*) - echo 1>&2 "\ -WARNING: '$1' is $msg. You should only need it if - you modified a '.texi' or '.texinfo' file, or any other file - indirectly affecting the aspect of the manual. The spurious - call might also be the consequence of using a buggy 'make' (AIX, - DU, IRIX). You might want to install the Texinfo package or - the GNU make package. Grab either from any GNU archive site." - # The file to touch is that specified with -o ... - file=`echo "$*" | sed -n "$sed_output"` - test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` - if test -z "$file"; then - # ... or it is the one specified with @setfilename ... - infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n ' - /^@setfilename/{ - s/.* \([^ ]*\) *$/\1/ - p - q - }' $infile` - # ... or it is derived from the source name (dir/f.texi becomes f.info) - test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info - fi - # If the file does not exist, the user really needs makeinfo; - # let's fail without touching anything. - test -f $file || exit 1 - touch $file - ;; - - *) - echo 1>&2 "\ -WARNING: '$1' is needed, and is $msg. - You might have modified some files without having the - proper tools for further handling them. Check the 'README' file, - it often tells you about the needed prerequisites for installing - this package. You may also peek at any GNU archive site, in case - some other package would contain this missing '$1' program." - exit 1 - ;; -esac +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi -exit 0 +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'automa4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/config/py-compile new/pyatspi-2.12.0/config/py-compile --- old/pyatspi-2.10.0/config/py-compile 2013-09-24 00:10:54.000000000 +0200 +++ new/pyatspi-2.12.0/config/py-compile 2014-03-24 22:31:42.000000000 +0100 @@ -3,7 +3,7 @@ scriptversion=2011-06-08.12; # UTC -# Copyright (C) 2000-2012 Free Software Foundation, Inc. +# Copyright (C) 2000-2013 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -36,7 +36,7 @@ usage_error () { echo "$me: $*" >&2 - echo "Try \`$me --help' for more information." >&2 + echo "Try '$me --help' for more information." >&2 exit 1 } @@ -116,7 +116,7 @@ fi $PYTHON -c " -import sys, os, py_compile +import sys, os, py_compile, imp files = '''$files''' @@ -129,12 +129,19 @@ continue sys.stdout.write(file) sys.stdout.flush() - py_compile.compile(filepath, filepath + 'c', path) + if hasattr(imp, 'get_tag'): + py_compile.compile(filepath, imp.cache_from_source(filepath), path) + else: + py_compile.compile(filepath, filepath + 'c', path) sys.stdout.write('\n')" || exit $? # this will fail for python < 1.5, but that doesn't matter ... $PYTHON -O -c " -import sys, os, py_compile +import sys, os, py_compile, imp + +# pypy does not use .pyo optimization +if hasattr(sys, 'pypy_translation_info'): + sys.exit(0) files = '''$files''' sys.stdout.write('Byte-compiling python modules (optimized versions) ...\n') @@ -146,7 +153,10 @@ continue sys.stdout.write(file) sys.stdout.flush() - py_compile.compile(filepath, filepath + 'o', path) + if hasattr(imp, 'get_tag'): + py_compile.compile(filepath, imp.cache_from_source(filepath, False), path) + else: + py_compile.compile(filepath, filepath + 'o', path) sys.stdout.write('\n')" 2>/dev/null || : # Local Variables: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/config/test-driver new/pyatspi-2.12.0/config/test-driver --- old/pyatspi-2.10.0/config/test-driver 1970-01-01 01:00:00.000000000 +0100 +++ new/pyatspi-2.12.0/config/test-driver 2014-03-24 22:31:43.000000000 +0100 @@ -0,0 +1,127 @@ +#! /bin/sh +# test-driver - basic testsuite driver script. + +scriptversion=2012-06-27.10; # UTC + +# Copyright (C) 2011-2013 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to <bug-automake@gnu.org> or send patches to +# <automake-patches@gnu.org>. + +# Make unconditional expansion of undefined variables an error. This +# helps a lot in preventing typo-related bugs. +set -u + +usage_error () +{ + echo "$0: $*" >&2 + print_usage >&2 + exit 2 +} + +print_usage () +{ + cat <<END +Usage: + test-driver --test-name=NAME --log-file=PATH --trs-file=PATH + [--expect-failure={yes|no}] [--color-tests={yes|no}] + [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT +The '--test-name', '--log-file' and '--trs-file' options are mandatory. +END +} + +# TODO: better error handling in option parsing (in particular, ensure +# TODO: $log_file, $trs_file and $test_name are defined). +test_name= # Used for reporting. +log_file= # Where to save the output of the test script. +trs_file= # Where to save the metadata of the test run. +expect_failure=no +color_tests=no +enable_hard_errors=yes +while test $# -gt 0; do + case $1 in + --help) print_usage; exit $?;; + --version) echo "test-driver $scriptversion"; exit $?;; + --test-name) test_name=$2; shift;; + --log-file) log_file=$2; shift;; + --trs-file) trs_file=$2; shift;; + --color-tests) color_tests=$2; shift;; + --expect-failure) expect_failure=$2; shift;; + --enable-hard-errors) enable_hard_errors=$2; shift;; + --) shift; break;; + -*) usage_error "invalid option: '$1'";; + esac + shift +done + +if test $color_tests = yes; then + # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'. + red='[0;31m' # Red. + grn='[0;32m' # Green. + lgn='[1;32m' # Light green. + blu='[1;34m' # Blue. + mgn='[0;35m' # Magenta. + std='[m' # No color. +else + red= grn= lgn= blu= mgn= std= +fi + +do_exit='rm -f $log_file $trs_file; (exit $st); exit $st' +trap "st=129; $do_exit" 1 +trap "st=130; $do_exit" 2 +trap "st=141; $do_exit" 13 +trap "st=143; $do_exit" 15 + +# Test script is run here. +"$@" >$log_file 2>&1 +estatus=$? +if test $enable_hard_errors = no && test $estatus -eq 99; then + estatus=1 +fi + +case $estatus:$expect_failure in + 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; + 0:*) col=$grn res=PASS recheck=no gcopy=no;; + 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; + 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; + *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; + *:*) col=$red res=FAIL recheck=yes gcopy=yes;; +esac + +# Report outcome to console. +echo "${col}${res}${std}: $test_name" + +# Register the test result, and other relevant metadata. +echo ":test-result: $res" > $trs_file +echo ":global-test-result: $res" >> $trs_file +echo ":recheck: $recheck" >> $trs_file +echo ":copy-in-global-log: $gcopy" >> $trs_file + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/config.h.in new/pyatspi-2.12.0/config.h.in --- old/pyatspi-2.10.0/config.h.in 2013-09-24 00:10:53.000000000 +0200 +++ new/pyatspi-2.12.0/config.h.in 2014-03-24 22:31:42.000000000 +0100 @@ -30,8 +30,7 @@ /* Define to 1 if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ +/* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/configure.ac new/pyatspi-2.12.0/configure.ac --- old/pyatspi-2.10.0/configure.ac 2013-09-24 00:10:29.000000000 +0200 +++ new/pyatspi-2.12.0/configure.ac 2014-03-24 22:31:30.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT([pyatspi], [2.10.0], [accessibility-atspi@lists.linux-foundation.org]) +AC_INIT([pyatspi], [2.12.0], [accessibility-atspi@lists.linux-foundation.org]) AC_CONFIG_AUX_DIR(config) # The version of python used is determined by the executable pointed to by the @@ -82,7 +82,7 @@ AC_SUBST(LIB_XML_LIBS) AC_SUBST(LIB_XML_CFLAGS) - PKG_CHECK_MODULES(ATK, [atk >= 2.1.0]) + PKG_CHECK_MODULES(ATK, [atk >= 2.11.2]) AC_SUBST(ATK_LIBS) AC_SUBST(ATK_CFLAGS) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/Accessibility.py new/pyatspi-2.12.0/pyatspi/Accessibility.py --- old/pyatspi-2.10.0/pyatspi/Accessibility.py 2013-05-14 18:29:48.000000000 +0200 +++ new/pyatspi-2.12.0/pyatspi/Accessibility.py 2014-03-17 14:33:09.000000000 +0100 @@ -32,6 +32,7 @@ from pyatspi.image import * from pyatspi.selection import * from pyatspi.table import * +from pyatspi.tablecell import * from pyatspi.value import * from pyatspi.appevent import * from pyatspi.interface import * @@ -148,6 +149,7 @@ Atspi.Accessible.queryImage = lambda x: Image(getInterface(Atspi.Accessible.get_image_iface, x)) Atspi.Accessible.querySelection = lambda x: Selection(getInterface(Atspi.Accessible.get_selection_iface, x)) Atspi.Accessible.queryTable = lambda x: Table(getInterface(Atspi.Accessible.get_table_iface, x)) +Atspi.Accessible.queryTableCell = lambda x: TableCell(getInterface(Atspi.Accessible.get_table_cell, x)) Atspi.Accessible.queryText = lambda x: Text(getInterface(Atspi.Accessible.get_text_iface, x)) Atspi.Accessible.queryValue = lambda x: Value(getInterface(Atspi.Accessible.get_value_iface, x)) @@ -162,6 +164,7 @@ interface.queryImage = lambda x: Image(getInterface(Atspi.Accessible.get_image, x.obj)) interface.querySelection = lambda x: Selection(getInterface(Atspi.Accessible.get_selection, x.obj)) interface.queryTable = lambda x: Table(getInterface(Atspi.Accessible.get_table, x.obj)) +interface.queryTableCell = lambda x: Table(getInterface(Atspi.Accessible.get_table_cell, x.obj)) interface.queryText = lambda x: Text(getInterface(Atspi.Accessible.get_text, x.obj)) interface.queryValue = lambda x: Value(getInterface(Atspi.Accessible.get_value, x.obj)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/Makefile.am new/pyatspi-2.12.0/pyatspi/Makefile.am --- old/pyatspi-2.10.0/pyatspi/Makefile.am 2013-01-07 23:57:16.000000000 +0100 +++ new/pyatspi-2.12.0/pyatspi/Makefile.am 2014-03-17 14:33:09.000000000 +0100 @@ -21,6 +21,7 @@ selection.py \ state.py \ table.py \ +tablecell.py \ text.py \ utils.py \ value.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/constants.py new/pyatspi-2.12.0/pyatspi/constants.py --- old/pyatspi-2.10.0/pyatspi/constants.py 2013-01-07 23:57:16.000000000 +0100 +++ new/pyatspi-2.12.0/pyatspi/constants.py 2013-12-16 23:11:51.000000000 +0100 @@ -67,6 +67,7 @@ 'document:reload', 'document:load-stopped', 'document:attributes-changed' + 'document:page-changed' ], 'object': ['object:property-change', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/document.py new/pyatspi-2.12.0/pyatspi/document.py --- old/pyatspi-2.10.0/pyatspi/document.py 2013-05-22 23:26:40.000000000 +0200 +++ new/pyatspi-2.12.0/pyatspi/document.py 2013-12-16 23:11:51.000000000 +0100 @@ -67,4 +67,20 @@ """ return Atspi.Document.get_locale(self.obj) + def getCurrentPageNumber(self): + """ + Gets the current page number associated with the document. + @return a integer with the current page number. -1 if error + or unknown. + """ + return Atspi.Document.get_current_page_number(self.obj) + + def getPageCount(self): + """ + Gets the page count of the document. + @return a integer with the page count of the document. + -1 if error or unknown. + """ + return Atspi.Document.get_page_count(self.obj) + #END---------------------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/role.py new/pyatspi-2.12.0/pyatspi/role.py --- old/pyatspi-2.10.0/pyatspi/role.py 2013-01-31 23:41:12.000000000 +0100 +++ new/pyatspi-2.12.0/pyatspi/role.py 2013-11-19 00:03:08.000000000 +0100 @@ -122,7 +122,19 @@ 101:'ROLE_NOTIFICATION', 102:'ROLE_INFO_BAR', 103:'ROLE_LEVEL_BAR', - 104:'ROLE_LAST_DEFINED', + 104:'ROLE_TITLE_BAR', + 105:'ROLE_BLOCK_QUOTE', + 106:'ROLE_AUDIO', + 107:'ROLE_VIDEO', + 108:'ROLE_DEFINITION', + 109:'ROLE_ARTICLE', + 110:'ROLE_LANDMARK', + 111:'ROLE_LOG', + 112:'ROLE_MARQUEE', + 113:'ROLE_MATH', + 114:'ROLE_RATING', + 115:'ROLE_TIMER', + 116:'ROLE_LAST_DEFINED', } ROLE_ACCELERATOR_LABEL = Role(1) @@ -130,7 +142,10 @@ ROLE_ANIMATION = Role(3) ROLE_APPLICATION = Role(75) ROLE_ARROW = Role(4) +ROLE_ARTICLE = Role(109) +ROLE_AUDIO = Role(106) ROLE_AUTOCOMPLETE = Role(76) +ROLE_BLOCK_QUOTE = Role(105) ROLE_CALENDAR = Role(5) ROLE_CANVAS = Role(6) ROLE_CAPTION = Role(81) @@ -142,6 +157,7 @@ ROLE_COMBO_BOX = Role(11) ROLE_COMMENT = Role(97) ROLE_DATE_EDITOR = Role(12) +ROLE_DEFINITION = Role(108) ROLE_DESKTOP_FRAME = Role(14) ROLE_DESKTOP_ICON = Role(13) ROLE_DIAL = Role(15) @@ -178,13 +194,17 @@ ROLE_INTERNAL_FRAME = Role(28) ROLE_INVALID = Role(0) ROLE_LABEL = Role(29) -ROLE_LAST_DEFINED = Role(103) +ROLE_LANDMARK = Role(110) +ROLE_LAST_DEFINED = Role(116) ROLE_LAYERED_PANE = Role(30) ROLE_LEVEL_BAR = Role(103) ROLE_LINK = Role(88) ROLE_LIST = Role(31) ROLE_LIST_BOX = Role(98) ROLE_LIST_ITEM = Role(32) +ROLE_LOG = Role(111) +ROLE_MARQUEE = Role(112) +ROLE_MATH = Role(113) ROLE_MENU = Role(33) ROLE_MENU_BAR = Role(34) ROLE_MENU_ITEM = Role(35) @@ -201,6 +221,7 @@ ROLE_PUSH_BUTTON = Role(43) ROLE_RADIO_BUTTON = Role(44) ROLE_RADIO_MENU_ITEM = Role(45) +ROLE_RATING = Role(114) ROLE_REDUNDANT_OBJECT = Role(86) ROLE_ROOT_PANE = Role(46) ROLE_ROW_HEADER = Role(47) @@ -221,6 +242,8 @@ ROLE_TEAROFF_MENU_ITEM = Role(59) ROLE_TERMINAL = Role(60) ROLE_TEXT = Role(61) +ROLE_TIMER = Role(115) +ROLE_TITLE_BAR = Role(104) ROLE_TOGGLE_BUTTON = Role(62) ROLE_TOOL_BAR = Role(63) ROLE_TOOL_TIP = Role(64) @@ -228,6 +251,7 @@ ROLE_TREE_ITEM = Role(91) ROLE_TREE_TABLE = Role(66) ROLE_UNKNOWN = Role(67) +ROLE_VIDEO = Role(107) ROLE_VIEWPORT = Role(68) ROLE_WINDOW = Role(69) @@ -334,6 +358,18 @@ ROLE_NOTIFICATION:'notification', ROLE_INFO_BAR:'info bar', ROLE_LEVEL_BAR:'level bar', + ROLE_TITLE_BAR:'title bar', + ROLE_BLOCK_QUOTE:'block quote', + ROLE_AUDIO:'audio', + ROLE_VIDEO:'video', + ROLE_DEFINITION:'definition', + ROLE_ARTICLE:'article', + ROLE_LANDMARK:'landmark', + ROLE_LOG:'log', + ROLE_MARQUEE:'marquee', + ROLE_MATH:'math', + ROLE_RATING:'rating', + ROLE_TIMER:'timer', } #END---------------------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/state.py new/pyatspi-2.12.0/pyatspi/state.py --- old/pyatspi-2.10.0/pyatspi/state.py 2013-01-07 23:57:16.000000000 +0100 +++ new/pyatspi-2.12.0/pyatspi/state.py 2013-11-18 23:44:25.000000000 +0100 @@ -68,7 +68,9 @@ 38:'STATE_SELECTABLE_TEXT', 39:'STATE_IS_DEFAULT', 40:'STATE_VISITED', - 41:'STATE_LAST_DEFINED', + 41:'STATE_CHECKABLE', + 42:'STATE_HAS_POPUP', + 43:'STATE_LAST_DEFINED', } #------------------------------------------------------------------------------ @@ -77,6 +79,7 @@ STATE_ANIMATED = StateType(35) STATE_ARMED = StateType(2) STATE_BUSY = StateType(3) +STATE_CHECKABLE = StateType(41) STATE_CHECKED = StateType(4) STATE_COLLAPSED = StateType(5) STATE_DEFUNCT = StateType(6) @@ -86,6 +89,7 @@ STATE_EXPANDED = StateType(10) STATE_FOCUSABLE = StateType(11) STATE_FOCUSED = StateType(12) +STATE_HAS_POPUP = StateType(42) STATE_HAS_TOOLTIP = StateType(13) STATE_HORIZONTAL = StateType(14) STATE_ICONIFIED = StateType(15) @@ -93,7 +97,7 @@ STATE_INVALID = StateType(0) STATE_INVALID_ENTRY = StateType(36) STATE_IS_DEFAULT = StateType(39) -STATE_LAST_DEFINED = StateType(41) +STATE_LAST_DEFINED = StateType(43) STATE_MANAGES_DESCENDANTS = StateType(31) STATE_MODAL = StateType(16) STATE_MULTISELECTABLE = StateType(18) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/tablecell.py new/pyatspi-2.12.0/pyatspi/tablecell.py --- old/pyatspi-2.10.0/pyatspi/tablecell.py 1970-01-01 01:00:00.000000000 +0100 +++ new/pyatspi-2.12.0/pyatspi/tablecell.py 2014-03-17 14:33:09.000000000 +0100 @@ -0,0 +1,85 @@ +#Copyright (c) 2013 SUSE LLC. + +#This library is free software; you can redistribute it and/or +#modify it under the terms of the GNU Lesser General Public +#License version 2 as published by the Free Software Foundation. + +#This program 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 General Public License for more details. +#You should have received a copy of the GNU Lesser General Public License +#along with this program; if not, write to the Free Software +#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +from gi.repository import Atspi +from pyatspi.enum import * +from pyatspi.utils import * +from pyatspi.interface import * + +__all__ = [ + "TableCell", + ] + +#------------------------------------------------------------------------------ + +class TableCell(interface): + """ + An interface used by cells in a table. + """ + + def get_columnSpan(self): + return Atspi.TableCell.get_column_span(self.obj) + _columnSpanDoc = \ + """ + Get the number of columns occupied by this cell. + """ + columnSpan = property(fget=get_columnSpan, doc=_columnSpanDoc) + + def get_columnHeaderCells(self): + return Atspi.TableCell.get_column_header_cells(self.obj) + _columnHeaderCellsDoc = \ + """ + Get the column headers as an array of cell accessibles. + """ + columnHeaderCells = property(fget=get_columnHeaderCells, doc=_columnHeaderCellsDoc) + + def get_rowSpan(self): + return Atspi.TableCell.get_row_span(self.obj) + _rowSpanDoc = \ + """ + Get the number of rows occupied by this cell. + """ + rowSpan = property(fget=get_rowSpan, doc=_rowSpanDoc) + + def get_rowHeaderCells(self): + return Atspi.TableCell.get_row_header_cells(self.obj) + _rowHeaderCellsDoc = \ + """ + Get the row headers as an array of cell accessibles. + """ + rowHeaderCells = property(fget=get_rowHeaderCells, doc=_rowHeaderCellsDoc) + + def get_position(self): + return Atspi.TableCell.get_position(self.obj) + _positionDoc = \ + """ + Returns the tabular position of this accessible. + """ + position = property(fget=get_position, doc=_positionDoc) + + def getRowColumnSpan(self): + """ + determine the row and column indices and span of the given cell. + """ + return Atspi.TableCell.get_row_column_span(self.obj) + + def get_table(self): + return Atspi.TableCell.get_table(self.obj) + _tableDoc = \ + """ + Returns a reference to the accessible of the containing table. + """ + table = property(fget=get_table, doc=_tableDoc) + +#END---------------------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/pyatspi-2.10.0/pyatspi/text.py new/pyatspi-2.12.0/pyatspi/text.py --- old/pyatspi-2.10.0/pyatspi/text.py 2013-08-19 23:42:49.000000000 +0200 +++ new/pyatspi-2.12.0/pyatspi/text.py 2014-03-17 14:33:18.000000000 +0100 @@ -531,7 +531,7 @@ @return True if the selection was successfully removed, False otherwise. """ - return Atspi.Text.remove_selection(self.obj, index) + return Atspi.Text.remove_selection(self.obj, selectionNum) def setCaretOffset(self, offset): """ -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org