diff --git a/.gitignore b/.gitignore index d474916..b1b7a0d 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ ibus-table-1.3.0.20100621.tar.gz /ibus-table-1.9.25.tar.gz /ibus-table-1.10.0.tar.gz /ibus-table-1.10.1.tar.gz +/ibus-table-1.11.0.tar.gz diff --git a/fix-test.patch b/fix-test.patch new file mode 100644 index 0000000..9b5858d --- /dev/null +++ b/fix-test.patch @@ -0,0 +1,16 @@ +diff -ru ibus-table-1.11.0.orig/tests/test_it.py ibus-table-1.11.0/tests/test_it.py +--- ibus-table-1.11.0.orig/tests/test_it.py 2020-08-16 03:01:17.000000000 +0200 ++++ ibus-table-1.11.0/tests/test_it.py 2020-08-16 04:01:02.995248967 +0200 +@@ -460,10 +460,10 @@ + self.assertEqual(ENGINE.get_input_mode(), 1) + + def test_switch_to_next_chinese_mode_with_keybinding(self): +- self.assertEqual(ENGINE.get_chinese_mode(), 2) ++ self.assertEqual(ENGINE.get_chinese_mode(), 4) + # Now change with the keybinding: + ENGINE.do_process_key_event(IBus.KEY_semicolon, 0, IBus.ModifierType.CONTROL_MASK) +- self.assertEqual(ENGINE.get_chinese_mode(), 3) ++ self.assertEqual(ENGINE.get_chinese_mode(), 0) + + def test_toggle_onechar_mode_with_keybinding(self): + self.assertEqual(ENGINE.get_onechar_mode(), False) diff --git a/ibus-table.spec b/ibus-table.spec index 606b972..00bcfe0 100644 --- a/ibus-table.spec +++ b/ibus-table.spec @@ -3,12 +3,13 @@ %global _python_bytecompile_extra 1 Name: ibus-table -Version: 1.10.1 +Version: 1.11.0 Release: 1%{?dist} Summary: The Table engine for IBus platform License: LGPLv2+ URL: http://code.google.com/p/ibus/ Source0: http://mfabian.fedorapeople.org/ibus-table/%{name}-%{version}.tar.gz +Patch0: fix-test.patch Requires: ibus > 1.3.0 Requires: python(abi) >= 3.3 %{?__python3:Requires: %{__python3}} @@ -58,6 +59,7 @@ the functionality of the installed %{name} package. %prep %setup -q +%patch0 -p1 -b .fix-test %build export PYTHON=%{__python3} @@ -88,8 +90,8 @@ glib-compile-schemas /tmp/glib-2.0/schemas #&>/dev/null || : export XDG_DATA_DIRS=/tmp eval $(dbus-launch --sh-syntax) dconf dump / -dconf write /org/freedesktop/ibus/engine/table/wubi-jidian/chinesemode 1 -dconf write /org/freedesktop/ibus/engine/table/wubi-jidian/spacekeybehavior false +dconf write /org/freedesktop/ibus/engine/table/wubi-jidian86/chinesemode 2 +dconf write /org/freedesktop/ibus/engine/table/wubi-jidian86/spacekeybehavior false dconf dump / export DISPLAY=:1 Xvfb $DISPLAY -screen 0 1024x768x16 & @@ -149,6 +151,14 @@ fi %{_datadir}/installed-tests/%{name} %changelog +* Sun Aug 16 2020 Mike FABIAN - 1.11.0-1 +- Update to 1.11.0 +- Make key bindings configurable. + Only via the command line for the moment, not yet easy to do + for normal users. I have to rewrite the setup tool eventually + to make that possible. +- Resolves: https://github.com/ibus/ibus/issues/2241 + * Wed Jul 15 2020 Mike FABIAN - 1.10.1-1 - Update to 1.10.1 - Add GUI test diff --git a/sources b/sources index 13afe6c..76ff34b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ibus-table-1.10.1.tar.gz) = 596e2ca9ac1f174325dc35f21f66e7753f224ebac1e8ae9e56bdca3b2c649a66274b4d94ca4c4e8166e5d24b974aaefa6a0dc2696ae647fb782f212098225f26 +SHA512 (ibus-table-1.11.0.tar.gz) = 269d7516d2580436d3bcdef2c77717c8b21c277dae0f55da3703e2bb3f26669dac29ddf3d4291854b205b5b2f5ab54d1894b32d541d084b03cb6cbb870e6b256