File ibus-pinyin.spec of Package ibus-pinyin
#
# spec file for package ibus-pinyin (Version 1.3.8)
#
# Copyright (c) 2010 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-pinyin
Version: 1.3.8
Release: 1
Summary: The PinYin engine for IBus platform
License: GPLv2+
Group: System Environment/Libraries
Url: http://code.google.com/p/ibus/
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: http://scim-python.googlecode.com/files/pinyin-database-1.2.99.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildArch: noarch
BuildRequires: gcc-c++ gettext-devel libuuid-devel sqlite3-devel
BuildRequires: python >= 2.5
BuildRequires: intltool
BuildRequires: boost-devel
BuildRequires: ibus-devel
Requires: ibus
%description
PinYin engine for IBus platform. It provides a Chinese PinYin input method.
拼音输入法
%prep
%setup -q
cp %{SOURCE1} data/db/open-phrase
%build
%configure --disable-static \
--enable-db-open-phrase \
--libexecdir=%{_prefix}/%{_lib}/ibus
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
#%post
#cd /usr/share/ibus-pinyin/engine
#python -c "import pysqlitedb; db = pysqlitedb.PYSQLiteDB (); db.create_indexes ();" >/dev/null
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_datadir}/ibus-pinyin
%{_datadir}/ibus
%{_prefix}/%{_lib}/ibus/
%changelog