File scim-anthy.spec of Package scim-anthy

#
# spec file for package scim-anthy (Version 1.2.7)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#

# norootforbuild


Name:           scim-anthy
BuildRequires:  anthy-devel gcc-c++ gtk2-devel scim-devel update-desktop-files
Version:        1.2.7
Release:        1
License:        LGPL v2.1 or later
Group:          System/I18n/Japanese
AutoReqProv:    on
Provides:       locale(scim:ja)
Url:            http://sourceforge.jp/projects/scim-imengine/
Source0:        scim-anthy-%{version}.tar.bz2
Patch355863:    bnc355863-add-Eisu_toggle-to-default-keybindings.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Anthy Input Method Engine for SCIM

%description
Anthy Input Method Engine for SCIM



Authors:
--------
    Hiroyuki Ikezoe <poincare@ikezoe.net>
    Takuro Ashie <ashie@homa.ne.jp>

%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%define build_setup     1
%setup -q -n %{name}-%{version}
%patch355863 -p1

%build
libtoolize --force
autoreconf --force --install --verbose
%configure \
            --disable-static \
	    --enable-debug
make %{?jobs:-j %jobs}

%install
make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/anthy.{a,la}
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/anthy-imengine-setup.{a,la}
%find_lang scim-anthy

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files -f scim-anthy.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%dir %{_libdir}/scim-1.0/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/
%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/anthy.so
%if %{build_setup}
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/anthy-imengine-setup.so
%endif
%{_libdir}/scim-1.0/1.?.?/Helper/anthy-imengine-helper.*
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/scim-anthy.png
%{_datadir}/scim/icons/scim-anthy-dict.png
%{_datadir}/scim/icons/scim-anthy-swap-colors.png
%dir %{_datadir}/scim/Anthy/
%{_datadir}/scim/Anthy/*

%changelog
* Thu Jun 04 2009 tiwai@suse.de
- updated to version 1.2.7:
  * support UTF-8 as default encoding
  * translation updates, misc fixes
* Mon Feb 11 2008 mfabian@suse.de
- bnc#355863, comment #29-#31: add the keysymbol Eisu_toggle to
  the default ON/OFF keys in the default keybinding theme.
* Wed Nov 07 2007 mfabian@suse.de
- add missing includes to fix build with gcc 4.3.0.
* Fri Aug 03 2007 mfabian@suse.de
- update to 1.2.4:
  • Fixed a bug that a character which is possible to become a
  voiced consonant is gone after inputing "Ro" has been fixed.
  • Fixed a name collision issue of ScimColorButton. Now you can
  use scim-anthy with scim-chewing, maybe.
  • Fix install path of helper module.
  • Distinguish two backslash key of jp106 keybord. It
  requires scim-1.4.6.
  Please clear ~/.scim/config after install scim-1.4.6.
  • Some minor fixes.
- remove fix-build-with-scim-1.4.5.patch (included upstream).
* Thu Apr 26 2007 mfabian@suse.de
- update to 1.2.2.
  • Fix a bug that a wrong partial string is converted on direct
  kana conversion after commiting a piece of segments.
* Sat Oct 28 2006 meissner@suse.de
- added missing \ for optflags.
* Thu Oct 12 2006 mfabian@suse.de
- update to 1.2.1.
  • Fix a problem that the romaji pending state aren't restored on
  pressing a backspace or moving the caret has been fixed.
  (Thanks Ryo Dairiki and Akira TAGOH)
  • Add a dictionary encoding preference into setup UI.
  • Revert the default dictionary encoding preference to EUC-JP.
  • Other minor fixes (Thanks Sutou).
- fix to build with scim 1.4.5.
* Fri Sep 01 2006 mfabian@suse.de
- update to 1.2.0.
  • Add pseudo ASCII input mode. It enables users to enter ASCII
  letters during Japanese mode. Thanks Akira TAGOH for your
  patch.
  • Enable reconversion feature on non-GTK+ application (It's an
  ad-hoc solition). Thanks Takashi Nakamoto.
  • Enable to choose behavior on focus out.
  • Add predict key into some key bindings themes.
  Thanks Ikuya Awashiro.
  • Try EUC-JP-MS first when convert characters from Anthy to
  Unicode.
  • The bug that direct select keys doesn't work during
  predicting has been fixed. Thanks TAGOH, UTUMI, Bando for
  your report.
  • Fix some wrong entries in Romaji tables. Thanks Jun Oizumi.
  • Fix a bug that commited clauses aren't cleared when the
  learning preference is disabled. Thanks Jun Oizumi.
- remove patch commit-when-focus-out.patch. According to the
  news above the behaviour on focus out is configurable now.
  One can choose between "commit" and "clear" and "commit" is the
  default. Nice.
* Fri Jul 07 2006 mfabian@suse.de
- update to 1.0.0.
  + Add symbol style preference (Thanks Akira TAGOH).
  + Don't activate direct select key when the lookup window isn't
  shown (Thanks Akira TAGOH).
  + Add SKIM support (Provide as external package).
  + Add prediction key bindings to ATOK like key bindings theme.
  + Ensure to through space key event to enable application's
  specific feature like Mozilla's scrolling feature (Thanks
  reporting > Yukiko Bando).
  + Fix double commiting bug on Wide Latin mode.
  (Thanks Ryo Dairiki and UTUMI Hirosi)
* Thu Feb 23 2006 mfabian@suse.de
- add "Provides: locale(scim:ja)"
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 mfabian@suse.de
- update to 0.8.0.
* Thu Sep 01 2005 mfabian@suse.de
- Bugzilla #114736: use patch extracted from upstream changes
  to fix the keybinding problem and plug a memory leak.
* Wed Aug 03 2005 mfabian@suse.de
- update to 0.6.0. Changes according to the NEWS file:
  + Method of loading romaji table has been changed.
  Old user settings will be cleared when you change it by scim-setup.
  + Add preedit color preference.
  + Add some prefereneces for lookup window.
  + Add AZIK extended romaji table.
  + Enable to customize kana typing table.
  + Add a kana table for 101 keyborad.
  + Support kana key symbols of X Window System.
  But this feature has some limitations:
      - You can't switch to X's kana typing mode from scim-anthy.
  You should customize /etc/X11/xorg.conf to switch it.
  See http://ikumi.revery.net/cmp/kanainputonx.htm for more details.
      - Typing method indicator on the panel can't indicate X's kana lock state.
  + Experimental NICOLA support.
  + Other minor fixes.
  + Fix a wrong key binding in the Microsoft IME like key bindings.
  + The bug that preferences of period, comma and width of numbers aren't
  applied correctly has been fixed.
* Mon Jul 04 2005 mfabian@suse.de
- update to 0.5.0.
* Tue Jun 07 2005 mfabian@suse.de
- adapt the patch to commit the preedit string when switching of
  the input method and when moving the focus to a different window
  to the new version.
* Fri Jun 03 2005 mfabian@suse.de
- update to 0.4.2.
* Tue Feb 15 2005 mfabian@suse.de
- update to 0.3.1.
* Mon Dec 13 2004 mfabian@suse.de
- Bugzilla #47019: apply patch provided by Zhe Su <zsu@novell.com>
  to commit the preedit string when switching of the input method
  and when moving the focus to a different window.
* Thu Dec 09 2004 mfabian@suse.de
- new package: scim-anthy, version 0.2.0.
openSUSE Build Service is sponsored by