-
Notifications
You must be signed in to change notification settings - Fork 103
/
ibus-libpinyin.spec.in
65 lines (53 loc) · 1.6 KB
/
ibus-libpinyin.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
54
55
56
57
58
59
60
61
62
63
64
65
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: Intelligent Pinyin engine based on libpinyin for IBus
License: GPLv2+
Group: System Environment/Libraries
URL: https://github.com/libpinyin/ibus-libpinyin
Source0: http://downloads.sourceforge.net/libpinyin/ibus-libpinyin/%{name}-%{version}.tar.gz
BuildRequires: gettext-devel
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: sqlite-devel
BuildRequires: libuuid-devel
BuildRequires: opencc-devel
BuildRequires: lua-devel
BuildRequires: ibus-devel >= 1.3
BuildRequires: libpinyin-devel > 0.6.90
# Requires(post): sqlite
Requires: ibus >= 1.2.0
Requires: libpinyin-data > 0.6.90
%description
It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo) input method based on libpinyin for IBus.
%prep
%setup -q
%build
%configure --disable-static \
--enable-opencc \
--disable-boost
# 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
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_libexecdir}/ibus-engine-libpinyin
%{_libexecdir}/ibus-setup-libpinyin
%{_datadir}/@PACKAGE@/phrases.txt
%{_datadir}/@PACKAGE@/icons
%{_datadir}/@PACKAGE@/setup
%{_datadir}/@PACKAGE@/base.lua
%{_datadir}/@PACKAGE@/db/english.db
%dir %{_datadir}/@PACKAGE@
%dir %{_datadir}/@PACKAGE@/db
%{_datadir}/ibus/component/*
%changelog
* Fri Jun 01 2012 Peng Wu <[email protected]> - @VERSION@-1
- The first version.