diff --git a/ibus-table.changes b/ibus-table.changes index 13c9db1..4221cb9 100644 --- a/ibus-table.changes +++ b/ibus-table.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 19 12:08:01 UTC 2020 - Cliff Zhao + +- Add ibus-table_fix_other_tables_compile_error.patch: Fix ibus + other tables compile errors(bnc#1160315). + ------------------------------------------------------------------- Sat Oct 13 13:40:35 UTC 2018 - hillwood@opensuse.org diff --git a/ibus-table.spec b/ibus-table.spec index 9a83b7e..99c13be 100644 --- a/ibus-table.spec +++ b/ibus-table.spec @@ -1,7 +1,7 @@ # # spec file for package ibus-table # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 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,8 +22,10 @@ Release: 0 Summary: The Table engine for IBus platform License: LGPL-2.1-or-later Group: System/I18n/Chinese -Url: https://github.com/mike-fabian/ibus-table/ +URL: https://github.com/mike-fabian/ibus-table/ Source: https://github.com/mike-fabian/ibus-table/releases/download/%{version}/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE ibus-table_fix_other_tables_compile_error.patch bnc#1160315 qzhao@suse.com -- Fix ibus other tables compile error. +Patch0: ibus-table_fix_other_tables_compile_error.patch BuildRequires: docbook-utils-minimal BuildRequires: fdupes BuildRequires: gettext-tools @@ -49,6 +51,7 @@ This package contains the files required for the development of ibus-table. %prep %setup -q +%patch0 -p1 chmod -x AUTHORS COPYING README %build diff --git a/ibus-table_fix_other_tables_compile_error.patch b/ibus-table_fix_other_tables_compile_error.patch new file mode 100644 index 0000000..0251a88 --- /dev/null +++ b/ibus-table_fix_other_tables_compile_error.patch @@ -0,0 +1,21 @@ +diff -Nura ibus-table-1.9.21/engine/ibus_table_location.py ibus-table-1.9.21_new/engine/ibus_table_location.py +--- ibus-table-1.9.21/engine/ibus_table_location.py 2018-08-28 22:36:37.000000000 +0800 ++++ ibus-table-1.9.21_new/engine/ibus_table_location.py 2020-02-19 22:12:51.972000000 +0800 +@@ -73,7 +73,7 @@ + IBUS_TABLE_LOCATION['data_home'] = os.path.join( + IBUS_TABLE_LOCATION['data_home'], 'ibus-table') + if not os.access(IBUS_TABLE_LOCATION['data_home'], os.F_OK): +- os.makedirs(IBUS_TABLE_LOCATION['data_home']) ++ os.makedirs(IBUS_TABLE_LOCATION['data_home'], exist_ok=True) + + # $XDG_CACHE_HOME defines the base directory relative to which user + # specific non-essential data files should be stored. If +@@ -89,7 +89,7 @@ + IBUS_TABLE_LOCATION['cache_home'] = os.path.join( + IBUS_TABLE_LOCATION['cache_home'], 'ibus-table') + if not os.access(IBUS_TABLE_LOCATION['cache_home'], os.F_OK): +- os.makedirs(IBUS_TABLE_LOCATION['cache_home']) ++ os.makedirs(IBUS_TABLE_LOCATION['cache_home'], exist_ok=True) + + class __ModuleInitializer: + def __init__(self):