File ibus-chewing.spec of Package ibus-chewing

#
# spec file for package ibus-chewing
#
# Copyright (c) 2014 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/
#


Name:           ibus-chewing
Version:        1.4.10.1
Release:        0
Summary:        The Chewing engine for IBus input platform
License:        GPL-2.0+
Group:          System/I18n/Chinese
Url:            http://code.google.com/p/ibus/
Source0:        https://github.com/definite/ibus-chewing/releases/download/%{version}/%{name}-%{version}-Source.tar.gz
# PATCH-FIX-UPSTREAM ibus-chewing-fix-license.patch fcrozat@suse.com -- fix incorrect license on header
Patch0:         ibus-chewing-fix-license.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  gettext-devel
BuildRequires:  gob2
BuildRequires:  gtk2-devel
BuildRequires:  ibus-devel >= 1.2
BuildRequires:  libchewing-devel >= 0.3.2
BuildRequires:  pkg-config
BuildRequires:  xorg-x11-devel
Requires:       gconf2
Requires:       ibus >= 1.2
Requires:       libchewing >= 0.3.2
Provides:       locale(zh_TW)

%gconf_schemas_prereq 

%description
IBus-chewing is an IBus front-end of Chewing, an intelligent Chinese input
method for Zhuyin (BoPoMoFo) users.
It supports various Zhuyin keyboard layout, such as standard (DaChen),
IBM, Gin-Yeah, Eten, Eten 26, Hsu, Dvorak, Dvorak-Hsu, and DaChen26.

Chewing also support toned Hanyu pinyin input.

%description -l zh_TW
IBus-chewing 是新酷音輸入法的IBus前端。
新酷音輸入法是個智慧型注音輸入法,支援多種鍵盤布局,諸如:
標準注音鍵盤、IBM、精業、倚天、倚天26鍵、許氏、Dvorak、Dvorak許氏
及大千26鍵。

本輸入法也同時支援帶調漢語拼音輸入。

%prep
%setup -q -n %{name}-%{version}-Source
%patch0 -p1

%build
cmake -DCMAKE_INSTALL_PREFIX='/usr' \
      -DLIBEXEC_DIR='%{_libdir}/ibus' \
      -DSYSCONF_INSTALL_DIR='/etc'
make 
make translations

%install
mkdir -p $RPM_BUILD_ROOT/etc/gconf/schemas
%{?make_install}%{!?make_install:%makeinstall}
rm -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%find_lang %{name}

%find_gconf_schemas   
cat %{name}.schemas_list %{name}.lang >%{name}.lst 

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lst
%defattr(-,root,root,-)
%doc AUTHORS README ChangeLog COPYING
%{_libdir}/ibus
%{_datadir}/%{name}
%{_datadir}/ibus

%changelog
openSUSE Build Service is sponsored by