1 |
Summary: Fcitx - Free Chinese Input Toys for X |
2 |
Name: fcitx |
3 |
Version: 4.2.8.3 |
4 |
Release: %mkrel 5 |
5 |
License: GPLv2+ |
6 |
Group: System/Internationalization |
7 |
URL: https://fcitx-im.org |
8 |
Source0: http://download.fcitx-im.org/fcitx/%name-%{version}_dict.tar.xz |
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: pkgconfig(xkbfile) |
17 |
BuildRequires: enchant-devel |
18 |
BuildRequires: pkgconfig(iso-codes) |
19 |
BuildRequires: pkgconfig(gobject-introspection-1.0) |
20 |
BuildRequires: gtk+2-devel |
21 |
BuildRequires: gtk+3-devel |
22 |
BuildRequires: opencc-devel |
23 |
BuildRequires: wget |
24 |
BuildRequires: cairo-devel |
25 |
BuildRequires: pango-devel |
26 |
BuildRequires: intltool |
27 |
BuildRequires: icu-devel |
28 |
BuildRequires: chrpath |
29 |
BuildRequires: desktop-file-utils |
30 |
BuildRequires: qt4-devel |
31 |
Requires: locales-zh |
32 |
|
33 |
%description |
34 |
%{name} is an X input method allowing people to enter simplified Chinese |
35 |
characters in X environment following XIM standard. |
36 |
|
37 |
%package devel |
38 |
Summary: fcitx development library |
39 |
Group: Development/C |
40 |
Requires: %{name} = %{version} |
41 |
|
42 |
%description devel |
43 |
fcitx development files. |
44 |
|
45 |
%package gtk |
46 |
Summary: fcitx gtk module |
47 |
Group: System/Internationalization |
48 |
Requires: %{name} = %{version} |
49 |
Requires(post): gtk+2.0 |
50 |
Requires(postun): gtk+2.0 |
51 |
|
52 |
%description gtk |
53 |
fcitx gtk module. |
54 |
|
55 |
%package gtk3 |
56 |
Summary: fcitx gtk3 module |
57 |
Group: System/Internationalization |
58 |
Requires: %{name} = %{version} |
59 |
Requires(post): gtk+3.0 |
60 |
Requires(postun): gtk+3.0 |
61 |
|
62 |
%description gtk3 |
63 |
fcitx gtk module. |
64 |
|
65 |
%package gir |
66 |
Summary: GObject Introspection interface description for fcitx |
67 |
Group: System/Libraries |
68 |
Requires: %{name} = %{version} |
69 |
|
70 |
%description gir |
71 |
GObject Introspection interface description for fcitx. |
72 |
|
73 |
%package qt4 |
74 |
Summary: Qt4 immodule for fcitx |
75 |
Group: System/Internationalization |
76 |
Requires: %{name} = %{version} |
77 |
|
78 |
%description qt4 |
79 |
Qt4 immodule for fcitx. |
80 |
|
81 |
%prep |
82 |
%setup -q -n %name-%version |
83 |
|
84 |
%build |
85 |
%cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF -DENABLE_XDGAUTOSTART=OFF |
86 |
%make |
87 |
|
88 |
%install |
89 |
%makeinstall_std -C build |
90 |
|
91 |
chrpath -d %{buildroot}%{_libdir}/*.so |
92 |
desktop-file-install --dir %{buildroot}%{_datadir}/applications \ |
93 |
%{buildroot}%{_datadir}/applications/*.desktop |
94 |
|
95 |
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop |
96 |
|
97 |
%find_lang %name |
98 |
|
99 |
%files -f %name.lang |
100 |
%attr(0644,-,-) %doc doc/*.txt doc/*.htm |
101 |
%{_bindir}/* |
102 |
%{_libdir}/*.so.* |
103 |
%{_libdir}/%{name} |
104 |
%{_datadir}/%{name} |
105 |
%{_datadir}/dbus-1/services/org.fcitx.Fcitx.service |
106 |
%{_datadir}/mime/packages/*.xml |
107 |
%{_mandir}/man1/* |
108 |
%{_datadir}/applications/*.desktop |
109 |
%{_iconsdir}/*/*/*/* |
110 |
|
111 |
%files gtk |
112 |
%{_libdir}/gtk-2.0/*/immodules/im-fcitx.so |
113 |
|
114 |
%files gtk3 |
115 |
%{_libdir}/gtk-3.0/*/immodules/im-fcitx.so |
116 |
|
117 |
%files gir |
118 |
%{_libdir}/girepository-1.0/Fcitx-1.0.typelib |
119 |
|
120 |
%files qt4 |
121 |
%_qt4_plugindir/inputmethods/qtim-fcitx.so |
122 |
|
123 |
%files devel |
124 |
%{_libdir}/*.so |
125 |
%{_libdir}/pkgconfig/*.pc |
126 |
%{_datadir}/gir-1.0/Fcitx-1.0.gir |
127 |
%{_datadir}/cmake/%{name} |
128 |
%{_includedir}/* |