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:       
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 %prep
36 %setup -q
37
38
39 %build
40 %configure --disable-static
41 make
42
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 make install DESTDIR=$RPM_BUILD_ROOT
47 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
48
49
50 %post -p /sbin/ldconfig
51
52 %postun -p /sbin/ldconfig
53
54
55 %files
56 %doc AUTHORS COPYING README
57 %{_libdir}/*.so.*
58 %dir %{_datadir}/libpinyin
59
60 %files devel
61 %doc
62 %dir %{_includedir}/libpinyin-0.3
63 %{_includedir}/libpinyin-0.3/*
64 %{_libdir}/*.so
65 %{_libdir}/pkgconfig/libpinyin.pc
66
67 %files data
68 %doc
69 %{_datadir}/libpinyin/data
70
71 %changelog
72 * Wed Sep 28 2011  Peng Wu <pwu@redhat.com> - 0.2.99.1-1
73 - Update to 0.2.99.1
74
75 * Thu Sep 08 2011  Peng Wu <pwu@redhat.com> - 0.2.99-2
76 - Split data sub package
77
78 * Wed Aug 31 2011  Peng Wu <alexepico@gmail.com> - 0.2.99-1
79 - Initial version