add 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 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 %prep
27 %setup -q
28
29
30 %build
31 %configure --disable-static
32 make %{?_smp_mflags}
33
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 make install DESTDIR=$RPM_BUILD_ROOT
38 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
39
40
41 %post -p /sbin/ldconfig
42
43 %postun -p /sbin/ldconfig
44
45
46 %files
47 %doc AUTHORS COPYING README
48 %{_libdir}/*.so.*
49 %dir %{_datadir}/libpinyin
50 %{_datadir}/libpinyin/data
51
52 %files devel
53 %doc
54 %{_includedir}/libpinyin-0.3/*
55 %{_libdir}/*.so
56 %{_libdir}/pkgconfig/libpinyin.pc
57
58
59 %changelog
60 * Wed Aug 31 2011  Peng Wu <alexepico@gmail.com> - 0.2.99-1
61 - Initial version