summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20121118/1a9c0198/attachment-0001.bin
blob: b2621f4a18b9d78aedbd61ba392ea4e769c1cfb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Name: libpinyin
Version: 0.7.92
Release: %mkrel 1
Summary: The library of a sentence-based Chinese pinyin input method
Source0: https://github.com/downloads/libpinyin/libpinyin/%{name}-%{version}.tar.gz
License: GPLv2+
Group: System/Internationalization
Url: https://github.com/libpinyin/libpinyin
Buildrequires: glib2-devel
Buildrequires: db5-devel
Requires: %{name}-data = %{version}-%{release}
 
%description
The libpinyin project aims to provide the algorithms core for intelligent sentence-based Chinese pinyin input methods.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for developing applications that use %{name}.

%package        data
Summary:        Data files for %{name}
Requires:       %{name} = %{version}-%{release}

%description    data
The %{name}-data package contains data files.

%package        tools
Summary:        Tools for %{name}
Requires:       %{name}=%{version}-%{release}

%description    tools
The %{name}-tools package contains tools for training inputting habit.

%prep
%setup -q

%build
%configure

%make 

%install
rm -rf %{buildroot}
%makeinstall

%files
%doc AUTHORS COPYING README
%{_libdir}/*.so.*
%dir %{_datadir}/libpinyin

%files devel
%doc
%dir %{_includedir}/libpinyin-%{version}
%{_includedir}/libpinyin-%{version}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libpinyin.pc

%files data
%doc
%{_datadir}/libpinyin/data

%files tools
%{_bindir}/gen_binary_files
%{_bindir}/import_interpolation
%{_bindir}/gen_unigram
%{_mandir}/man1/*.1.*