Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Slowroll:Build:1
ibus-libpinyin
ibus-libpinyin.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ibus-libpinyin.spec of Package ibus-libpinyin
# # spec file for package ibus-libpinyin # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2023 Hillwood Yang <hillwood@opensuse.org> # # 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 https://bugs.opensuse.org/ # %define with_cloud_input 1 Name: ibus-libpinyin Version: 1.15.8 Release: 0 Summary: Intelligent Pinyin engine based on libpinyin for IBus License: GPL-3.0-or-later Group: System/I18n/Chinese URL: https://github.com/libpinyin/ibus-libpinyin Source0: https://github.com/libpinyin/ibus-libpinyin/releases/download/%{version}/%{name}-%{version}.tar.gz 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.7.91 BuildRequires: pkgconfig(lua) %if %{with_cloud_input} BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libsoup-3.0) %endif %if 0%{?suse_version} < 1600 && 0%{?sle_version} >= 150600 BuildRequires: python311-base Requires: python311-base Requires: python311-gobject-Gdk %endif %if 0%{?sle_version} < 150600 && 0%{?sle_version} >= 150000 BuildRequires: python310-base Requires: python310-base Requires: python310-gobject-Gdk %endif %if 0%{?suse_version} > 1500 BuildRequires: python3-base Requires: python3-base Requires: python3-gobject-Gdk %endif Provides: locale(ibus:zh_CN;zh_SG) %{ibus_requires} %description It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo) input method based on libpinyin for IBus. %prep %autosetup -p1 %build NOCONFIGURE=1 ./autogen.sh %configure --disable-static \ --enable-opencc \ --disable-boost \ --libexecdir=%{_ibus_libexecdir} \ --libdir=%{_libdir} \ %if %{with_cloud_input} --enable-cloud-input-mode \ %endif %if 0%{?suse_version} < 1600 && 0%{?sle_version} >= 150600 PYTHON=python3.11 %endif %if 0%{?sle_version} < 150600 && 0%{?sle_version} >= 150000 PYTHON=python3.10 %endif %if 0%{?suse_version} > 1500 PYTHON=python3 %endif %make_build %install %make_install %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 %defattr(-,root,root) %license COPYING %doc AUTHORS README NEWS %{_ibus_libexecdir}/ibus-engine-libpinyin %{_ibus_libexecdir}/ibus-setup-libpinyin %{_datadir}/applications/ibus-setup-libbopomofo.desktop %{_datadir}/applications/ibus-setup-libpinyin.desktop %{_datadir}/%{name}/base.lua %{_datadir}/%{name}/user.lua %{_datadir}/%{name}/db/english.db %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/db %dir %{_datadir}/metainfo %{_datadir}/%{name}/icons %{_datadir}/%{name}/setup %{_datadir}/%{name}/network.txt %{_datadir}/ibus-libpinyin/db/table.db %{_datadir}/metainfo/libpinyin.appdata.xml %{_datadir}/ibus %{_datadir}/glib-2.0/schemas/com.github.libpinyin.ibus-libpinyin.gschema.xml %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor