abcd9f
Name:       ibus-table
abcd9f
Version:    1.5.0
dc70ea
Release:    5%{?dist}
abcd9f
Summary:    The Table engine for IBus platform
abcd9f
License:    LGPLv2+
abcd9f
Group:      System Environment/Libraries
abcd9f
URL:        http://code.google.com/p/ibus/
abcd9f
Source0:    http://mfabian.fedorapeople.org/ibus-table/%{name}-%{version}.tar.gz
abcd9f
Patch1:     ibus-table-1.3.9.20110827-uppercase-umlauts.patch
abcd9f
Patch2:     0001-Changes-in-dconf-values-now-get-applied-immediately.patch
abcd9f
Patch3:     0001-Make-comments-about-_chinese_mode-clearer.patch
abcd9f
Patch4:     0002-Improve-detection-of-simplified-and-traditional-Chin.patch
abcd9f
Patch5:     0003-add-engine-chinese_variants.py-to-engine-Makefile.am.patch
abcd9f
Patch6:     add-engine-chinese_variants.py-to-engine-Makefile.in.patch
abcd9f
Patch7:     0001-Fix-typo-thanks-to-Mathieu-Bridon.patch
abcd9f
Patch8:     0002-Add-auto_select-functionality-to-select-the-first-ph.patch
abcd9f
Patch9:     0003-Update-cmode-pproperty-in-chinese-mode-only.patch
abcd9f
Patch10:    0004-Fall-back-to-auto_select-False-if-neither-dconf-nor-.patch
abcd9f
Patch11:    0005-Preedit-needs-to-be-updated-on-page-up-and-page-down.patch
dc70ea
Patch12:    0006-Add-man-page-for-ibus-table-createdb.patch
dc70ea
Patch13:    0007-prebuilt-files-for-man-page-for-ibus-table-createdb.patch
dc70ea
Patch14:    0001-Fix-typo-in-ibus-table-createdb-man-page.patch
dc70ea
Patch15:    0002-When-tabcreatedb.py-is-called-without-any-options-pr.patch
dc70ea
Patch16:    0008-prebuilt-files-for-man-page-for-ibus-table-createdb.patch
abcd9f
abcd9f
Requires:       ibus > 1.3.0
abcd9f
BuildRequires:  ibus-devel > 1.3.0
abcd9f
abcd9f
Obsoletes:   ibus-table-additional < 1.2.0.20100111-5
abcd9f
abcd9f
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
abcd9f
BuildArch:  noarch
abcd9f
abcd9f
%description
abcd9f
The Table engine for IBus platform.
abcd9f
abcd9f
%package -n %{name}-devel
abcd9f
Summary:        Development files for %{name}
abcd9f
Group:          Development/Libraries
abcd9f
Requires:       %{name} = %{version}-%{release}, pkgconfig
abcd9f
abcd9f
%description -n %{name}-devel
abcd9f
Development files for %{name}.
abcd9f
abcd9f
%prep
abcd9f
%setup -q
abcd9f
%patch1 -p1 -b .uppercase-umlauts
abcd9f
%patch2 -p1 -b .apply-dconf-changes
abcd9f
%patch3 -p1 -b .make-comments-about-chinese-mode-clearer
abcd9f
%patch4 -p1 -b .improve-detection-of-simplified-and-traditional-chinese
abcd9f
%patch5 -p1 -b .fix-makefile-am
abcd9f
%patch6 -p1 -b .fix-makefile-in
abcd9f
%patch7 -p1 -b .fix-typo
abcd9f
%patch8 -p1 -b .add-auto-select
abcd9f
%patch9 -p1 -b .update-cmode-in-chinese-mode-only
abcd9f
%patch10 -p1 -b .fall-back-to-auto-select-false-by-default
abcd9f
%patch11 -p1 -b .preedit-needs-to-be-updated-when-paging
dc70ea
%patch12 -p1 -b .Add-man-page-for-ibus-table-createdb
dc70ea
%patch13 -p1 -b .prebuilt-files-for-man-page-for-ibus-table-createdb
dc70ea
%patch14 -p1 -b .Fix-typo-in-ibus-table-createdb-man-page
dc70ea
%patch15 -p1 -b .When-tabcreatedb.py-is-called-without-any-options-pr
dc70ea
%patch16 -p1 -b .prebuilt-files-for-man-page-for-ibus-table-createdb
abcd9f
abcd9f
%build
abcd9f
%configure --disable-static --disable-additional
abcd9f
%__make %{?_smp_mflags}
abcd9f
abcd9f
%install
abcd9f
%__rm -rf $RPM_BUILD_ROOT
abcd9f
%__make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install pkgconfigdir=%{_datadir}/pkgconfig
abcd9f
abcd9f
%find_lang %{name}
abcd9f
abcd9f
%clean
abcd9f
%__rm -rf $RPM_BUILD_ROOT
abcd9f
abcd9f
abcd9f
%files -f %{name}.lang
abcd9f
%defattr(-,root,root,-)
abcd9f
%doc AUTHORS COPYING README
abcd9f
%dir %{_datadir}/%{name}
abcd9f
%dir %{_datadir}/%{name}/engine
abcd9f
%dir %{_datadir}/%{name}/tables
abcd9f
%dir %{_datadir}/%{name}/icons
abcd9f
%dir %{_datadir}/%{name}/data
abcd9f
%{_datadir}/ibus/component/table.xml
abcd9f
%{_datadir}/%{name}/icons/%{name}.svg
abcd9f
%{_datadir}/%{name}/icons/full-letter.svg
abcd9f
%{_datadir}/%{name}/icons/full-punct.svg
abcd9f
%{_datadir}/%{name}/icons/half-letter.svg
abcd9f
%{_datadir}/%{name}/icons/half-punct.svg
abcd9f
%{_datadir}/%{name}/icons/onechar.svg
abcd9f
%{_datadir}/%{name}/icons/phrase.svg
abcd9f
%{_datadir}/%{name}/icons/py-mode.svg
abcd9f
%{_datadir}/%{name}/icons/tab-mode.svg
abcd9f
%{_datadir}/%{name}/icons/chinese.svg
abcd9f
%{_datadir}/%{name}/icons/acommit.svg
abcd9f
%{_datadir}/%{name}/icons/english.svg
abcd9f
%{_datadir}/%{name}/icons/ncommit.svg
abcd9f
%{_datadir}/%{name}/icons/cb-mode.svg
abcd9f
%{_datadir}/%{name}/icons/sc-mode.svg
abcd9f
%{_datadir}/%{name}/icons/scb-mode.svg
abcd9f
%{_datadir}/%{name}/icons/tc-mode.svg
abcd9f
%{_datadir}/%{name}/icons/tcb-mode.svg
abcd9f
%{_datadir}/%{name}/data/pinyin_table.txt.bz2
abcd9f
%{_datadir}/%{name}/engine/chinese_variants.py
abcd9f
%{_datadir}/%{name}/engine/chinese_variants.pyc
abcd9f
%{_datadir}/%{name}/engine/chinese_variants.pyo
abcd9f
%{_datadir}/%{name}/engine/factory.py
abcd9f
%{_datadir}/%{name}/engine/factory.pyc
abcd9f
%{_datadir}/%{name}/engine/factory.pyo
abcd9f
%{_datadir}/%{name}/engine/main.py
abcd9f
%{_datadir}/%{name}/engine/main.pyc
abcd9f
%{_datadir}/%{name}/engine/main.pyo
abcd9f
%{_datadir}/%{name}/engine/tabcreatedb.py
abcd9f
%{_datadir}/%{name}/engine/tabcreatedb.pyc
abcd9f
%{_datadir}/%{name}/engine/tabcreatedb.pyo
abcd9f
%{_datadir}/%{name}/engine/tabdict.py
abcd9f
%{_datadir}/%{name}/engine/tabdict.pyc
abcd9f
%{_datadir}/%{name}/engine/tabdict.pyo
abcd9f
%{_datadir}/%{name}/engine/table.py
abcd9f
%{_datadir}/%{name}/engine/table.pyc
abcd9f
%{_datadir}/%{name}/engine/table.pyo
abcd9f
%{_datadir}/%{name}/engine/tabsqlitedb.py
abcd9f
%{_datadir}/%{name}/engine/tabsqlitedb.pyc
abcd9f
%{_datadir}/%{name}/engine/tabsqlitedb.pyo
abcd9f
%{_datadir}/%{name}/tables/template.txt
abcd9f
%{_bindir}/%{name}-createdb
abcd9f
%{_libexecdir}/ibus-engine-table
dc70ea
%{_mandir}/man1/*
abcd9f
abcd9f
%files devel
abcd9f
%defattr(-, root, root, -)
abcd9f
%{_datadir}/pkgconfig/%{name}.pc
abcd9f
abcd9f
%changelog
dc70ea
* Fri Jan 24 2014 Mike FABIAN <mfabian@redhat.com> - 1.5.0-5
dc70ea
- Resolves: rhbz#1049760 - [ALL LANG] Traceback produced when run ibus-table-createdb from terminal.
dc70ea
- When tabcreatedb.py is called without any options, print a usage message. Do not just show a cryptic backtrace.
dc70ea
dc70ea
* Tue Jan 14 2014 Mike FABIAN <mfabian@redhat.com> - 1.5.0-4
dc70ea
- Resolves: rhbz#948454 - Man page scan results for ibus-table
dc70ea
dc70ea
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.5.0-3
dc70ea
- Mass rebuild 2013-12-27
dc70ea
abcd9f
* Thu Feb 14 2013 Mike FABIAN <mfabian@redhat.com> - 1.5.0-2
abcd9f
- Resolves: #911487 - Non-Chinese tables from the ibus-table-other package do not work
abcd9f
- Add auto_select functionality to select the first phrase when typing.
abcd9f
  Useful for Cyrillic transliteration
abcd9f
- Update cmode property in chinese mode only
abcd9f
- Fall back to auto_select = False if neither dconf nor the table
abcd9f
  have a value for auto_select
abcd9f
- Preedit needs to be updated on page-up and page-down
abcd9f
abcd9f
* Mon Jan 28 2013 Mike FABIAN <mfabian@redhat.com> - 1.5.0-1
abcd9f
- update to latest upstream 1.5.0  from Caius ‘kaio’ Chance’s repository
abcd9f
- add patches for better simplified/traditional Chinese detection
abcd9f
- Resolves: #857967 - simplified/traditional Chinese detection in ibus-table does not work well
abcd9f
abcd9f
* Thu Jan 10 2013 Mike FABIAN <mfabian@redhat.com> - 1.4.99.20130110-1
abcd9f
- Resolves: #513901 ibus-table setup does not store config settings
abcd9f
- update to latest upstream 1.4.99.20130110 from Caius ‘kaio’ Chance’s repository, 1.5.0 branch
abcd9f
- When detecting the Chinese mode from the environment, also check LC_ALL
abcd9f
- Fix typo in self._chinese_mode variable (The typo broke the SC/TC property)
abcd9f
- Make cursor in lookup table always visible (became invisible after the port to GObjectIntrospection)
abcd9f
- apply changes in values of dconf keys immediately
abcd9f
abcd9f
* Tue Jan 08 2013 Mike FABIAN <mfabian@redhat.com> - 1.4.99.20130108-1
abcd9f
- update to latest upstream 1.4.99.20130108 from Caius ‘kaio’ Chance’s repository, 1.5.0 branch
abcd9f
- includes port to GObjectIntrospection now
abcd9f
abcd9f
* Thu Jan 03 2013 Mike FABIAN <mfabian@redhat.com> - 1.4.99.20130103-1
abcd9f
- update to latest upstream 1.4.99.20130103 from Caius ‘kaio’ Chance’s repository, 1.5.0 branch
abcd9f
abcd9f
* Tue Nov 13 2012 Mike FABIAN <mfabian@redhat.com> - 1.4.99.20121113-1
abcd9f
- update to latest upstream 1.4.99.20121113 from Caius ‘kaio’ Chance’s repository, using rel20121101 git tag
abcd9f
- remove ibus-table-1.4.99.20120907-improve-chinese-category-check.patch (included upstream)
abcd9f
- remove fix-ipa-x-sampa-table-and-phrases-containing-spaces.patch (included upstream)
abcd9f
- Fix marking of translatable strings for gettext
abcd9f
- update zh_??.po files
abcd9f
- Add German translation
abcd9f
- Do not fail if the ~/.ibus/byo-tables/ directory does not exist
abcd9f
abcd9f
* Thu Sep 13 2012 Mike FABIAN <mfabian@redhat.com> - 1.4.99.20120907-3
abcd9f
- Resolves: #856903
abcd9f
- Fix ipa-x-sampa table and phrases containing spaces in emoji-table
abcd9f
  Currently there is a regular expression which filters out several
abcd9f
  lines defining valid phrases. The emoji-table for example has phrases
abcd9f
  containing spaces which are currently filtered out and the ipa-x-sampa
abcd9f
  table has trailing comments which are filtered out as well.
abcd9f
abcd9f
* Tue Sep 11 2012 Mike FABIAN <mfabian@redhat.com> - 1.4.99.20120907-2
abcd9f
- Resolves: #856320
abcd9f
- Improve check whether a phrase is simplified or traditional Chinese
abcd9f
  The improvement is to ignore all non-Han characters when
abcd9f
  doing the check.
abcd9f
  This is to avoid classifying a simplified Chinese string as
abcd9f
  traditional just because it happens to include some non-Chinese
abcd9f
  characters, for example box drawing characters, which cannot be
abcd9f
  converted to gb2312 but happen to be convertible to big5hkscs.
abcd9f
  This fixes the problem in the emoji-table input method that most
abcd9f
  phrases cannot be input at all.
abcd9f
abcd9f
* Fri Sep 07 2012 Mike FABIAN <mfabian@redhat.com> - 1.4.99.20120907-1
abcd9f
- Relates: #855250
abcd9f
- see comment#1 in #855250
abcd9f
- update to latest upstream 1.4.99.20120907 from Caius 'kaio' Chance's repository
abcd9f
- remove ibus-table-1.3.9.20110827-add-some-keys-for-translit.patch (included upstream)
abcd9f
- remove ibus-table-1.3.9.20110827-enable-non-ascii.patch (included upstream)
abcd9f
abcd9f
* Wed Sep 05 2012 Mike FABIAN <mfabian@redhat.com> - 1.3.9.20110827-4
abcd9f
- Resolves: #845798
abcd9f
- add ibus-table-1.3.9.20110827-add-some-keys-for-translit.patch (from Yuwei YU, upstream)
abcd9f
- add ibus-table-1.3.9.20110827-enable-non-ascii.patch  (from Yuwei YU, upstream)
abcd9f
- add ibus-table-1.3.9.20110827-uppercase-umlauts.patch to allow uppercase as well in translit
abcd9f
abcd9f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9.20110827-3
abcd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
abcd9f
abcd9f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9.20110827-2
abcd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
abcd9f
abcd9f
* Wed Aug 31 2011 Caius 'kaio' Chance - 1.3.9.20110827-1
abcd9f
- Updated to upstream. 
abcd9f
abcd9f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0.20100621-5
abcd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
abcd9f
abcd9f
* Fri Nov 19 2010 Ding-Yi Chen <dchen@redhat.com> - 1.3.0.20100621-4
abcd9f
- Rebuild for ibus-1.4
abcd9f
abcd9f
* Wed Sep  1 2010 Jens Petersen <petersen@redhat.com> - 1.3.0.20100621-3
abcd9f
- remove the redundant post and postun scripts (#625330)
abcd9f
abcd9f
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.0.20100621-2
abcd9f
- recompiling .py files against Python 2.7 (rhbz#623320)
abcd9f
abcd9f
* Mon Jun 21 2010 Caius Chance <cchance@redhat.com> - 1.2.0.20100621-1
abcd9f
- Updated from upstream which tarball was rebuilt with IBus 1.3.
abcd9f
abcd9f
* Wed Mar 10 2010 Caius 'kaio' Chance <cchance at redhat.com> - 1.2.0.20100111-7
abcd9f
- Add template.txt in files.
abcd9f
abcd9f
* Wed Mar 10 2010 Caius 'kaio' Chance <cchance at redhat.com> - 1.2.0.20100111-6
abcd9f
- Disable -additional.
abcd9f
abcd9f
* Wed Mar 10 2010 Caius 'kaio' Chance <cchance at redhat.com> - 1.2.0.20100111-5
abcd9f
- Remove -additional for obsoletion by ibus-table-latin and ibus-table-code.
abcd9f
abcd9f
* Mon Feb 15 2010 Caius 'kaio' Chance <cchance at redhat.com> - 1.2.0.20100111-4.fc13
abcd9f
- Fixed latex.svg location.
abcd9f
abcd9f
* Fri Jan 29 2010 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20100111-3.fc13
abcd9f
- Split .pc to -devel subpackage.
abcd9f
abcd9f
* Thu Jan 14 2010 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20100111-2.fc13
abcd9f
- Temporary keep files of additional available in ibus-table until 
abcd9f
  ibus-table-{code,latin} packages are ready in repository.
abcd9f
abcd9f
* Mon Jan 11 2010 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20100111-1.fc13
abcd9f
- Updated source from upstream.
abcd9f
- Migreate tables from ibus-table-additional to ibus-table-latin and ibus-table-code.
abcd9f
abcd9f
* Wed Jan 06 2010 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090912-3.fc13
abcd9f
- Apply parsing equal sign patch.
abcd9f
abcd9f
* Wed Nov 11 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090912-2.fc13
abcd9f
- Fix crashing caused by speedmeter.
abcd9f
abcd9f
* Fri Sep 04 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090912-1.fc12
abcd9f
- Upgraded to upstream source.
abcd9f
abcd9f
* Fri Sep 04 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090904-1.fc12
abcd9f
- Updated source with additional tables separated.
abcd9f
abcd9f
* Thu Sep 03 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090902-2.fc12
abcd9f
- Rebuilt.
abcd9f
abcd9f
* Wed Sep 02 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090902-1.fc12
abcd9f
- Updated source.
abcd9f
abcd9f
* Tue Aug 04 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090804-1.fc12
abcd9f
- Cleaned up unused dcommit contents.
abcd9f
abcd9f
* Tue Aug 03 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090803-1.fc12
abcd9f
- Updated to upstream.
abcd9f
abcd9f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.20090625-3
abcd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
abcd9f
abcd9f
* Wed Jul 01 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090625-2.fc12
abcd9f
- Rebuilt.
abcd9f
abcd9f
* Wed Jul 01 2009 Caius 'kaio' Chance <k at kaio.me> - 1.2.0.20090625-1.fc12
abcd9f
- Updated source from upstream, which released for IBus 1.2 and so on.
abcd9f
abcd9f
* Wed May 27 2009 Caius 'kaio' Chance <cchance@redhat.com> - 1.1.0.20090527-1.fc12
abcd9f
- Updated source from upstream, which with candidate order fix.
abcd9f
abcd9f
* Mon Mar 16 2009 Caius Chance <cchance@redhat.com> - 1.1.0.20090316-1.fc11
abcd9f
- Resolves: rhbz#490396
abcd9f
- Updated source tarball.
abcd9f
- Disabled speedmeter until config option is implemented.
abcd9f
abcd9f
* Fri Mar  6 2009 Jens Petersen <petersen@redhat.com> - 1.1.0.20090220-5
abcd9f
- make pkgconfig noarch with ibus-table-pkgconfig-noarch.patch
abcd9f
- fix license field: actually LGPL
abcd9f
- drop gettext-devel BR
abcd9f
- require ibus > 1.1.0
abcd9f
abcd9f
* Mon Mar 02 2009 Caius Chance <cchance@redhat.com> - 1.1.0.20090220-4.fc11
abcd9f
- Rebuilt.
abcd9f
abcd9f
* Mon Mar 02 2009 Caius Chance <cchance@redhat.com> - 1.1.0.20090220-3.fc11
abcd9f
- Rebuilt.
abcd9f
abcd9f
* Mon Mar 02 2009 Caius Chance <cchance@redhat.com> - 1.1.0.20090220-2.fc11
abcd9f
- Rebuilt.
abcd9f
abcd9f
* Mon Mar 02 2009 Caius Chance <cchance@redhat.com> - 1.1.0.20090220-1.fc11
abcd9f
- Resolves: rhbz#484650
abcd9f
- Updated to latest upstream release.
abcd9f
- Splitted chinese input methods into modules.
abcd9f
abcd9f
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1.20081014-5
abcd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
abcd9f
abcd9f
* Wed Feb 04 2009 Caius Chance <cchance@redhat.com> - 0.1.1.20081014-4
abcd9f
- Resolves: rhbz#466430 rhbz#466844
abcd9f
- Added wildcard features.
abcd9f
- Added preedit clearance on refocus.
abcd9f
abcd9f
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.1.20081014-3
abcd9f
- Rebuild for Python 2.6
abcd9f
abcd9f
* Mon Dec 1 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20081014-2
abcd9f
- Modified spec file to own all directories created by ibus-table.
abcd9f
abcd9f
* Fri Oct 14 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20081014-1
abcd9f
- Update to 0.1.1.20081014.
abcd9f
abcd9f
* Mon Sep 01 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080901-1
abcd9f
- Update to 0.1.1.20080901.
abcd9f
abcd9f
* Wed Aug 19 2008 Yu Yuwei <acevery@gmail.com> - 0.1.1.20080829-1
abcd9f
- The first version.