forked from pool/ibus-typing-booster
Accepting request 450225 from home:mike-fabian
OBS-URL: https://build.opensuse.org/request/show/450225 OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-typing-booster?expand=0&rev=1
This commit is contained in:
commit
e430d2d670
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
ibus-typing-booster-1.5.17.tar.gz
Normal file
3
ibus-typing-booster-1.5.17.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58dd950d2d5cf1b9f906527d4b2289a2035b83d98b8d9653f6dfd83498e012a4
|
||||
size 4844792
|
30
ibus-typing-booster.changes
Normal file
30
ibus-typing-booster.changes
Normal file
@ -0,0 +1,30 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 13 18:11:31 UTC 2017 - maiku.fabian@gmail.com
|
||||
|
||||
- update to 1.5.17
|
||||
- Update py-compile to current upstream version
|
||||
- Also use _ U+FF3F FULLWIDTH LOW LINE as a separator for emoji keywords
|
||||
- Unbreak sqlite on Python 3.6 (thanks to Jan Alexander Steffens)
|
||||
- Return immediately if _update_candidates() is called with
|
||||
empty input (Resolves: rhbz#1413082)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 10 15:30:05 UTC 2017 - maiku.fabian@gmail.com
|
||||
|
||||
- update to 1.5.16
|
||||
- Remove everything following a tab (including the tab) from
|
||||
hunspell dictionary lines (Resolves: rhbz#1411659)
|
||||
- Delete a candidate correctly from the user database even if
|
||||
it starts with a prefix to be stripped from tokens (Resolves: rhbz#1411676)
|
||||
- Trigger emoji lookup when the input starts or ends with '_' or ' '
|
||||
- Better handling of BackSpace and Delete when reaching the
|
||||
ends of the preëdit (Resolves: rhbz#1411688)
|
||||
- Search for hunspell dictionaries in a list of directories
|
||||
(Resolves: https://github.com/mike-fabian/ibus-typing-booster/issues/6)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 8 14:28:58 UTC 2016 - maiku.fabian@gmail.com
|
||||
|
||||
- first version for SuSE 1.5.15
|
||||
|
||||
|
146
ibus-typing-booster.spec
Normal file
146
ibus-typing-booster.spec
Normal file
@ -0,0 +1,146 @@
|
||||
# spec file for package ibus-typing-booster
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define __python3 /usr/bin/python3
|
||||
Name: ibus-typing-booster
|
||||
Version: 1.5.17
|
||||
Release: 1%{?dist}
|
||||
Summary: A completion input method
|
||||
License: GPL-3.0+
|
||||
Group: System Environment/Libraries
|
||||
URL: https://mike-fabian.github.io/ibus-typing-booster/
|
||||
Source0: https://fedorahosted.org/releases/i/b/ibus-typing-booster/%{name}-%{version}.tar.gz
|
||||
Source1: https://fedorahosted.org/releases/i/n/inscript2/inscript2-20160423.tar.gz
|
||||
Requires: ibus >= 1.5.3
|
||||
Requires: m17n-lib
|
||||
Requires: python3 >= 3.3
|
||||
Requires: dbus-1-python3
|
||||
Requires: python3-pyenchant
|
||||
# Recommend a reasonably good font which has most of the emoji:
|
||||
Recommends: gdouros-symbola-fonts
|
||||
BuildRequires: ibus-devel
|
||||
BuildRequires: python3-devel
|
||||
# for the unit tests
|
||||
BuildRequires: m17n-lib
|
||||
BuildRequires: m17n-db
|
||||
BuildRequires: python3-pyenchant
|
||||
%if 0%{?suse_version} == 1320
|
||||
BuildRequires: myspell-cs_CZ
|
||||
BuildRequires: myspell-de
|
||||
BuildRequires: myspell-en
|
||||
BuildRequires: myspell-es
|
||||
BuildRequires: myspell-it_IT
|
||||
%else
|
||||
BuildRequires: myspell-cs_CZ
|
||||
BuildRequires: myspell-de
|
||||
BuildRequires: myspell-de_DE
|
||||
BuildRequires: myspell-en
|
||||
BuildRequires: myspell-en_US
|
||||
BuildRequires: myspell-es
|
||||
BuildRequires: myspell-es_ES
|
||||
BuildRequires: myspell-it_IT
|
||||
%endif
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: python3-gobject
|
||||
BuildRequires: dbus-1-x11
|
||||
BuildRequires: fdupes
|
||||
|
||||
%description
|
||||
Ibus-typing-booster is a context sensitive completion
|
||||
input method to speedup typing.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
##extract inscript2 maps
|
||||
tar xzf %{SOURCE1}
|
||||
|
||||
%build
|
||||
export PYTHON=%{__python3}
|
||||
%configure --disable-static --disable-additional --libexecdir=%{_prefix}/%{_lib}/ibus
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
export PYTHON=%{__python3}
|
||||
make install DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true INSTALL="install -p" pkgconfigdir=%{_datadir}/pkgconfig
|
||||
gzip --force --best $RPM_BUILD_ROOT/%{_datadir}/%{name}/data/*.{xml,txt,json}
|
||||
|
||||
rm $RPM_BUILD_ROOT%{_datadir}/pkgconfig/%{name}.pc
|
||||
|
||||
#install inscript2 keymaps
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/m17n/icons
|
||||
cp -p inscript2/IM/* $RPM_BUILD_ROOT%{_datadir}/m17n/
|
||||
cp -p inscript2/icons/* $RPM_BUILD_ROOT%{_datadir}/m17n/icons
|
||||
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export M17NDIR=$RPM_BUILD_ROOT%{_datadir}/m17n/
|
||||
desktop-file-validate \
|
||||
$RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-typing-booster.desktop
|
||||
pushd engine
|
||||
# run doctests
|
||||
python3 hunspell_suggest.py
|
||||
python3 m17n_translit.py
|
||||
python3 itb_emoji.py
|
||||
python3 itb_util.py
|
||||
popd
|
||||
eval $(dbus-launch --sh-syntax)
|
||||
dconf dump /
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/offtherecord false
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/usedigitsasselectkeys true
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/tabenable false
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/inputmethod "'NoIme'"
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/adddirectinput false
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/rememberlastusedpreeditime true
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/mincharcomplete 1
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/dictionary "'en_US'"
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/emojipredictions true
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/autocommitcharacters "''"
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/pagesize 6
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/shownumberofcandidates true
|
||||
dconf write /desktop/ibus/engine/typing-booster/typing-booster-de-de/showstatusinfoinaux true
|
||||
dconf dump /
|
||||
ibus-daemon -drx
|
||||
make check || cat ./tests/test-suite.log
|
||||
|
||||
%post
|
||||
[ -x %{_bindir}/ibus ] && \
|
||||
%{_bindir}/ibus write-cache --system &>/dev/null || :
|
||||
|
||||
%postun
|
||||
[ -x %{_bindir}/ibus ] && \
|
||||
%{_bindir}/ibus write-cache --system &>/dev/null || :
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS COPYING README
|
||||
%{_datadir}/%{name}
|
||||
%dir %{_datadir}/appdata
|
||||
%{_datadir}/appdata/*.appdata.xml
|
||||
%{_datadir}/ibus/component/typing-booster.xml
|
||||
%{_libdir}/ibus/ibus-engine-typing-booster
|
||||
%{_libdir}/ibus/ibus-setup-typing-booster
|
||||
%{_datadir}/applications/ibus-setup-typing-booster.desktop
|
||||
%dir %{_datadir}/m17n
|
||||
%{_datadir}/m17n/*.mim
|
||||
%dir %{_datadir}/m17n/icons
|
||||
%{_datadir}/m17n/icons/*.png
|
||||
|
||||
%changelog
|
3
inscript2-20160423.tar.gz
Normal file
3
inscript2-20160423.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5814e72fc37ed84b38c775c0b6f0a5d37f87a2439d097c51b20e0521e7da3e7f
|
||||
size 36466
|
Loading…
Reference in New Issue
Block a user