diff --git a/ibus-table-1.8.3.tar.gz b/ibus-table-1.8.3.tar.gz deleted file mode 100644 index 6cd01eb..0000000 --- a/ibus-table-1.8.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:152723f65ad4f0544fee129938404c6cc0619a1da25f59f81a733da8d8c2dfc4 -size 523413 diff --git a/ibus-table-1.8.5.tar.gz b/ibus-table-1.8.5.tar.gz new file mode 100644 index 0000000..92bfb13 --- /dev/null +++ b/ibus-table-1.8.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a63b8dad3f98bef3bb321d6a22742286b1652c9da11a1ba738a89d4a53d78a19 +size 527157 diff --git a/ibus-table-python3.patch b/ibus-table-python3.patch new file mode 100644 index 0000000..dc5309d --- /dev/null +++ b/ibus-table-python3.patch @@ -0,0 +1,22 @@ +Index: ibus-table-1.8.5/engine/tabcreatedb.py +=================================================================== +--- ibus-table-1.8.5.orig/engine/tabcreatedb.py ++++ ibus-table-1.8.5/engine/tabcreatedb.py +@@ -358,7 +358,7 @@ def main (): + if _bz2p: + extra_s = bz2.BZ2File ( opts.extra, "r" ) + else: +- extra_s = file ( opts.extra, 'r' ) ++ extra_s = open ( opts.extra, 'r', encoding="utf-8" ) + debug_print ('\tParsing extra words source file ') + extraline = parse_extra (extra_s) + debug_print ('\tPreparing extra words lines') +@@ -375,7 +375,7 @@ def main (): + extra_phrases.update({"%s\t%s" %(x[0],x[1]):x}) + debug_print ( '\t the len of extra_phrases is: %d' % len(extra_phrases) ) + # pop duplicated keys +- for x in extra_phrases: ++ for x in list(extra_phrases): + if x in orig_phrases: + extra_phrases.pop(x) + debug_print( '\t %d extra phrases will be added' % len(extra_phrases)) diff --git a/ibus-table.changes b/ibus-table.changes index 7a0a160..c70fc35 100644 --- a/ibus-table.changes +++ b/ibus-table.changes @@ -1,5 +1,25 @@ ------------------------------------------------------------------- -Fri Jul 4 12:04:17 CST 2014 - hillwood@linuxfans.org +Sat Jul 26 16:14:01 UTC 2014 - i@marguerite.su + +- update version 1.8.5 + * Always write xml output in UTF-8 encoding, not in the encoding + of the current locale +- changes since 1.8.4 + * Tweak defaults for Chinese mode taken from the locale + * Fix prompts for array30 table and don’t use prompts in pinyin mode + * Make it possible to use select keys like F1, F2, F3 ... + * For cangjie* and quick* tables: Use big5 order if the freq from + the table is the same +- add ibus-table-python3.patch + * replace file() to open() + +------------------------------------------------------------------- +Sat Jul 26 10:37:47 UTC 2014 - hillwood@linuxfans.org + +- Switch python to python3 + +------------------------------------------------------------------- +Fri Jul 4 04:04:17 UTC 2014 - hillwood@linuxfans.org - Updateto 1.8.3, ibus-table >= 1.8.x has many improvements over 1.5.x * The database format is simplified which makes better matching @@ -34,37 +54,37 @@ Sun Dec 15 09:37:48 UTC 2013 - swyear@gmail.com but it is not installed in some system, e.g Live KDE ------------------------------------------------------------------- -Mon Jul 8 09:29:42 CST 2013 - hillwood@linuxfans.org +Mon Jul 8 01:29:42 UTC 2013 - hillwood@linuxfans.org - Update to 1.5.0 * Updated PO files. * Make page up/down keys configurable ------------------------------------------------------------------- -Wed Jan 13 18:44:31 CST 2013 - hillwood@linuxfans.org +Wed Jan 13 10:44:31 UTC 2013 - hillwood@linuxfans.org - fix bnc#803488 ------------------------------------------------------------------- -Wed Dec 19 20:26:07 CST 2012 - hillwood@linuxfans.org +Wed Dec 19 12:26:07 UTC 2012 - hillwood@linuxfans.org - Update to 1.4.99.20121112 * Updated PO files ------------------------------------------------------------------- -Wed Oct 12 22:04:03 CST 2012 - hillwood@linuxfans.org +Wed Oct 12 14:04:03 UTC 2012 - hillwood@linuxfans.org - Update to 1.4.99.20121012 * Updated PO files. * Merge remote-tracking branch 'mozbugbox/page-up-down-config' into ------------------------------------------------------------------- -Wed Oct 3 16:45:03 CST 2012 - hillwood@linuxfans.org +Wed Oct 3 08:45:03 UTC 2012 - hillwood@linuxfans.org - update to 1.4.99.20121003, upstream did not provide more information. ------------------------------------------------------------------- -Fri Sep 7 09:50:18 CST 2012 - hillwood@linuxfans.org +Fri Sep 7 01:50:18 UTC 2012 - hillwood@linuxfans.org - update to 1.4.99.20120904 Package Maintainer: Please test before include this to your distro. @@ -75,7 +95,7 @@ Wed Jul 4 13:15:33 UTC 2012 - swyear@gmail.com - Add ibus as Requires ------------------------------------------------------------------- -Mon Jun 18 18:58:17 CST 2012 - hillwood@linuxfans.org +Mon Jun 18 10:58:17 UTC 2012 - hillwood@linuxfans.org - update to 1.3.9.20110827 - better compatibility for ibus 1.4 diff --git a/ibus-table.spec b/ibus-table.spec index 0817350..d86749b 100644 --- a/ibus-table.spec +++ b/ibus-table.spec @@ -17,20 +17,24 @@ Name: ibus-table -BuildRequires: fdupes -BuildRequires: ibus-devel >= 1.4.99 -BuildRequires: pkgconfig -BuildRequires: python -Version: 1.8.3 +Version: 1.8.5 Release: 0 Summary: The Table engine for IBus platform License: LGPL-2.1+ Group: System/I18n/Chinese -Url: http://code.google.com/p/ibus/ -Source: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url: https://github.com/mike-fabian/ibus-table/ +Source: https://mfabian.fedorapeople.org/%{name}/%{name}-%{version}.tar.gz +#PATCH-FIX-UPSTREAM marguerite@opensuse.org +# replace file() to open() +Patch: ibus-table-python3.patch +BuildRequires: fdupes +BuildRequires: ibus-devel >= 1.4.99 +BuildRequires: pkg-config +BuildRequires: python3-devel Requires: ibus >= 1.4.99 -Requires: python-curses +Requires: python3 +Requires: python3-curses +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The package contains general Table engine for IBus platform. @@ -38,39 +42,42 @@ The package contains general Table engine for IBus platform. %package devel Summary: Development package for ibus-table Group: Development/Libraries/Other -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description devel This package contains the files required for the development of ibus-table. %prep %setup -q +%patch -p1 chmod -x AUTHORS COPYING README %build +export PYTHON=python3 %configure \ - --disable-static --libexecdir=%{_prefix}/%{_lib}/ibus -make %{?jobs:-j %jobs} + --disable-static \ + --libexecdir=%{_libdir}/ibus +make %{?_smp_mflags} %install -%makeinstall +make DESTDIR=%{buildroot} install %{?_smp_mflags} %find_lang %{name} -%fdupes -s $RPM_BUILD_ROOT +%fdupes %{buildroot} %files -f %{name}.lang -%defattr(-,root,root,-) +%defattr(-,root,root) %doc AUTHORS COPYING README -%{_datadir}/ibus-table -%dir %{_libdir}/ibus -%{_libdir}/ibus/ibus-* -%{_bindir}/* -%{_datadir}/ibus -%{_mandir}/man1/* +%{_bindir}/%{name}-createdb +%{_ibus_libdir}/ibus-engine-table +%{_ibus_libdir}/ibus-setup-table %{_datadir}/applications/ibus-setup-table.desktop +%{_datadir}/%{name} +%{_ibus_componentdir}/table.xml +%{_mandir}/man1/%{name}-createdb.1.gz %files devel -%defattr(-,root,root,-) -%{_libdir}/pkgconfig/*.pc +%defattr(-,root,root) +%{_libdir}/pkgconfig/%{name}.pc %changelog