1 |
tv |
73715 |
%define version 4.0.1 |
2 |
boklm |
76137 |
%define rel 2 |
3 |
tv |
73715 |
|
4 |
|
|
# NOTE: set prerelease to 0 for official releases, 1 for pre-releases |
5 |
|
|
%define prerelease 0 |
6 |
|
|
|
7 |
|
|
%if %prerelease |
8 |
|
|
%define release %mkrel -c %{prerelease} %{rel} |
9 |
|
|
%define tarballver %version-%prerelease |
10 |
|
|
%else |
11 |
|
|
%define release %mkrel %{rel} |
12 |
|
|
%define tarballver %version |
13 |
|
|
%endif |
14 |
|
|
|
15 |
|
|
Summary: Fcitx - Free Chinese Input Toys for X |
16 |
|
|
Name: fcitx |
17 |
|
|
Version: %{version} |
18 |
|
|
Release: %{release} |
19 |
|
|
License: GPL |
20 |
|
|
Group: System/Internationalization |
21 |
|
|
URL: http://code.google.com/p/fcitx/ |
22 |
|
|
Source0: http://fcitx.googlecode.com/files/%name-%{version}_all.tar.gz |
23 |
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
24 |
|
|
BuildRequires: automake |
25 |
|
|
BuildRequires: gettext-devel |
26 |
|
|
BuildRequires: libx11-devel |
27 |
|
|
BuildRequires: libxft-devel |
28 |
|
|
BuildRequires: xpm-devel |
29 |
|
|
BuildRequires: libxext-devel |
30 |
|
|
BuildRequires: dbus-devel |
31 |
|
|
BuildRequires: wget |
32 |
|
|
BuildRequires: cairo-devel |
33 |
|
|
BuildRequires: pango-devel |
34 |
|
|
BuildRequires: intltool |
35 |
|
|
Requires: locales-zh |
36 |
|
|
|
37 |
|
|
%description |
38 |
|
|
%{name} is an X input method allowing people to enter simplified Chinese |
39 |
|
|
characters in X environment following XIM standard. |
40 |
|
|
|
41 |
|
|
%package devel |
42 |
|
|
Summary: fcitx development library |
43 |
|
|
Group: Development/C |
44 |
|
|
Requires: %{name} = %{version} |
45 |
|
|
|
46 |
|
|
%description devel |
47 |
|
|
fcitx development files. |
48 |
|
|
|
49 |
|
|
%prep |
50 |
|
|
%setup -q -n %name-%version |
51 |
|
|
|
52 |
|
|
%build |
53 |
|
|
%configure2_5x --disable-static |
54 |
|
|
%make |
55 |
|
|
|
56 |
|
|
%install |
57 |
|
|
rm -rf %{buildroot} |
58 |
|
|
%makeinstall_std |
59 |
|
|
|
60 |
|
|
%find_lang %name |
61 |
|
|
|
62 |
|
|
%clean |
63 |
|
|
rm -rf %{buildroot} |
64 |
|
|
|
65 |
|
|
%files -f %name.lang |
66 |
|
|
%defattr(-,root,root) |
67 |
|
|
%attr(0644,-,-) %doc doc/*.txt doc/*.htm |
68 |
|
|
%{_bindir}/* |
69 |
|
|
%{_libdir}/*.so.* |
70 |
|
|
%{_datadir}/%{name} |
71 |
|
|
%{_mandir}/man1/* |
72 |
|
|
%{_datadir}/applications/*.desktop |
73 |
|
|
%{_datadir}/pixmaps/*.png |
74 |
|
|
|
75 |
|
|
%files devel |
76 |
|
|
%defattr(-,root,root) |
77 |
|
|
%{_libdir}/*.so |
78 |
|
|
%{_libdir}/*.la |
79 |
|
|
%{_libdir}/pkgconfig/*.pc |
80 |
|
|
%{_includedir}/* |
81 |
|
|
|
82 |
|
|
|