ibus-sunpinyin/ibus-sunpinyin.spec

86 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: ibus-sunpinyin
Version: 2.0.3
Release: 1
Summary: Sunpinyin module for ibus
Group: System/I18n/Chinese
License: GPLv2 and CDDL dual-licenses
Url: http://code.google.com/p/sunpinyin/
%if 0%{?suse_version}
BuildRequires: ibus-devel, sqlite3-devel, python >= 2.6, intltool, gcc-c++, scons >= 1.2.0
%else
BuildRequires: ibus-devel, sqlite-devel, python >= 2.6, intltool, gcc-c++, scons >= 1.2.0
%endif
BuildRequires: libsunpinyin3-devel, libsunpinyin3
Requires: libsunpinyin3, ibus
Source: http://sunpinyin.googlecode.com/files/ibus-sunpinyin-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
%description
SunPinyin
===
SunPinyin is an SLM (Statistical Language Model) based input method
engine. To model the Chinese language, it use a backoff bigram and
trigram language model.
Currently, SunPinyin 2.0 is available on IBus.
ibus-sunpinyin
===
ibus-sunpinyin is a wrapper around SunPinyin which enables user to use
SunPinyin with IBus framework.
Authors:
--------
Lei Zhang <phill.zhang@sun.com>
Ervin Yan <ervin.yan@sun.com>
Yong Sun <mail@yongsun.me>
Kefu Chai <tchaikov@gmail.com>
Wei Xue <wei.xue@sun.com>
Leo Zheng <zym361@gmail.com>
chumsdock <vorbei@gmail.com>
%prep
%setup -n ibus-sunpinyin-2.0.3
%build
scons --prefix=/usr --libdir=%{_libdir}
%install
scons install --prefix=/usr --libdir=%{_libdir} --install-sandbox=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-,root,root)
#%doc ChangeLog README COPYING
%dir /usr/lib/ibus-sunpinyin
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/setup
%dir %{_datadir}/%{name}/icons
%dir %{_datadir}/ibus
%dir %{_datadir}/ibus/component
/usr/lib/ibus-sunpinyin/ibus-engine-sunpinyin
/usr/lib/ibus-sunpinyin/ibus-setup-sunpinyin
%{_datadir}/%{name}/setup/*
%{_datadir}/%{name}/icons/*
%{_datadir}/ibus/component/sunpinyin.xml
%{_datadir}/locale/zh_CN/LC_MESSAGES/ibus-sunpinyin.mo
%changelog