File ibus-googlepinyin.spec of Package ibus-googlepinyin

# spec file for package ibus-googlepinyin
# Copyright (c) 2018 SUSE LINUX 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-googlepinyin
Version:        0.1.2
Release:        0
Summary:        This package is for IBus to use libgooglepinyin
License:        GPL-2.0+
Group:          System/I18n/Chinese 
BuildArch:      noarch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  ibus-devel
BuildRequires:  intltool
BuildRequires:  libgooglepinyin-devel
BuildRequires:  python-devel
%if 0%{?suse_version}
BuildRequires:  sqlite3-devel
BuildRequires:  desktop-notification-daemon
BuildRequires:  kdebase-runtime
BuildRequires:  notification-daemon
BuildRequires:  sqlite-devel
BuildRequires:  xfce4-notifyd
Source:         %{name}-%{version}.tar.bz2
Patch:          FSF-address.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       ibus
Requires:       libgooglepinyin0
Requires:       python-ibus


libgooglepinyin is a fork of Google Pinyin on Android, it features to have excellent input 
experience and uses little resource.

This package is for IBus to use libgooglepinyin. 

%setup -q -n %{name}
%patch -p1

mkdir build
cd build
cmake   -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DLIB_INSTALL_DIR=%{_libdir} \
make %{?smp_mflags}

cd build


openSUSE Build Service is sponsored by