File ibus-sunpinyin.spec of Package ibus-sunpinyin

# spec file for package ibus-sunpinyin
# Copyright (c) 2013 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

Name:           ibus-sunpinyin
Version:        2.0.3
Release:        0
Summary:        Sunpinyin module for ibus
License:        LGPL-2.1 or CDDL-1.0
Group:          System/I18n/Chinese
BuildRequires:  gcc-c++
BuildRequires:  ibus-devel
BuildRequires:  intltool
BuildRequires:  libsunpinyin-devel
BuildRequires:  python-devel
BuildRequires:  scons >= 1.2.0
%if 0%{?suse_version}
BuildRequires:  sqlite3-devel
BuildRequires:  sqlite-devel
Provides:       locale(ibus:zh_CN;zh_SG)
Requires:       python-ibus
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

ibus-sunpinyin is a wrapper around SunPinyin which enables user to use
SunPinyin with IBus framework.

%setup -q 
sed -i "s/LIBEXECDIR'\].*ibus-sunpinyin.*/LIBEXECDIR'\]/" SConstruct

scons --prefix=%{_prefix} --libdir=%{_libdir} --libexecdir=%{_libdir}/ibus

scons install --prefix=%{_prefix} --libdir=%{_libdir} --libexecdir=%{_libdir}/ibus --install-sandbox=%{buildroot}

%find_lang %{name}

%files -f %{name}.lang