Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

103 lines (81 sloc) 2.658 kB
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: The Chinese Pinyin and Bopomofo engines for IBus input platform
License: GPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/ibus
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: pinyin-database-1.2.99.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext-devel
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: sqlite-devel
BuildRequires: libuuid-devel
BuildRequires: boost-devel >= 1.39
BuildRequires: ibus-devel >= 1.3
# Requires(post): sqlite
Requires: ibus >= 1.2.0
Requires: ibus-pinyin-db = %{version}-%{release}
%description
The Chinese Pinyin and Bopomof input methods for IBus platform.
%package db-open-phrase
Summary: The open phrase database for ibus Pinyin
Group: System Environment/Libraries
BuildArch: noarch
Provides: ibus-pinyin-db
Requires(post): sqlite
%description db-open-phrase
The phrase database for ibus Pinyin and Bopomofo from open-phrase project.
%package db-android
Summary: The android phrase database for ibus Pinyin and Bopomofo
Group: System Environment/Libraries
BuildArch: noarch
Provides: ibus-pinyin-db
Requires(post): sqlite
%description db-android
The phrase database for ibus Pinyin and Bopomofo from android project.
%prep
%setup -q
cp %{SOURCE1} data/db/open-phrase
%build
%configure --disable-static --enable-db-open-phrase
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
# make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install
make DESTDIR=${RPM_BUILD_ROOT} install
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
# cd %{_datadir}/ibus-pinyin/db
# sqlite3 android.db ".read create_index.sql"
%post db-open-phrase
# cd %{_datadir}/ibus-pinyin/db
# sqlite3 open-phrase.db ".read create_index.sql"
%post db-android
# cd %{_datadir}/ibus-pinyin/db
# sqlite3 android.db ".read create_index.sql"
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_libexecdir}/ibus-engine-pinyin
%{_libexecdir}/ibus-setup-pinyin
%{_datadir}/@PACKAGE@/phrases.txt
%{_datadir}/@PACKAGE@/icons
%{_datadir}/@PACKAGE@/setup
%{_datadir}/@PACKAGE@/db/create_index.sql
%dir %{_datadir}/@PACKAGE@
%dir %{_datadir}/@PACKAGE@/db
%{_datadir}/ibus/component/*
%files db-open-phrase
%{_datadir}/@PACKAGE@/db/open-phrase.db
%files db-android
%{_datadir}/@PACKAGE@/db/android.db
%changelog
* Fri Aug 08 2008 Peng Huang <shawn.p.huang@gmail.com> - @VERSION@-1
- The first version.
Jump to Line
Something went wrong with that request. Please try again.