1 |
%define snapdate 20090518 |
2 |
|
3 |
Name: scim-sunpinyin |
4 |
Summary: SLM (Statistical Language Model) based IME |
5 |
Version: 1.0 |
6 |
Release: %mkrel -c %snapdate 1 |
7 |
Group: System/Internationalization |
8 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
9 |
License: CDDL and LGPLv2+ |
10 |
URL: http://www.opensolaris.org/os/project/input-method/ |
11 |
# fwang: the tarball is generated by: |
12 |
# hg clone ssh://anon@hg.opensolaris.org/hg/nv-g11n/inputmethod |
13 |
# cd inputmethod |
14 |
# hg archive -t tbz2 scim-sunpinyin.tar.bz2 |
15 |
Source0: %{name}.tar.bz2 |
16 |
Patch0: scim-sunpinyin-linkage.patch |
17 |
Patch1: scim-sunpinyin-str-fmt.patch |
18 |
Requires: scim-client = %{scim_api} |
19 |
BuildRequires: scim-devel >= 1.4.7 |
20 |
|
21 |
%description |
22 |
SunPinyin (developed by Sun Asian G11N Center, shipped since Solaris 10, |
23 |
and opensource'd on OS.o) is a SLM (Statistical Language Model) based IME. |
24 |
|
25 |
This packagae contains SunPinyin's scim wrapper. |
26 |
|
27 |
%prep |
28 |
%setup -q -n %name/sunpinyin/ime |
29 |
%patch0 -p0 |
30 |
%patch1 -p0 |
31 |
|
32 |
%build |
33 |
./autogen.sh |
34 |
%configure2_5x --disable-cle --enable-scim |
35 |
%make |
36 |
|
37 |
%install |
38 |
rm -rf $RPM_BUILD_ROOT |
39 |
%makeinstall_std |
40 |
|
41 |
# remove unneeded files |
42 |
rm -f %{buildroot}/%scim_plugins_dir/*/*.{a,la} |
43 |
|
44 |
%find_lang sunpinyin |
45 |
|
46 |
%clean |
47 |
rm -rf $RPM_BUILD_ROOT |
48 |
|
49 |
%files -f sunpinyin.lang |
50 |
%defattr(-,root,root) |
51 |
%doc AUTHORS ChangeLog README |
52 |
%{scim_plugins_dir}/*/*.so |
53 |
%{_datadir}/scim/icons/* |
54 |
%{_datadir}/scim/sunpinyin |
55 |
|
56 |
|