ac85804
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2de4fcc
# %define require_ibus_version 1.2.0.20100111
591064e
%define require_pygtk2_version 2.15.2
3f61559
2de4fcc
%if 0%{?fedora} > 16
2de4fcc
%define have_default_layout 1
2de4fcc
%define require_ibus_version 1.4.99.20120203
2de4fcc
%else
2de4fcc
%define have_default_layout 0
2de4fcc
%define require_ibus_version 1.2.0.20100111
2de4fcc
%endif
3f61559
%if 0%{?fedora} > 15
1b976a9
%define have_bridge_hotkey 1
3f61559
%else
3f61559
%define have_bridge_hotkey 0
3f61559
%endif
3f61559
ac85804
Name:       ibus-anthy
f508c16
Version:    1.2.6
2de4fcc
Release:    5%{?dist}
ac85804
Summary:    The Anthy engine for IBus input platform
ac85804
License:    GPLv2+
ac85804
Group:      System Environment/Libraries
ac85804
URL:        http://code.google.com/p/ibus/
ac85804
Source0:    http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
f508c16
# Patch0:     ibus-anthy-HEAD.patch
1b976a9
Patch1:     ibus-anthy-xx-icon-symbol.patch
2de4fcc
Patch2:     ibus-anthy-xx-layout.patch
ac85804
ac85804
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ac85804
bbbf9d1
BuildRequires:  anthy-devel
ac85804
BuildRequires:  gettext-devel
9e42bdb
BuildRequires:  ibus 
bbbf9d1
BuildRequires:  intltool
ac85804
BuildRequires:  libtool
bbbf9d1
BuildRequires:  pkgconfig
a41ce18
BuildRequires:  python2-devel
ac85804
BuildRequires:  swig
ac85804
2b578b1
Requires:   ibus >= %{require_ibus_version}
ac85804
Requires:   anthy
591064e
Requires:   pygtk2 >= %{require_pygtk2_version}
349c0f0
Requires:   kasumi
ac85804
ac85804
%description
ac85804
The Anthy engine for IBus platform. It provides Japanese input method from
ac85804
libanthy.
ac85804
ac85804
%prep
ac85804
%setup -q
f508c16
# %patch0 -p1
1b976a9
%patch1 -p1 -b .icon-symbol
2de4fcc
%patch2 -p1 -b .layout
ac85804
ac85804
%build
3f61559
# for .icon-symbol patch
1b976a9
autoreconf
1b976a9
%configure \
2de4fcc
%if %have_default_layout
2de4fcc
  --with-layout='default' \
2de4fcc
%endif
1b976a9
%if %have_bridge_hotkey
1b976a9
  --with-hotkeys \
1b976a9
%endif
1b976a9
  --disable-static
