!5 Upgrade to version 2.23.4

From: @chen-jan 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-09-04 03:13:42 +00:00 committed by Gitee
commit a478610032
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 12 deletions

View File

@ -1,7 +1,6 @@
%define with_check 0
Name: ibus-typing-booster
Version: 2.16.0
Release: 2
Version: 2.23.4
Release: 1
Summary: A completion input method to speedup typing
License: GPL-3.0 and Apache-2.0
@ -11,13 +10,28 @@ Source0: https://github.com/mike-fabian/ibus-typing-booster/releases/down
BuildArch: noarch
BuildRequires: ibus-devel m17n-db-extras libappstream-glib glib2
BuildRequires: python3-devel python3-pyxdg python3-enchant
%if %{with_check}
BuildRequires: m17n-lib hunspell-cs hunspell-de hunspell-en
BuildRequires: hunspell-es hunspell-fr hunspell-it hunspell-ko
%endif
BuildRequires: gcc m17n-db-devel enchant2 gtk3 dconf dbus-x11 ibus
BuildRequires: xorg-x11-server-Xvfb make python3-packaging glibc-all-langpacks
BuildRequires: python3-libvoikko libvoikko-devel appstream desktop-file-utils
BuildRequires: python3-gobject python3-gobject-base
Requires: python3 >= 3.3 python3-dbus python3-enchant python3-pyxdg
Requires: cldr-emoji-annotation unicode-ucd ibus >= 1.5.3 m17n-lib
# Recommend reasonably good fonts which have most of the emoji:
Recommends: google-noto-emoji-fonts google-noto-emoji-color-fonts gdouros-symbola-fonts
# For better description of the dictionaries in the setup tool
# makes it possible to search for full language and territory names
# and not just locale codes:
Recommends: python3-langtable
# To play a sound on error:
Recommends: python3-simpleaudio
# Use better regexpressions if available:
Recommends: python3-regex
# To get the currently active window in a Gnome Wayland session:
Recommends: python3-pyatspi
Provides: emoji-picker = %{version}-%{release}
Obsoletes: emoji-picker < %{version}-%{release}
@ -32,23 +46,26 @@ Ibus-typing-booster is a completion input method to speedup typing.
%build
export PYTHON=%{__python3}
%configure --disable-additional
%configure --disable-static --disable-additional
%make_build
%install
export PYTHON=%{__python3}
%make_install NO_INDEX=true pkgconfigdir=%{_datadir}/pkgconfig
%py_byte_compile %{__python3} %{buildroot}/usr/share/ibus-typing-booster/engine
%py_byte_compile %{__python3} %{buildroot}/usr/share/ibus-typing-booster/setup
rm $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/annotations*/*.xml
rm $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/UnicodeData.txt
rm $RPM_BUILD_ROOT/%{_datadir}/%{name}/data/annotations/*.xml
rm $RPM_BUILD_ROOT/%{_datadir}/%{name}/data/annotationsDerived/*.xml
rm $RPM_BUILD_ROOT/%{_datadir}/%{name}/data/UnicodeData.txt
gzip -n --force --best $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/emoji*
gzip -n --force --best $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/*.txt
gzip -n --force --best $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/*.json
%find_lang ibus-typing-booster
%delete_la_and_a
%if %{with_check}
%check
export LC_ALL=en_US.UTF-8
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml
@ -86,7 +103,6 @@ dconf write /org/freedesktop/ibus/engine/typing-booster/showstatusinfoinaux true
dconf dump /
ibus-daemon -drx
make check || cat ./tests/test-suite.log
%endif
%post
[ -x %{_bindir}/ibus ] && %{_bindir}/ibus write-cache --system &>/dev/null || :
@ -109,10 +125,13 @@ make check || cat ./tests/test-suite.log
%files help
%defattr(-,root,root)
%doc README ChangeLog NEWS
%doc README README.html README.md
%changelog
* Fri Sep 01 2023 chenchen <chen_aka_jan@163.com> - 2.23.4-1
- Upgrade to version 2.23.4
* Thu Oct 20 2022 konglidong <konglidong@uniontech.com> - 2.16.0-2
- License compliance rectification