1 |
tv |
73715 |
Summary: Fcitx - Free Chinese Input Toys for X |
2 |
|
|
Name: fcitx |
3 |
fwang |
276453 |
Version: 4.2.5 |
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 |
257478 |
BuildRequires: icu-devel |
28 |
fwang |
144586 |
BuildRequires: chrpath |
29 |
fwang |
154008 |
BuildRequires: desktop-file-utils |
30 |
tv |
73715 |
Requires: locales-zh |
31 |
|
|
|
32 |
|
|
%description |
33 |
|
|
%{name} is an X input method allowing people to enter simplified Chinese |
34 |
|
|
characters in X environment following XIM standard. |
35 |
|
|
|
36 |
|
|
%package devel |
37 |
|
|
Summary: fcitx development library |
38 |
|
|
Group: Development/C |
39 |
|
|
Requires: %{name} = %{version} |
40 |
|
|
|
41 |
|
|
%description devel |
42 |
|
|
fcitx development files. |
43 |
|
|
|
44 |
fwang |
144586 |
%package gtk |
45 |
|
|
Summary: fcitx gtk module |
46 |
|
|
Group: System/Internationalization |
47 |
|
|
Requires: %{name} = %{version} |
48 |
|
|
Requires(post): gtk+2.0 |
49 |
|
|
Requires(postun): gtk+2.0 |
50 |
|
|
|
51 |
|
|
%description gtk |
52 |
|
|
fcitx gtk module. |
53 |
|
|
|
54 |
|
|
%post gtk |
55 |
|
|
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib |
56 |
|
|
|
57 |
|
|
%postun gtk |
58 |
|
|
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib |
59 |
|
|
|
60 |
|
|
%package gtk3 |
61 |
|
|
Summary: fcitx gtk3 module |
62 |
|
|
Group: System/Internationalization |
63 |
|
|
Requires: %{name} = %{version} |
64 |
|
|
Requires(post): gtk+3.0 |
65 |
|
|
Requires(postun): gtk+3.0 |
66 |
|
|
|
67 |
|
|
%description gtk3 |
68 |
|
|
fcitx gtk module. |
69 |
|
|
|
70 |
|
|
%post gtk3 |
71 |
|
|
%{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache |
72 |
|
|
|
73 |
|
|
%postun gtk3 |
74 |
|
|
%{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache |
75 |
|
|
|
76 |
fwang |
257479 |
%package gir |
77 |
|
|
Summary: GObject Introspection interface description for fcitx |
78 |
|
|
Group: System/Libraries |
79 |
|
|
Requires: %{name} = %{version} |
80 |
|
|
|
81 |
|
|
%description gir |
82 |
|
|
GObject Introspection interface description for fcitx. |
83 |
|
|
|
84 |
tv |
73715 |
%prep |
85 |
|
|
%setup -q -n %name-%version |
86 |
|
|
|
87 |
|
|
%build |
88 |
fwang |
144586 |
%cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF |
89 |
tv |
73715 |
%make |
90 |
|
|
|
91 |
|
|
%install |
92 |
|
|
rm -rf %{buildroot} |
93 |
fwang |
144586 |
%makeinstall_std -C build |
94 |
tv |
73715 |
|
95 |
fwang |
144602 |
chrpath -d %{buildroot}%{_libdir}/*.so |
96 |
fwang |
154014 |
desktop-file-install --dir %{buildroot}%{_datadir}/applications \ |
97 |
|
|
%{buildroot}%{_datadir}/applications/*.desktop |
98 |
fwang |
144586 |
|
99 |
fwang |
276455 |
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop |
100 |
|
|
|
101 |
tv |
73715 |
%find_lang %name |
102 |
|
|
|
103 |
|
|
%files -f %name.lang |
104 |
|
|
%defattr(-,root,root) |
105 |
|
|
%attr(0644,-,-) %doc doc/*.txt doc/*.htm |
106 |
|
|
%{_bindir}/* |
107 |
|
|
%{_libdir}/*.so.* |
108 |
fwang |
144586 |
%{_libdir}/%{name} |
109 |
tv |
73715 |
%{_datadir}/%{name} |
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 |
|
|
%defattr(-,root,root) |
117 |
|
|
%{_libdir}/gtk-2.0/*/immodules/im-fcitx.so |
118 |
|
|
|
119 |
|
|
%files gtk3 |
120 |
|
|
%defattr(-,root,root) |
121 |
|
|
%{_libdir}/gtk-3.0/*/immodules/im-fcitx.so |
122 |
|
|
|
123 |
fwang |
257480 |
%files gir |
124 |
fwang |
257479 |
%{_libdir}/girepository-1.0/Fcitx-1.0.typelib |
125 |
|
|
|
126 |
tv |
73715 |
%files devel |
127 |
|
|
%defattr(-,root,root) |
128 |
|
|
%{_libdir}/*.so |
129 |
|
|
%{_libdir}/pkgconfig/*.pc |
130 |
fwang |
257479 |
%{_datadir}/gir-1.0/Fcitx-1.0.gir |
131 |
fwang |
144586 |
%{_datadir}/cmake/%{name} |
132 |
tv |
73715 |
%{_includedir}/* |