File ibus-libpinyin.spec of Package ibus-libpinyin.12448

# spec file for package ibus-libpinyin
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 Hillwood Yang <>
# 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-libpinyin
Version:        1.11.1
Release:        0
Summary:        Intelligent Pinyin engine based on libpinyin for IBus
License:        GPL-2.0-or-later
Group:          System/I18n/Chinese
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  gnome-common
BuildRequires:  ibus-devel >= 1.4.99
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  libuuid-devel
BuildRequires:  opencc-devel >= 1.0.0
BuildRequires:  pkgconfig
BuildRequires:  sqlite3
BuildRequires:  sqlite3-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(libpinyin) >= 2.2.1
Requires:       python3-xdg
Provides:       locale(ibus:zh_CN;zh_SG)
%if 0%{?suse_version} <= 1320
BuildRequires:  lua51-devel
BuildRequires:  pkgconfig(lua)

It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo) input method based on libpinyin for IBus.

%setup -q

%configure --disable-static \
           --enable-opencc \
           --disable-boost \
           --enable-lua \
           --libexecdir=%{_libdir}/ibus \
           --libdir=%{_libdir} \

make %{?_smp_mflags}


%fdupes %{buildroot}
%find_lang %{name}

%suse_update_desktop_file ibus-setup-libpinyin Utility DesktopUtility System
%suse_update_desktop_file ibus-setup-libbopomofo Utility DesktopUtility System

%fdupes %{buildroot}

%files -f %{name}.lang
%license COPYING
%dir %{_datadir}/appdata
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/db

openSUSE Build Service is sponsored by