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