Compare commits

..

No commits in common. "075409a8bda999d226f6655d6340276a8841b224" and "a181b7abcc66ce0cc3f51a615e960e456f65e4c8" have entirely different histories.

4 changed files with 13 additions and 45 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,37 +1,23 @@
%define with_check 0
Name: ibus-typing-booster
Version: 2.24.4
Release: 1
Version: 2.1.2
Release: 3
Summary: A completion input method to speedup typing
License: GPL-3.0 and Apache-2.0
License: GPLv3+, ASL 2.0
URL: https://mike-fabian.github.io/ibus-typing-booster/
Source0: https://github.com/mike-fabian/ibus-typing-booster/releases/download/%{version}/ibus-typing-booster-%{version}.tar.gz
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
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
%endif
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}
@ -46,26 +32,23 @@ Ibus-typing-booster is a completion input method to speedup typing.
%build
export PYTHON=%{__python3}
%configure --disable-static --disable-additional
%configure --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}/%{name}/data/annotations/*.xml
rm $RPM_BUILD_ROOT/%{_datadir}/%{name}/data/annotationsDerived/*.xml
rm $RPM_BUILD_ROOT/%{_datadir}/%{name}/data/UnicodeData.txt
rm $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/annotations*/*.xml
rm $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/UnicodeData.txt
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
gzip -n --force --best $RPM_BUILD_ROOT/%{_datadir}/ibus-typing-booster/data/emoji*
%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
@ -103,6 +86,7 @@ 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 || :
@ -125,21 +109,9 @@ make check || cat ./tests/test-suite.log
%files help
%defattr(-,root,root)
%doc README README.html README.md
%doc README ChangeLog NEWS
%changelog
* Wed Nov 29 2023 wangqia <wangqia@uniontech.com> - 2.24.4-1
- Upgrade to version 2.24.4
* 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
* Tue Jun 21 2022 SimpleUpdate Robot <tc@openeuler.org> - 2.16.0-1
- Upgrade to version 2.16.0
* Thu Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.2-3
- Package init

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: mike-fabian/ibus-typing-booster
tag_prefix: ^v
seperator: .