Make “make check“ test cases work again when building the rpm

This commit is contained in:
Mike FABIAN 2018-08-23 03:27:05 +02:00
parent 98a61f3c75
commit 7a824159ed

View File

@ -1,6 +1,6 @@
Name: ibus-typing-booster
Version: 2.1.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A completion input method
License: GPLv3+, ASL 2.0
Group: System Environment/Libraries
@ -45,6 +45,7 @@ BuildRequires: hunspell-es
BuildRequires: hunspell-fr
BuildRequires: hunspell-it
BuildRequires: hunspell-ko
BuildRequires: glib2
BuildArch: noarch
%description
@ -105,20 +106,25 @@ pushd engine
python3 itb_emoji.py
python3 itb_util.py
popd
mkdir -p /tmp/glib-2.0/schemas/
cp org.freedesktop.ibus.engine.typing-booster.gschema.xml \
/tmp/glib-2.0/schemas/org.freedesktop.ibus.engine.typing-booster.gschema.xml
glib-compile-schemas /tmp/glib-2.0/schemas #&>/dev/null || :
export XDG_DATA_DIRS=/tmp
eval $(dbus-launch --sh-syntax)
dconf dump /
dconf write /desktop/ibus/engine/typing-booster/offtherecord false
dconf write /desktop/ibus/engine/typing-booster/usedigitsasselectkeys true
dconf write /desktop/ibus/engine/typing-booster/tabenable false
dconf write /desktop/ibus/engine/typing-booster/inputmethod "'NoIme'"
dconf write /desktop/ibus/engine/typing-booster/rememberlastusedpreeditime true
dconf write /desktop/ibus/engine/typing-booster/mincharcomplete 1
dconf write /desktop/ibus/engine/typing-booster/dictionary "'en_US'"
dconf write /desktop/ibus/engine/typing-booster/emojipredictions true
dconf write /desktop/ibus/engine/typing-booster/autocommitcharacters "''"
dconf write /desktop/ibus/engine/typing-booster/pagesize 6
dconf write /desktop/ibus/engine/typing-booster/shownumberofcandidates true
dconf write /desktop/ibus/engine/typing-booster/showstatusinfoinaux true
dconf write /org/freedesktop/ibus/engine/typing-booster/offtherecord false
dconf write /org/freedesktop/ibus/engine/typing-booster/usedigitsasselectkeys true
dconf write /org/freedesktop/ibus/engine/typing-booster/tabenable false
dconf write /org/freedesktop/ibus/engine/typing-booster/inputmethod "'NoIme'"
dconf write /org/freedesktop/ibus/engine/typing-booster/rememberlastusedpreeditime true
dconf write /org/freedesktop/ibus/engine/typing-booster/mincharcomplete 1
dconf write /org/freedesktop/ibus/engine/typing-booster/dictionary "'en_US'"
dconf write /org/freedesktop/ibus/engine/typing-booster/emojipredictions true
dconf write /org/freedesktop/ibus/engine/typing-booster/autocommitcharacters "''"
dconf write /org/freedesktop/ibus/engine/typing-booster/pagesize 6
dconf write /org/freedesktop/ibus/engine/typing-booster/shownumberofcandidates true
dconf write /org/freedesktop/ibus/engine/typing-booster/showstatusinfoinaux true
dconf dump /
ibus-daemon -drx
make check || cat ./tests/test-suite.log
@ -155,6 +161,9 @@ make check || cat ./tests/test-suite.log
%changelog
* Thu Aug 23 2018 Mike FABIAN <mfabian@redhat.com> - 2.1.0-2
- Make “make check“ test cases work again when building the rpm
* Tue Jul 24 2018 Mike FABIAN <mfabian@redhat.com> - 2.1.0-1
- Update to 2.1.0
- emoji-picker: Show a concise description of a selected emoji in the header bar