Name: ibus-table Version: 1.9.21 Release: 6 Summary: Table engine for Intelligent Input Bus (IBus) License: LGPLv2+ URL: https://github.com/kaio/ibus-table/ Source0: http://github.com/kaio/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz Patch0000: Add-exist_ok-True-in-os-makedirs-to-avoid-failure-due-to-race-condition.patch BuildArch: noarch BuildRequires: ibus-devel > 1.3.0, python3-devel, libappstream-glib Requires: ibus > 1.3.0, python3 >= 3.3 Obsoletes: ibus-table-additional < 1.2.0.20100111-5 %description This module is table engine for Intelligent Input Bus (IBus), which is an input method framework for multilingual input in Unix-like operating-systems. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release}, pkgconfig %description devel This package includes development files for %{name}. %package help Summary: man files for %{name} Requires: man %description help This package includes man files for %{name}. %prep %autosetup -p1 %build export PYTHON=%{__python3} %configure --disable-static --disable-additional %make_build %install export PYTHON=%{__python3} %make_install NO_INDEX=true pkgconfigdir=%{_datadir}/pkgconfig %find_lang %{name} %check appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/metainfo/*.appdata.xml desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-table.desktop cd engine python3 table.py python3 it_util.py cd - install -d /tmp/glib-2.0/schemas/ cp org.freedesktop.ibus.engine.table.gschema.xml /tmp/glib-2.0/schemas/ glib-compile-schemas /tmp/glib-2.0/schemas export XDG_DATA_DIRS=/tmp eval $(dbus-launch --sh-syntax) dconf dump / dconf write /org/freedesktop/ibus/engine/table/wubi-jidian/chinesemode 1 dconf write /org/freedesktop/ibus/engine/table/wubi-jidian/spacekeybehavior false dconf dump / ibus-daemon -drx make check || cat ./tests/test-suite.log %post [ -x %{_bindir}/ibus ] && %{_bindir}/ibus write-cache --system >/dev/null 2>&1 || : %postun [ -x %{_bindir}/ibus ] && %{_bindir}/ibus write-cache --system >/dev/null 2>&1 || : %files -f %{name}.lang %doc AUTHORS COPYING README %{_datadir}/%{name} %{_datadir}/metainfo/*.appdata.xml %{_datadir}/ibus/component/table.xml %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/org.freedesktop.*.gschema.xml %{_bindir}/*-createdb %{_libexecdir}/ibus-*-table %files devel %{_datadir}/pkgconfig/*.pc %files help %{_mandir}/man*/* %changelog * Sat Jan 09 2021 Ge Wang - 1.9.21-6 - Modify homepage url * Tue Jun 23 2020 lizhenhua - 1.9.21-5 - Add exist_ok=True in os.makedirs to avoid failure due to race condition * Tue Apr 7 2020 fuanan - 1.9.21-4 - Replace Source0 * Fri Nov 29 2019 openEuler Buildteam - 1.9.21-3 - Package init