1 |
tv |
73715 |
Summary: Fcitx - Free Chinese Input Toys for X |
2 |
|
|
Name: fcitx |
3 |
daviddavid |
1929985 |
Version: 4.2.9.9 |
4 |
daviddavid |
1938021 |
Release: %mkrel 2 |
5 |
wally |
611991 |
License: GPLv2+ |
6 |
tv |
73715 |
Group: System/Internationalization |
7 |
fwang |
496123 |
URL: https://fcitx-im.org |
8 |
danf |
1789675 |
Source0: https://download.fcitx-im.org/fcitx/%{name}-%{version}_dict.tar.xz |
9 |
fwang |
144586 |
BuildRequires: cmake |
10 |
fwang |
871783 |
BuildRequires: extra-cmake-modules |
11 |
daviddavid |
1548807 |
BuildRequires: doxygen |
12 |
tv |
73715 |
BuildRequires: gettext-devel |
13 |
ovitters |
1144332 |
BuildRequires: pkgconfig(x11) |
14 |
|
|
BuildRequires: pkgconfig(xft) |
15 |
|
|
BuildRequires: pkgconfig(xpm) |
16 |
|
|
BuildRequires: pkgconfig(xext) |
17 |
|
|
BuildRequires: pkgconfig(dbus-glib-1) |
18 |
fwang |
257459 |
BuildRequires: pkgconfig(xkbfile) |
19 |
daviddavid |
1548807 |
BuildRequires: pkgconfig(enchant-2) |
20 |
fwang |
257459 |
BuildRequires: pkgconfig(iso-codes) |
21 |
daviddavid |
1548807 |
BuildRequires: pkgconfig(json-c) |
22 |
fwang |
257472 |
BuildRequires: pkgconfig(gobject-introspection-1.0) |
23 |
kekepower |
1212833 |
BuildRequires: pkgconfig(xkeyboard-config) |
24 |
daviddavid |
1548807 |
BuildRequires: pkgconfig(gtk+-2.0) |
25 |
|
|
BuildRequires: pkgconfig(gtk+-3.0) |
26 |
ovitters |
1144332 |
BuildRequires: pkgconfig(opencc) |
27 |
tv |
73715 |
BuildRequires: wget |
28 |
ovitters |
1144332 |
BuildRequires: pkgconfig(cairo) |
29 |
|
|
BuildRequires: pkgconfig(pango) |
30 |
tv |
73715 |
BuildRequires: intltool |
31 |
fwang |
257478 |
BuildRequires: icu-devel |
32 |
fwang |
144586 |
BuildRequires: chrpath |
33 |
fwang |
154008 |
BuildRequires: desktop-file-utils |
34 |
tv |
73715 |
Requires: locales-zh |
35 |
yochenhsieh |
1009943 |
Recommends: %{name}-gtk = %{version} |
36 |
|
|
Recommends: %{name}-gtk3 = %{version} |
37 |
yochenhsieh |
1010294 |
Recommends: %{name}-configtool |
38 |
tv |
73715 |
|
39 |
daviddavid |
1938021 |
Obsoletes: fcitx-qt4 < 4.2.9.9-2 |
40 |
|
|
|
41 |
tv |
73715 |
%description |
42 |
|
|
%{name} is an X input method allowing people to enter simplified Chinese |
43 |
|
|
characters in X environment following XIM standard. |
44 |
|
|
|
45 |
|
|
%package devel |
46 |
|
|
Summary: fcitx development library |
47 |
|
|
Group: Development/C |
48 |
|
|
Requires: %{name} = %{version} |
49 |
wally |
847178 |
Requires: %{name}-gir = %{version} |
50 |
tv |
73715 |
|
51 |
|
|
%description devel |
52 |
|
|
fcitx development files. |
53 |
|
|
|
54 |
fwang |
144586 |
%package gtk |
55 |
|
|
Summary: fcitx gtk module |
56 |
|
|
Group: System/Internationalization |
57 |
|
|
Requires: %{name} = %{version} |
58 |
|
|
|
59 |
|
|
%description gtk |
60 |
|
|
fcitx gtk module. |
61 |
|
|
|
62 |
|
|
%package gtk3 |
63 |
|
|
Summary: fcitx gtk3 module |
64 |
|
|
Group: System/Internationalization |
65 |
|
|
Requires: %{name} = %{version} |
66 |
|
|
|
67 |
|
|
%description gtk3 |
68 |
|
|
fcitx gtk module. |
69 |
|
|
|
70 |
fwang |
257479 |
%package gir |
71 |
|
|
Summary: GObject Introspection interface description for fcitx |
72 |
|
|
Group: System/Libraries |
73 |
|
|
Requires: %{name} = %{version} |
74 |
|
|
|
75 |
|
|
%description gir |
76 |
|
|
GObject Introspection interface description for fcitx. |
77 |
|
|
|
78 |
tv |
73715 |
%prep |
79 |
daviddavid |
1548807 |
%autosetup -p1 |
80 |
tv |
73715 |
|
81 |
|
|
%build |
82 |
wally |
1473996 |
%cmake \ |
83 |
daviddavid |
1938021 |
-DENABLE_QT=OFF \ |
84 |
|
|
-DENABLE_QT_IM_MODULE=OFF \ |
85 |
wally |
1473996 |
-DENABLE_QT_GUI=OFF \ |
86 |
|
|
-DENABLE_GTK3_IM_MODULE=ON \ |
87 |
|
|
-DCMAKE_SKIP_RPATH=OFF \ |
88 |
|
|
-DENABLE_XDGAUTOSTART=OFF |
89 |
daviddavid |
1548814 |
%cmake_build |
90 |
tv |
73715 |
|
91 |
|
|
%install |
92 |
daviddavid |
1548814 |
%cmake_install |
93 |
tv |
73715 |
|
94 |
fwang |
144602 |
chrpath -d %{buildroot}%{_libdir}/*.so |
95 |
fwang |
154014 |
desktop-file-install --dir %{buildroot}%{_datadir}/applications \ |
96 |
|
|
%{buildroot}%{_datadir}/applications/*.desktop |
97 |
fwang |
144586 |
|
98 |
fwang |
276455 |
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop |
99 |
|
|
|
100 |
tv |
73715 |
%find_lang %name |
101 |
|
|
|
102 |
|
|
%files -f %name.lang |
103 |
daviddavid |
1548807 |
%doc doc/*.txt doc/*.htm |
104 |
tv |
894221 |
%exclude /usr/share/doc/fcitx/Develop_Readme |
105 |
tv |
73715 |
%{_bindir}/* |
106 |
|
|
%{_libdir}/*.so.* |
107 |
fwang |
144586 |
%{_libdir}/%{name} |
108 |
tv |
73715 |
%{_datadir}/%{name} |
109 |
fwang |
496129 |
%{_datadir}/dbus-1/services/org.fcitx.Fcitx.service |
110 |
fwang |
154004 |
%{_datadir}/mime/packages/*.xml |
111 |
tv |
73715 |
%{_mandir}/man1/* |
112 |
|
|
%{_datadir}/applications/*.desktop |
113 |
fwang |
144586 |
%{_iconsdir}/*/*/*/* |
114 |
tv |
73715 |
|
115 |
fwang |
144606 |
%files gtk |
116 |
|
|
%{_libdir}/gtk-2.0/*/immodules/im-fcitx.so |
117 |
|
|
|
118 |
|
|
%files gtk3 |
119 |
|
|
%{_libdir}/gtk-3.0/*/immodules/im-fcitx.so |
120 |
|
|
|
121 |
fwang |
257480 |
%files gir |
122 |
fwang |
257479 |
%{_libdir}/girepository-1.0/Fcitx-1.0.typelib |
123 |
|
|
|
124 |
tv |
73715 |
%files devel |
125 |
|
|
%{_libdir}/*.so |
126 |
|
|
%{_libdir}/pkgconfig/*.pc |
127 |
fwang |
257479 |
%{_datadir}/gir-1.0/Fcitx-1.0.gir |
128 |
fwang |
144586 |
%{_datadir}/cmake/%{name} |
129 |
tv |
73715 |
%{_includedir}/* |