Name: libpinyin Version: @VERSION@ Release: 1%{?dist} Summary: Library to deal with pinyin License: GPLv2+ URL: https://github.com/libpinyin/libpinyin Source0: https://github.com/downloads/libpinyin/libpinyin/%{name}-%{version}.tar.gz BuildRequires: db4-devel, glib2-devel #Requires: %description The libpinyin project aims to provide the algorithms core for intelligent sentence-based Chinese pinyin input methods. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %configure --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS COPYING README %{_libdir}/*.so.* %dir %{_datadir}/libpinyin %{_datadir}/libpinyin/data %files devel %doc %{_includedir}/libpinyin-0.3/* %{_libdir}/*.so %{_libdir}/pkgconfig/libpinyin.pc %changelog * Wed Aug 31 2011 Peng Wu - 0.2.99-1 - Initial version