Name: pyzy Version: 0.1.0 Release: 3%{?dist} Summary: The Chinese PinYin and Bopomofo conversion library License: LGPLv2+ Group: System Environment/Libraries URL: http://code.google.com/p/pyzy Source0: http://pyzy.googlecode.com/files/%{name}-%{version}.tar.gz Source1: http://pyzy.googlecode.com/files/pyzy-database-1.0.0.tar.bz2 BuildRequires: glib2-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: sqlite-devel BuildRequires: libuuid-devel Requires: pyzy-db = %{version}-%{release} %description The Chinese Pinyin and Bopomofo conversion library. %package devel Summary: Development tools for pyzy Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: glib2-devel %description devel The pyzy-devel package contains the header files for pyzy. %package db-open-phrase Summary: The open phrase database for pyzy Group: System Environment/Libraries BuildArch: noarch Provides: pyzy-db Requires(post): sqlite %description db-open-phrase The phrase database for pyzy from open-phrase project. %package db-android Summary: The android phrase database for pyzy Group: System Environment/Libraries BuildArch: noarch Provides: pyzy-db Requires(post): sqlite %description db-android The phrase database for pyzy from android project. %prep %setup -q cp -p %{SOURCE1} data/db/open-phrase %build %configure --disable-static --enable-db-open-phrase # make -C po update-gmo make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS COPYING README %{_libdir}/lib*.so.* %{_datadir}/pyzy/phrases.txt %{_datadir}/pyzy/db/create_index.sql %dir %{_datadir}/pyzy %dir %{_datadir}/pyzy/db %files devel %{_libdir}/lib*.so %{_libdir}/pkgconfig/* %{_includedir}/* %files db-open-phrase %{_datadir}/pyzy/db/open-phrase.db %files db-android %{_datadir}/pyzy/db/android.db %changelog * Thu Dec 13 2012 Peng Wu - 0.1.0-3 - Improves spec file. * Tue Dec 11 2012 Peng Wu - 0.1.0-2 - Fixes spec file. * Fri Aug 08 2008 Peng Huang - 0.1.0-1 - The first version.