forked from microcai/ibus-t9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ibus-t9.spec.in
53 lines (41 loc) · 1.3 KB
/
ibus-t9.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: The PinYin engine for IBus platform
License: GPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/ibus-t9
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: http://scim-python.googlecode.com/files/pinyin-database-0.1.10.5.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext-devel sqlite-devel
Requires: ibus sqlite
%description
PinYin engine for IBus platform. It provides a Chinese PinYin input method.
%prep
%setup -q
cp %{SOURCE1} engine
%build
%configure --disable-static
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true 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
%dir %{_datadir}/ibus-pinyin
%{_datadir}/ibus-pinyin/*
%{_datadir}/ibus/engine/pinyin.engine
%{_bindir}/ibus-engine-pinyin
%{_bindir}/ibus-setup-pinyin
%changelog
* Wed Jun 25 2008 Huang Peng <[email protected]> - @VERSION@-1
- The first version.