File ibus-pinyin.spec of Package ibus-pinyin

#
# spec file for package ibus-pinyin
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           ibus-pinyin
Version:        1.3.11
Release:        3
Summary:        The PinYin engine for IBus platform
License:        GPLv2+
Group:          System/I18n/Chinese
Provides:       locale(ibus:zh)
Url:            http://code.google.com/p/ibus/
Source0:        http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:        http://scim-python.googlecode.com/files/pinyin-database-1.2.99.tar.bz2
Patch:          ibus-pinyin-ibus-1.4-build.diff

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  gcc-c++ gettext-devel libuuid-devel sqlite3-devel
BuildRequires:  python >= 2.5
BuildRequires:  intltool
BuildRequires:  boost-devel
BuildRequires:  ibus-devel

Requires:       ibus

%description
PinYin engine for IBus platform. It provides a Chinese PinYin input method.
拼音输入法

%prep
%setup -q
%patch -p1
cp %{SOURCE1} data/db/open-phrase

%build
%configure --disable-static \
           --enable-db-open-phrase \
	   --libexecdir=%{_prefix}/%{_lib}/ibus

# make -C po update-gmo
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_datadir}/ibus-pinyin
%dir %{_datadir}/ibus
%dir %{_datadir}/ibus/component
%{_datadir}/ibus/component/*
%dir %{_libdir}/ibus
%{_libdir}/ibus/ibus-engine-pinyin
%{_libdir}/ibus/ibus-setup-pinyin

%changelog
openSUSE Build Service is sponsored by