ac85804
# make -C po update-gmo
ac85804
make %{?_smp_mflags}
ac85804
ac85804
%install
ac85804
rm -rf $RPM_BUILD_ROOT
ac85804
make DESTDIR=${RPM_BUILD_ROOT} install
ac85804
rm -f $RPM_BUILD_ROOT%{python_sitearch}/_anthy.la
ac85804
7d37803
%find_lang %{name}
ac85804
ac85804
%clean
ac85804
rm -rf $RPM_BUILD_ROOT
ac85804
7d37803
%files -f %{name}.lang
ac85804
%defattr(-,root,root,-)
ac85804
%doc AUTHORS COPYING README
ac85804
# %dir %{python_sitearch}/ibus
ac85804
%{python_sitearch}/anthy.py*
ac85804
%{python_sitearch}/_anthy.so
cb989d9
%{_libexecdir}/ibus-*-anthy
1c12f94
%{_datadir}/ibus-anthy
1c12f94
%{_datadir}/ibus/component/*
ac85804
ac85804
%changelog
2de4fcc
* Mon Feb 06 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.6-5
2de4fcc
- Added ibus-anthy-xx-layout.patch to set 'default' layout in f17.
2de4fcc
a65665d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-4
a65665d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a65665d
3f61559
* Fri Jul 29 2011 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.6-3
9e42bdb
- Added ibus-anthy-xx-icon-symbol.patch to enable the engine symbol & hotkeys.
9e42bdb
f508c16
* Mon May 16 2011 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.6-1
f508c16
- Bumped to 1.2.6
f508c16
  Fixed Bug 661943 - the latest page_size for ibus.LookupTable.
f508c16
a590a5f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-4
a590a5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a590a5f
30b4702
* Wed Dec 01 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.5-1
30b4702
- Updated to 1.2.5
ad2f16f
  Fixed Bug 652881 - SEGV when key tables are customized in new gconf.
ad2f16f
  Fixed Bug 654322 - new custom keys are not loaded.
01b2886
01b2886
* Tue Oct 26 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.4-1
4a177e3
- Updated to 1.2.4
4a177e3
- Resolves #644771 ibus-anthy [F7] key cannot work with SEGV
ed61f08
ed61f08
* Sat Oct 16 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.3-1
fb6fa6f
- Updated to 1.2.3
fb6fa6f
- Updated translations.
fb6fa6f
ed61f08
* Fri Oct 15 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.2.20101015-1
a41ce18
- Updated to 1.2.2.20101015
fb6fa6f
- Fixed Bug 643291 - ibus-anthy commit_first_segment
a41ce18
4b37ed5
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-2
4b37ed5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
4b37ed5
bbbf9d1
* Fri Apr 23 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.1-1
bbbf9d1
- Update to 1.2.1
bbbf9d1
630f975
* Mon Apr 05 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100313-3
6c03ec4
- Update icon
6c03ec4
9e6a644
* Fri Mar 12 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100313-1
9e6a644
- Update to 1.2.0.20100313
9e6a644
- Update fr.po
9e6a644
a25ded0
* Fri Mar 12 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100312.1-1
a25ded0
- Update to 1.2.0.20100312.1
a25ded0
- Minor fix for a translation
a25ded0
65d4dc6
* Fri Mar 12 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100312-1
65d4dc6
- Update to 1.2.0.20100312
65d4dc6
- Fix bug 571728 - ibus-anthy support to switch dicts
65d4dc6
- Fix bug 572412 - ibus-anthy: Segment convertion mode
65d4dc6
591064e
* Fri Mar 05 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100115-2
591064e
- Fix bug 564268 - Crash with enabled global input method
591064e
- Fix bug 570680 - Support NICOLA-F and NICOLA-A
591064e
- Fix romaji_typing_rule. #777
591064e
- Fix Shift + char with CapsLock ON in romaji mode.
591064e
- Fix chattering bug.
591064e
656e2ff
* Fri Jan 15 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100115-1
656e2ff
- Update to 1.2.0.20100115
9aaef39
- Fix bug 550001 - kasumi should be accessible from ibus-anthy
656e2ff
25da6b0
* Fri Nov 27 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20091127-1
656e2ff
- Update to 1.2.0.20091127
25da6b0
- Fix bug 520989 - ibus-anthy icon enhancement
25da6b0
- Fix bug 531696 - ibus-anthy KeyError is still reported by abrt
25da6b0
- Fix bug 536716 - ibus-anthy: Symbol type change support in ibus-anthy
25da6b0
80c7f4e
* Fri Oct 23 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090917-2
80c7f4e
- Fix bug 526881 - ibus-anthy backtrace is reported by the latest abrt
80c7f4e
2bd29c1
* Thu Sep 17 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090917-1
2bd29c1
- Update to 1.2.0.20090917
2bd29c1
- Fix bug 523642 - ibus-anthy convert_to_char_type_{for,back}ward()
2bd29c1
979d0a7
* Mon Sep 07 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090907-2
979d0a7
- Fix a build issue
979d0a7
4fd61f3
* Mon Sep 07 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090907-1
4fd61f3
- Update to 1.2.0.20090907
4fd61f3
- Fix bug 510978 - "Typing Method" configuration doesn't work
4fd61f3
- Fix bug 518373 - ibus setup tools need to set gettext textdomain dir.
4fd61f3
2fc46a1
* Thu Aug 13 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090813-1
cb989d9
- Update to 1.2.0.20090813
2fc46a1
- Fix bug 509483 - reconversion feature doesn't work
2fc46a1
- Fix bug 509485 - commit_first_segment feature doesn't work
2fc46a1
6c04d2c
* Tue Aug 04 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.2.0.20090804-1
6c04d2c
- Update to 1.2.0.20090804
6c04d2c
- Fix bug 508358 - ANTHY_HISTORY_FILE record only a single word
6c04d2c
e9fe9b4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.20090617-2
e9fe9b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e9fe9b4
2b578b1
* Mon Jun 22 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.2.0.20090617-1
2b578b1
- Update to 1.2.0.20090617
2b578b1
349c0f0
* Wed Jun 17 2009 Jens Petersen <petersen@redhat.com> - 1.1.0.20090603-2
349c0f0
- require kasumi to pull in dictionary tool
349c0f0
2b578b1
* Wed Jun 03 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090603-1
c2a60f3
- Update to 1.1.0.20090603
c2a60f3
- Implement setup ui.
c2a60f3
2b578b1
* Thu Apr 30 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090402-2
c2a60f3
- Update to upstream HEAD version
c2a60f3
- Fix bug 498250 - Cannot type zenkaku-space
c2a60f3
2b578b1
* Thu Apr 02 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090402-1
53f9b8f
- Update to 1.1.0.20090402.
53f9b8f
- Fix bug 490747 - Muhenkan (no-conversion) key does not undo conversion
53f9b8f
- Fix bug 490750 - Henkan key for candidate conversion doesn't do anything
53f9b8f
- Fix bug 490748 - Kana key doesn't do anything
53f9b8f
0ad559a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0.20090211-2
0ad559a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0ad559a
2b578b1
* Wed Feb 11 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090211-1
b293268
- Update to 1.1.0.20090211.
b293268
2b578b1
* Thu Feb 05 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090205-1
1c12f94
- Update to 1.1.0.20090205.
1c12f94
2b578b1
* Tue Feb 03 2009 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20090203-1
8fd7a23
- Update to 0.1.1.20090203.
8fd7a23
2758790
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.1.20080912-2
2758790
- Rebuild for Python 2.6
2758790
2b578b1
* Fri Sep 12 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080912-1
5781e34
- Update to 0.1.1.20080912.
5781e34
2b578b1
* Mon Sep 01 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080901-1
73f8b79
- Update to 0.1.1.20080901.
73f8b79
2b578b1
* Thu Aug 28 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080828-1
9f4e9f5
- Update to 0.1.1.20080828.
9f4e9f5
2b578b1
* Wed Aug 27 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080827-1
46523fe
- Update to 0.1.1.20080827.
46523fe
2b578b1
* Tue Aug 26 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080826-1
48abb26
- Update to 0.1.1.20080826.
48abb26
2b578b1
* Sat Aug 23 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080823-1
4eccb81
- Update to 0.1.1.20080823.
4eccb81
2b578b1
* Fri Aug 15 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080815-1
7d37803
- Update to 0.1.1.20080815.
7d37803
2b578b1
* Thu Aug 12 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080812-1
96d5a74
- Update to 0.1.1.20080812.
96d5a74
2b578b1
* Fri Aug 08 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.0.20080810-1
ac85804
- The first version.