tizen-3.0-ivi_20150201.3_atom.xml: archive manifest file
[scm/bb/tizen.git] / proto-meta-Tizen_generic / specfile-initial / libpinyin / packaging / libpinyin.spec
1 Name:           libpinyin
2 Version:        1.0.0
3 Release:        0
4 Summary:        Library to deal with pinyin
5 License:        GPL-2.0+
6 Group:          System/Libraries
7 URL:            https://github.com/libpinyin/libpinyin
8 Source0:        http://downloads.sourceforge.net/libpinyin/libpinyin/%{name}-%{version}.tar.gz
9 Source1001:     libpinyin.manifest
10
11 BuildRequires:  db4-devel
12 BuildRequires:  glib2-devel
13 BuildRequires:  pkgconfig
14
15 %description
16 The libpinyin project aims to provide the algorithms core
17 for intelligent sentence-based Chinese pinyin input methods.
18
19 %package        devel
20 Summary:        Development files for %{name}
21 Requires:       %{name} = %{version}-%{release}
22
23 %description    devel
24 The %{name}-devel package contains libraries and header files for
25 developing applications that use %{name}.
26
27 %package        tools
28 Summary:        Tools for %{name}
29 Requires:       %{name} = %{version}-%{release}
30
31 %description tools
32 The %{name}-tools package contains tools.
33
34 %prep
35 %setup -q
36 cp %{SOURCE1001} .
37
38 %build
39 %reconfigure --disable-static
40 %__make %{?_smp_mflags}
41
42 %install
43 %make_install DESTDIR=%{buildroot}
44 find %{buildroot} -name '*.la' -exec rm -f {} ';'
45
46 %post -p /sbin/ldconfig
47
48 %postun -p /sbin/ldconfig
49
50 %files
51 %manifest %{name}.manifest
52 %license COPYING
53 %doc AUTHORS README
54 %{_libdir}/*.so.*
55 %dir %{_libdir}/libpinyin
56 %{_libdir}/libpinyin/data
57
58 %files devel
59 %manifest %{name}.manifest
60 %dir %{_includedir}/libpinyin-1.0.0
61 %{_includedir}/libpinyin-1.0.0/*
62 %{_libdir}/*.so
63 %{_libdir}/pkgconfig/libpinyin.pc
64
65 %files tools
66 %manifest %{name}.manifest
67 %{_bindir}/gen_binary_files
68 %{_bindir}/import_interpolation
69 %{_bindir}/gen_unigram
70 %{_mandir}/man1/*.1.*