update libpinyin.spec.in
[platform/upstream/libpinyin.git] / libpinyin.spec.in
1 Name:           libpinyin
2 Version:        @VERSION@
3 Release:        1%{?dist}
4 Summary:        Library to deal with pinyin
5
6 License:        GPLv2+
7 URL:            https://github.com/libpinyin/libpinyin
8 Source0:        https://github.com/downloads/libpinyin/libpinyin/%{name}-%{version}.tar.gz
9
10 BuildRequires:  db4-devel, glib2-devel
11 Requires:       %{name}-data = %{version}-%{release}
12
13 %description
14 The libpinyin project aims to provide the algorithms core
15 for intelligent sentence-based Chinese pinyin input methods.
16
17
18 %package        devel
19 Summary:        Development files for %{name}
20 Requires:       %{name} = %{version}-%{release}
21
22 %description    devel
23 The %{name}-devel package contains libraries and header files for
24 developing applications that use %{name}.
25
26
27 %package        data
28 Summary:        Data files for %{name}
29 Requires:       %{name} = %{version}-%{release}
30
31 %description data
32 The %{name}-data package contains data files.
33
34
35 %package        tools
36 Summary:        Tools for %{name}
37 Requires:       %{name} = %{version}-%{release}
38
39 %description tools
40 The %{name}-tools package contains tools.
41
42
43 %prep
44 %setup -q
45
46
47 %build
48 %configure --disable-static
49 make %{?_smp_mflags}
50
51 %install
52 make install DESTDIR=$RPM_BUILD_ROOT
53 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
54
55
56 %post -p /sbin/ldconfig
57
58 %postun -p /sbin/ldconfig
59
60
61 %files
62 %doc AUTHORS COPYING README
63 %{_libdir}/*.so.*
64 %dir %{_datadir}/libpinyin
65
66 %files devel
67 %doc
68 %dir %{_includedir}/libpinyin-0.3
69 %{_includedir}/libpinyin-0.3/*
70 %{_libdir}/*.so
71 %{_libdir}/pkgconfig/libpinyin.pc
72
73 %files data
74 %doc
75 %{_datadir}/libpinyin/data
76
77 %files tools
78 %{_bindir}/gen_binary_files
79 %{_bindir}/import_interpolation
80 %{_bindir}/gen_unigram
81
82 %changelog
83 * Mon Jan 09 2012  Peng Wu <pwu@redhat.com> - 0.4.92-2
84 - Split tools sub package
85
86 * Thu Dec 29 2011  Peng Wu <pwu@redhat.com> - 0.4.92-1
87 - Update to 0.4.92
88
89 * Tue Dec 27 2011  Peng Wu <pwu@redhat.com> - 0.4.91-1
90 - Update to 0.4.91
91
92 * Fri Nov 18 2011  Peng Wu <pwu@redhat.com> - 0.3.0-1
93 - Update to 0.3.0
94
95 * Thu Nov 03 2011  Peng Wu <pwu@redhat.com> - 0.2.99.3-1
96 - Update to 0.2.99.3
97
98 * Tue Oct 11 2011  Peng Wu <pwu@redhat.com> - 0.2.99.2-1
99 - Update to 0.2.99.2
100
101 * Wed Sep 28 2011  Peng Wu <pwu@redhat.com> - 0.2.99.1-1
102 - Update to 0.2.99.1
103
104 * Thu Sep 08 2011  Peng Wu <pwu@redhat.com> - 0.2.99-2
105 - Split data sub package
106
107 * Wed Aug 31 2011  Peng Wu <alexepico@gmail.com> - 0.2.99-1
108 - Initial version