|
%define version 4.1.1 |
|
|
%define rel 1 |
|
|
|
|
|
# NOTE: set prerelease to 0 for official releases, 1 for pre-releases |
|
|
%define prerelease 0 |
|
|
|
|
|
%if %prerelease |
|
|
%define release %mkrel -c %{prerelease} %{rel} |
|
|
%define tarballver %version-%prerelease |
|
|
%else |
|
|
%define release %mkrel %{rel} |
|
|
%define tarballver %version |
|
|
%endif |
|
|
|
|
1 |
Summary: Fcitx - Free Chinese Input Toys for X |
Summary: Fcitx - Free Chinese Input Toys for X |
2 |
Name: fcitx |
Name: fcitx |
3 |
Version: %{version} |
Version: 4.1.1 |
4 |
Release: %{release} |
Release: %mkrel 1 |
5 |
License: GPL |
License: GPL |
6 |
Group: System/Internationalization |
Group: System/Internationalization |
7 |
URL: http://code.google.com/p/fcitx/ |
URL: http://code.google.com/p/fcitx/ |
8 |
Source0: http://fcitx.googlecode.com/files/%name-%{version}_all.tar.bz2 |
Source0: http://fcitx.googlecode.com/files/%name-%{version}_all.tar.bz2 |
9 |
BuildRequires: automake |
BuildRequires: cmake |
10 |
BuildRequires: gettext-devel |
BuildRequires: gettext-devel |
11 |
BuildRequires: libx11-devel |
BuildRequires: libx11-devel |
12 |
BuildRequires: libxft-devel |
BuildRequires: libxft-devel |
13 |
BuildRequires: xpm-devel |
BuildRequires: xpm-devel |
14 |
BuildRequires: libxext-devel |
BuildRequires: libxext-devel |
15 |
BuildRequires: dbus-devel |
BuildRequires: dbus-glib-devel |
16 |
|
BuildRequires: gtk+3-devel |
17 |
|
BuildRequires: opencc-devel |
18 |
BuildRequires: wget |
BuildRequires: wget |
19 |
BuildRequires: cairo-devel |
BuildRequires: cairo-devel |
20 |
BuildRequires: pango-devel |
BuildRequires: pango-devel |
21 |
BuildRequires: intltool |
BuildRequires: intltool |
22 |
|
BuildRequires: chrpath |
23 |
Requires: locales-zh |
Requires: locales-zh |
24 |
|
|
25 |
%description |
%description |
34 |
%description devel |
%description devel |
35 |
fcitx development files. |
fcitx development files. |
36 |
|
|
37 |
|
%package gtk |
38 |
|
Summary: fcitx gtk module |
39 |
|
Group: System/Internationalization |
40 |
|
Requires: %{name} = %{version} |
41 |
|
Requires(post): gtk+2.0 |
42 |
|
Requires(postun): gtk+2.0 |
43 |
|
|
44 |
|
%description gtk |
45 |
|
fcitx gtk module. |
46 |
|
|
47 |
|
%post gtk |
48 |
|
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib |
49 |
|
|
50 |
|
%postun gtk |
51 |
|
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib |
52 |
|
|
53 |
|
%package gtk3 |
54 |
|
Summary: fcitx gtk3 module |
55 |
|
Group: System/Internationalization |
56 |
|
Requires: %{name} = %{version} |
57 |
|
Requires(post): gtk+3.0 |
58 |
|
Requires(postun): gtk+3.0 |
59 |
|
|
60 |
|
%description gtk3 |
61 |
|
fcitx gtk module. |
62 |
|
|
63 |
|
%post gtk3 |
64 |
|
%{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache |
65 |
|
|
66 |
|
%postun gtk3 |
67 |
|
%{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache |
68 |
|
|
69 |
%prep |
%prep |
70 |
%setup -q -n %name-%version |
%setup -q -n %name-%version |
71 |
|
|
72 |
%build |
%build |
73 |
%configure2_5x --disable-static |
%cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF |
74 |
%make |
%make |
75 |
|
|
76 |
%install |
%install |
77 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
78 |
%makeinstall_std |
%makeinstall_std -C build |
79 |
|
|
80 |
|
chrpath -d %{_libdir}/*.so |
81 |
|
|
82 |
%find_lang %name |
%find_lang %name |
83 |
|
|
89 |
%attr(0644,-,-) %doc doc/*.txt doc/*.htm |
%attr(0644,-,-) %doc doc/*.txt doc/*.htm |
90 |
%{_bindir}/* |
%{_bindir}/* |
91 |
%{_libdir}/*.so.* |
%{_libdir}/*.so.* |
92 |
|
%{_libdir}/%{name} |
93 |
%{_datadir}/%{name} |
%{_datadir}/%{name} |
94 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |
95 |
%{_datadir}/applications/*.desktop |
%{_datadir}/applications/*.desktop |
96 |
%{_datadir}/pixmaps/*.png |
%{_iconsdir}/*/*/*/* |
97 |
|
|
98 |
%files devel |
%files devel |
99 |
%defattr(-,root,root) |
%defattr(-,root,root) |
100 |
%{_libdir}/*.so |
%{_libdir}/*.so |
|
%{_libdir}/*.la |
|
101 |
%{_libdir}/pkgconfig/*.pc |
%{_libdir}/pkgconfig/*.pc |
102 |
|
%{_datadir}/cmake/%{name} |
103 |
%{_includedir}/* |
%{_includedir}/* |
|
|
|
|
|
|