1 |
Summary: Fcitx - Free Chinese Input Toys for X |
2 |
Name: fcitx |
3 |
Version: 4.1.2 |
4 |
Release: %mkrel 1 |
5 |
License: GPL |
6 |
Group: System/Internationalization |
7 |
URL: http://code.google.com/p/fcitx/ |
8 |
Source0: http://fcitx.googlecode.com/files/%name-%{version}_all.tar.bz2 |
9 |
BuildRequires: cmake |
10 |
BuildRequires: gettext-devel |
11 |
BuildRequires: libx11-devel |
12 |
BuildRequires: libxft-devel |
13 |
BuildRequires: xpm-devel |
14 |
BuildRequires: libxext-devel |
15 |
BuildRequires: dbus-glib-devel |
16 |
BuildRequires: gtk+2-devel |
17 |
BuildRequires: gtk+3-devel |
18 |
BuildRequires: opencc-devel |
19 |
BuildRequires: wget |
20 |
BuildRequires: cairo-devel |
21 |
BuildRequires: pango-devel |
22 |
BuildRequires: intltool |
23 |
BuildRequires: chrpath |
24 |
Requires: locales-zh |
25 |
|
26 |
%description |
27 |
%{name} is an X input method allowing people to enter simplified Chinese |
28 |
characters in X environment following XIM standard. |
29 |
|
30 |
%package devel |
31 |
Summary: fcitx development library |
32 |
Group: Development/C |
33 |
Requires: %{name} = %{version} |
34 |
|
35 |
%description devel |
36 |
fcitx development files. |
37 |
|
38 |
%package gtk |
39 |
Summary: fcitx gtk module |
40 |
Group: System/Internationalization |
41 |
Requires: %{name} = %{version} |
42 |
Requires(post): gtk+2.0 |
43 |
Requires(postun): gtk+2.0 |
44 |
|
45 |
%description gtk |
46 |
fcitx gtk module. |
47 |
|
48 |
%post gtk |
49 |
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib |
50 |
|
51 |
%postun gtk |
52 |
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib |
53 |
|
54 |
%package gtk3 |
55 |
Summary: fcitx gtk3 module |
56 |
Group: System/Internationalization |
57 |
Requires: %{name} = %{version} |
58 |
Requires(post): gtk+3.0 |
59 |
Requires(postun): gtk+3.0 |
60 |
|
61 |
%description gtk3 |
62 |
fcitx gtk module. |
63 |
|
64 |
%post gtk3 |
65 |
%{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache |
66 |
|
67 |
%postun gtk3 |
68 |
%{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache |
69 |
|
70 |
%prep |
71 |
%setup -q -n %name-%version |
72 |
|
73 |
%build |
74 |
%cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF |
75 |
%make |
76 |
|
77 |
%install |
78 |
rm -rf %{buildroot} |
79 |
%makeinstall_std -C build |
80 |
|
81 |
chrpath -d %{buildroot}%{_libdir}/*.so |
82 |
|
83 |
%find_lang %name |
84 |
|
85 |
%clean |
86 |
rm -rf %{buildroot} |
87 |
|
88 |
%files -f %name.lang |
89 |
%defattr(-,root,root) |
90 |
%attr(0644,-,-) %doc doc/*.txt doc/*.htm |
91 |
%{_bindir}/* |
92 |
%{_libdir}/*.so.* |
93 |
%{_libdir}/%{name} |
94 |
%{_datadir}/%{name} |
95 |
%{_datadir}/mime/packages/*.xml |
96 |
%{_mandir}/man1/* |
97 |
%{_datadir}/applications/*.desktop |
98 |
%{_iconsdir}/*/*/*/* |
99 |
|
100 |
%files gtk |
101 |
%defattr(-,root,root) |
102 |
%{_libdir}/gtk-2.0/*/immodules/im-fcitx.so |
103 |
|
104 |
%files gtk3 |
105 |
%defattr(-,root,root) |
106 |
%{_libdir}/gtk-3.0/*/immodules/im-fcitx.so |
107 |
|
108 |
%files devel |
109 |
%defattr(-,root,root) |
110 |
%{_libdir}/*.so |
111 |
%{_libdir}/pkgconfig/*.pc |
112 |
%{_datadir}/cmake/%{name} |
113 |
%{_includedir}/* |