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
12 BuildRequires: glib2-devel
13 BuildRequires: pkgconfig
16 The libpinyin project aims to provide the algorithms core
17 for intelligent sentence-based Chinese pinyin input methods.
20 Summary: Development files for %{name}
21 Requires: %{name} = %{version}-%{release}
24 The %{name}-devel package contains libraries and header files for
25 developing applications that use %{name}.
28 Summary: Tools for %{name}
29 Requires: %{name} = %{version}-%{release}
32 The %{name}-tools package contains tools.
39 %reconfigure --disable-static
40 %__make %{?_smp_mflags}
43 %make_install DESTDIR=%{buildroot}
44 find %{buildroot} -name '*.la' -exec rm -f {} ';'
46 %post -p /sbin/ldconfig
48 %postun -p /sbin/ldconfig
51 %manifest %{name}.manifest
55 %dir %{_libdir}/libpinyin
56 %{_libdir}/libpinyin/data
59 %manifest %{name}.manifest
60 %dir %{_includedir}/libpinyin-1.0.0
61 %{_includedir}/libpinyin-1.0.0/*
63 %{_libdir}/pkgconfig/libpinyin.pc
66 %manifest %{name}.manifest
67 %{_bindir}/gen_binary_files
68 %{_bindir}/import_interpolation
69 %{_bindir}/gen_unigram