Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package eekboard for openSUSE:Factory checked in at 2021-09-23 23:04:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/eekboard (Old) and /work/SRC/openSUSE:Factory/.eekboard.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "eekboard" Thu Sep 23 23:04:01 2021 rev:7 rq:921106 version:1.0.8 Changes: -------- --- /work/SRC/openSUSE:Factory/eekboard/eekboard.changes 2020-09-29 19:01:59.169786809 +0200 +++ /work/SRC/openSUSE:Factory/.eekboard.new.1899/eekboard.changes 2021-09-23 23:04:11.332329073 +0200 @@ -1,0 +2,7 @@ +Tue Sep 21 07:31:09 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com> + +- Add port-to-python3.patch: + * Ports gen-keysym-entries.py to Python 3. +- Remove unneeded BuildRequires on python and python-devel + +------------------------------------------------------------------- New: ---- port-to-python3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ eekboard.spec ++++++ --- /var/tmp/diff_new_pack.67mJUn/_old 2021-09-23 23:04:12.040329600 +0200 +++ /var/tmp/diff_new_pack.67mJUn/_new 2021-09-23 23:04:12.044329603 +0200 @@ -1,7 +1,7 @@ # # spec file for package eekboard # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,10 +22,11 @@ Version: 1.0.8 Release: 0 Summary: An easy to use virtual keyboard toolkit -License: GPL-3.0+ +License: GPL-3.0-or-later Group: System/GUI/Other -Url: http://github.com/ueno/eekboard +URL: http://github.com/ueno/eekboard Source0: %{name}-%{version}.tar.gz +Patch0: port-to-python3.patch BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-2.0) @@ -49,8 +50,6 @@ %endif BuildRequires: gcc-c++ BuildRequires: intltool -BuildRequires: python -BuildRequires: python-devel BuildRequires: update-desktop-files %glib2_gsettings_schema_requires @@ -59,7 +58,6 @@ eekboard is a virtual keyboard software package, including a set of tools to implement desktop virtual keyboards. - %package -n typelib-1_0-Eek-0_90 Summary: Eekboard libraries -- Introspection bindings Group: System/Libraries @@ -78,6 +76,7 @@ %prep %setup -q +%patch0 -p1 %build # ./autogen.sh ++++++ port-to-python3.patch ++++++ Written by Akinori Hattori <hat...@gentoo.org>, sourced from: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9f523470ee04ea0ed7ebadbc950b16e2afb17b5 Index: eekboard-1.0.8/eek/gen-keysym-entries.py =================================================================== --- eekboard-1.0.8.orig/eek/gen-keysym-entries.py +++ eekboard-1.0.8/eek/gen-keysym-entries.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 # Copyright (C) 2010-2011 Daiki Ueno <u...@unixuser.org> # Copyright (C) 2010-2011 Red Hat, Inc. @@ -18,17 +18,20 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA +from __future__ import print_function import sys import re if len(sys.argv) != 2: - print >> sys.stderr, "Usage: %s TABLE-NAME" % sys.argv[0] + print("Usage: %s TABLE-NAME" % sys.argv[0], file=sys.stderr) sys.exit(-1) +py2 = sys.version_info[0] < 3 table = dict() for line in sys.stdin: - line = line.decode('UTF-8') - match = re.match(r'\s*(0x[0-9A-F]+)\s+(\S*)\s+(\S*)', line, re.I) + if py2: + line = line.decode('UTF-8') + match = re.match(r'\s*(0x[0-9A-F]+)\s+(\w*)\s+(\w*)', line, re.I) if match: table[int(match.group(1), 16)] = (match.group(2), match.group(3)) @@ -37,8 +40,10 @@ sys.stdout.write("static const EekKeysym for index, (keysym, (l, c)) in enumerate([(keysym, table[keysym]) for keysym in sorted(table.keys())]): - sys.stdout.write(" { 0x%X, %s, %s }" % - (keysym, l.encode('UTF-8'), c.encode('UTF-8'))) + if py2: + l = l.encode('UTF-8') + c = c.encode('UTF-8') + sys.stdout.write(" { 0x%X, %s, %s }" % (keysym, l, c)) if index < len(table) - 1: sys.stdout.write(",") sys.stdout.write("\n")