Modified to decide whether to display candidate window according to layout style
[platform/core/uifw/ise-engine-sunpinyin.git] / packaging / sunpinyin.spec
1 Name:       ise-engine-sunpinyin
2 Summary:    Chinese Pinyin ISE
3 Version:    0.0.1223
4 Release:    1
5 Group:      TO_BE/FILLED_IN
6 License:    LGPLv2+
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires:  prelink
9 BuildRequires:  gettext-tools
10 BuildRequires:  pkgconfig(isf)
11 BuildRequires:  pkgconfig(glib-2.0)
12 BuildRequires:  pkgconfig(sqlite3)
13 BuildRequires:  pkgconfig(ecore)
14 Requires(post): /sbin/ldconfig
15 Requires(postun): /sbin/ldconfig
16
17
18 %description
19 Chinese Pinyin Engine ISE and it has been supported by Input Service Framework(ISF).
20
21 %package devel
22 Summary:    ise-engine-sunpinyin header files
23 Group:      Development/Libraries
24
25 %description devel
26 This package contains Chinese Pinyin engine ISE header files and static libraries for Soft ISE development.
27
28 %prep
29 %setup -q
30
31 %build
32 ./bootstrap
33 %configure  --disable-static
34 make %{?jobs:-j%jobs}
35
36 %install
37 rm -rf %{buildroot}
38 %make_install
39 execstack -c %{buildroot}%{_libdir}/scim-1.0/1.4.0/IMEngine/ise-engine-sunpinyin.so
40 mkdir -p %{buildroot}%{_datadir}/license
41 install -m0644 %{_builddir}/%{buildsubdir}/LGPL.LICENSE %{buildroot}%{_datadir}/license/%{name}
42 cat %{_builddir}/%{buildsubdir}/OPENSOLARIS.LICENSE >> %{buildroot}%{_datadir}/license/%{name}
43
44 %define __debug_install_post   \
45     %{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\
46 %{nil}
47
48 %post -p /sbin/ldconfig
49
50 %postun -p /sbin/ldconfig
51
52 %files
53 %defattr(-,root,root,-)
54 %{_datadir}/scim/icons/sunpinyin_logo.png
55 %{_datadir}/locale/*
56 %{_datadir}/scim/ise-engine-sunpinyin/*
57 %{_libdir}/scim-1.0/1.4.0/IMEngine/ise-engine-sunpinyin.so
58 %{_libdir}/libsunpinyin*.so
59 %{_datadir}/license/%{name}
60
61 %files devel
62 %defattr(-,root,root,-)
63 %{_includedir}/*
64 %{_libdir}/pkgconfig/sunpinyin-2.0.pc