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