4 Summary: Library to deal with pinyin
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
11 BuildRequires: db4-devel, glib2-devel
14 The libpinyin project aims to provide the algorithms core
15 for intelligent sentence-based Chinese pinyin input methods.
19 Summary: Development files for %{name}
20 Requires: %{name} = %{version}-%{release}
23 The %{name}-devel package contains libraries and header files for
24 developing applications that use %{name}.
28 Summary: Tools for %{name}
29 Requires: %{name} = %{version}-%{release}
32 The %{name}-tools package contains tools.
41 %configure --disable-static
45 make install DESTDIR=$RPM_BUILD_ROOT
46 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
49 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
55 %manifest %{name}.manifest
56 %doc AUTHORS COPYING README
58 %dir %{_libdir}/libpinyin
59 %{_libdir}/libpinyin/data
62 %manifest %{name}.manifest
64 %dir %{_includedir}/libpinyin-1.0.0
65 %{_includedir}/libpinyin-1.0.0/*
67 %{_libdir}/pkgconfig/libpinyin.pc
70 %manifest %{name}.manifest
71 %{_bindir}/gen_binary_files
72 %{_bindir}/import_interpolation
73 %{_bindir}/gen_unigram