1 |
%define version 0.3.2 |
2 |
%define major 3 |
3 |
%define libname %mklibname chewing %{major} |
4 |
%define develname %mklibname chewing -d |
5 |
|
6 |
Name: libchewing |
7 |
Summary: The intelligent phonetic input method library |
8 |
Epoch: 1 |
9 |
Version: %{version} |
10 |
Release: %mkrel 4.svn1051.1 |
11 |
Group: System/Internationalization |
12 |
License: LGPLv2+ |
13 |
Source0: http://chewing.csie.net/download/libchewing/%{name}-%{version}.tar.bz2 |
14 |
URL: http://chewing.csie.net/ |
15 |
Buildroot: %_tmppath/%{name}-%{version}-%{release}-root |
16 |
|
17 |
%description |
18 |
libchewing is an intelligent Chinese phonetic input method library |
19 |
which is also know as Qooing. Based on Chewing input method. |
20 |
|
21 |
%package data |
22 |
Summary: Data for Libchewing |
23 |
Group: System/Internationalization |
24 |
|
25 |
%description data |
26 |
libchewing is an intelligent Chinese phonetic input method library |
27 |
which is also know as Qooing. Based on Chewing input method. |
28 |
|
29 |
This package contains data files from libchewing. |
30 |
|
31 |
%package -n %{libname} |
32 |
Summary: The intelligent phonetic input method library |
33 |
Group: System/Internationalization |
34 |
Requires: %{name}-data = %{epoch}:%{version} |
35 |
Provides: %{name} = %{epoch}:%{version}-%{release} |
36 |
|
37 |
%description -n %{libname} |
38 |
libchewing is an intelligent Chinese phonetic input method library |
39 |
which is also know as Qooing. Based on Chewing input method. |
40 |
|
41 |
This package contains the basic libchewing library. |
42 |
|
43 |
%package -n %{develname} |
44 |
Summary: Headers of libchewing for development |
45 |
Group: Development/C |
46 |
Requires: %{libname} = %{epoch}:%{version} |
47 |
Provides: %{name}-devel = %{version}-%{release} |
48 |
Obsoletes: %mklibname -d chewing 3 |
49 |
|
50 |
%description -n %{develname} |
51 |
libchewing is an intelligent Chinese phonetic input method library |
52 |
which is also know as Qooing. Based on Chewing input method. |
53 |
|
54 |
This package contains library and headers necessary for development |
55 |
related to Chewing input method. You also need it if you want to |
56 |
compile any input server that supports Chewing input method. |
57 |
|
58 |
%prep |
59 |
%setup -q -n %name-%version |
60 |
|
61 |
%build |
62 |
./autogen.sh |
63 |
%configure2_5x |
64 |
%make |
65 |
|
66 |
%install |
67 |
rm -rf $RPM_BUILD_ROOT |
68 |
%makeinstall_std |
69 |
|
70 |
%clean |
71 |
rm -rf $RPM_BUILD_ROOT |
72 |
|
73 |
%if %mdkversion < 200900 |
74 |
%post -n %{libname} -p /sbin/ldconfig |
75 |
%endif |
76 |
%if %mdkversion < 200900 |
77 |
%postun -n %{libname} -p /sbin/ldconfig |
78 |
%endif |
79 |
|
80 |
|
81 |
%files data |
82 |
%defattr(-,root,root) |
83 |
%doc COPYING |
84 |
%{_datadir}/chewing |
85 |
|
86 |
%files -n %{libname} |
87 |
%defattr(-,root,root) |
88 |
%doc COPYING |
89 |
%{_libdir}/lib*.so.%{major}* |
90 |
|
91 |
%files -n %{develname} |
92 |
%defattr(-,root,root) |
93 |
%doc AUTHORS COPYING ChangeLog NEWS README |
94 |
%{_libdir}/lib*.so |
95 |
%{_libdir}/lib*.a |
96 |
%{_libdir}/lib*.la |
97 |
%{_libdir}/pkgconfig/* |
98 |
%{_includedir}/* |
99 |
|
100 |
|