1 |
%define major 3 |
2 |
%define libname %mklibname chewing %{major} |
3 |
%define develname %mklibname chewing -d |
4 |
|
5 |
Name: libchewing |
6 |
Summary: The intelligent phonetic input method library |
7 |
Epoch: 1 |
8 |
Version: 0.5.1 |
9 |
Release: %mkrel 4 |
10 |
Group: System/Internationalization |
11 |
License: LGPLv2+ |
12 |
Source0: https://github.com/chewing/libchewing/releases/download/v%{version}/%{name}-%{version}.tar.bz2 |
13 |
URL: https://chewing.im/ |
14 |
BuildRequires: pkgconfig(sqlite3) |
15 |
|
16 |
%description |
17 |
libchewing is an intelligent Chinese phonetic input method library |
18 |
which is also know as Qooing. Based on Chewing input method. |
19 |
|
20 |
%package data |
21 |
Summary: Data for Libchewing |
22 |
Group: System/Internationalization |
23 |
Conflicts: %{_lib}chewing1 < 1:0.4.0 |
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 |
Obsoletes: %{_lib}chewing1 < 1:0.4.0 |
37 |
|
38 |
%description -n %{libname} |
39 |
libchewing is an intelligent Chinese phonetic input method library |
40 |
which is also know as Qooing. Based on Chewing input method. |
41 |
|
42 |
This package contains the basic libchewing library. |
43 |
|
44 |
%package -n %{develname} |
45 |
Summary: Headers of libchewing for development |
46 |
Group: Development/C |
47 |
Requires: %{libname} = %{epoch}:%{version} |
48 |
Provides: %{name}-devel = %{version}-%{release} |
49 |
Obsoletes: %mklibname -d chewing 3 |
50 |
|
51 |
%description -n %{develname} |
52 |
libchewing is an intelligent Chinese phonetic input method library |
53 |
which is also know as Qooing. Based on Chewing input method. |
54 |
|
55 |
This package contains library and headers necessary for development |
56 |
related to Chewing input method. You also need it if you want to |
57 |
compile any input server that supports Chewing input method. |
58 |
|
59 |
%prep |
60 |
%setup -q |
61 |
|
62 |
%build |
63 |
%configure --disable-static |
64 |
%make_build |
65 |
|
66 |
%install |
67 |
%make_install |
68 |
|
69 |
rm -f %{buildroot}%{_libdir}/*.la |
70 |
|
71 |
%files data |
72 |
%doc COPYING |
73 |
%{_datadir}/%{name} |
74 |
%{_infodir}/* |
75 |
|
76 |
%files -n %{libname} |
77 |
%doc COPYING |
78 |
%{_libdir}/%{name}.so.%{major} |
79 |
%{_libdir}/%{name}.so.%{major}.* |
80 |
|
81 |
%files -n %{develname} |
82 |
%doc AUTHORS COPYING ChangeLog NEWS |
83 |
%{_libdir}/%{name}.so |
84 |
%{_libdir}/pkgconfig/* |
85 |
%{_includedir}/* |