update libpinyin.spec.in
[platform/upstream/libpinyin.git] / libpinyin.spec.in
1 Name:           libpinyin
2 Version:        @VERSION@
3 Release:        2%{?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 for intelligent sentence-based Chinese pinyin input methods.
15
16
17 %package        devel
18 Summary:        Development files for %{name}
19 Requires:       %{name} = %{version}-%{release}
20
21 %description    devel
22 The %{name}-devel package contains libraries and header files for
23 developing applications that use %{name}.
24
25
26 %package        data
27 Summary:        data files for %{name}
28 Requires:       %{name} = %{version}-%{release}
29
30 %description data
31 The %{name}-data package contains data files.
32
33
34 %prep
35 %setup -q
36
37
38 %build
39 %configure --disable-static
40 make
41
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 make install DESTDIR=$RPM_BUILD_ROOT
46 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
47
48
49 %post -p /sbin/ldconfig
50
51 %postun -p /sbin/ldconfig
52
53
54 %files
55 %doc AUTHORS COPYING README
56 %{_libdir}/*.so.*
57 %dir %{_datadir}/libpinyin
58
59 %files devel
60 %doc
61 %{_includedir}/libpinyin-0.3/*
62 %{_libdir}/*.so
63 %{_libdir}/pkgconfig/libpinyin.pc
64
65 %files data
66 %doc
67 %{_datadir}/libpinyin/data
68
69 %changelog
70 * Thu Sep 08 2011  Peng Wu <pwu@redhat.com> - 0.2.99-2
71 - Split data sub package
72
73 * Wed Aug 31 2011  Peng Wu <alexepico@gmail.com> - 0.2.99-1
74 - Initial version