Peng Wu 425ad31
%global snapshot 0
Peng Wu 5b51807
Peng Wu a4d2e0b
Name:       ibus-libpinyin
d528af1
Version:    1.11.92
ff4eb98
Release:    3%{?dist}
Peng Wu a4d2e0b
Summary:    Intelligent Pinyin engine based on libpinyin for IBus
de86aec
License:    GPLv3+
Peng Wu 7b500f7
URL:        https://github.com/libpinyin/ibus-libpinyin
Peng Wu ebff415
Source0:    http://downloads.sourceforge.net/libpinyin/ibus-libpinyin/%{name}-%{version}.tar.gz
Peng Wu 5b51807
%if %snapshot
208cb3c
Patch0:     ibus-libpinyin-1.12.x-head.patch
Peng Wu 5b51807
%endif
f51fbc1
Patch1:     ibus-libpinyin-1.11.92-fixes-lua-compile.patch
Peng Wu a4d2e0b
Peng Wu 5ca8d56
Requires:       python3-gobject
Peng Wu 274856a
Requires:       ibus >= 1.5.11
Peng Wu 25459a9
BuildRequires:  gcc-c++
Peng Wu a4d2e0b
BuildRequires:  gettext-devel
Peng Wu a4d2e0b
BuildRequires:  libtool
Peng Wu a4d2e0b
BuildRequires:  pkgconfig
Peng Wu a4d2e0b
BuildRequires:  sqlite-devel
Peng Wu a4d2e0b
BuildRequires:  libuuid-devel
Peng Wu a4d2e0b
BuildRequires:  lua-devel
Peng Wu 5ca8d56
BuildRequires:  python3-devel
Peng Wu 8faf685
BuildRequires:  desktop-file-utils
Peng Wu 274856a
BuildRequires:  ibus-devel >= 1.5.11
Peng Wu a42d1e4
BuildRequires:  libpinyin-devel >= 2.1.0
Peng Wu a4d2e0b
Peng Wu a4d2e0b
# Requires(post): sqlite
Peng Wu a4d2e0b
Peng Wu 274856a
Requires:   libpinyin-data%{?_isa} >= 1.5.91
Peng Wu a4d2e0b
Peng Wu 8400d41
Obsoletes: ibus-pinyin < 1.4.0-17
Peng Wu 7974e2e
Peng Wu a4d2e0b
%description
Peng Wu a4d2e0b
It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo) 
Peng Wu a4d2e0b
input method based on libpinyin for IBus.
Peng Wu a4d2e0b
Peng Wu a4d2e0b
%prep
Peng Wu a4d2e0b
%setup -q
Peng Wu 5b51807
%if %snapshot
Peng Wu d2e7d42
%patch0 -p1 -b .head
Peng Wu 5b51807
%endif
f51fbc1
%patch1 -p1 -b .lua
Peng Wu a4d2e0b
Peng Wu a4d2e0b
%build
Peng Wu a4d2e0b
%configure --disable-static \
Peng Wu 5ca8d56
           --with-python=python3 \
Peng Wu a4d2e0b
           --disable-boost
Peng Wu a4d2e0b
Peng Wu a4d2e0b
# make -C po update-gmo
ff4eb98
%make_build
Peng Wu a4d2e0b
Peng Wu 8faf685
%check
Peng Wu 19600bf
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libpinyin.desktop
Peng Wu 19600bf
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libbopomofo.desktop
Peng Wu 8faf685
Peng Wu a4d2e0b
%install
ff4eb98
%make_install
Peng Wu a4d2e0b
93a7ba1
%py_byte_compile %{python3} $RPM_BUILD_ROOT%{_datadir}/ibus-libpinyin/setup
de86aec
Peng Wu a4d2e0b
%find_lang %{name}
Peng Wu a4d2e0b
Peng Wu bdf93b3
%post
Peng Wu bdf93b3
[ -x %{_bindir}/ibus ] && \
Peng Wu bdf93b3
  %{_bindir}/ibus write-cache --system &>/dev/null || :
Peng Wu bdf93b3
Peng Wu bdf93b3
%postun
Peng Wu bdf93b3
[ -x %{_bindir}/ibus ] && \
Peng Wu bdf93b3
  %{_bindir}/ibus write-cache --system &>/dev/null || :
Peng Wu bdf93b3
Peng Wu a4d2e0b
%files -f %{name}.lang
Peng Wu a4d2e0b
%doc AUTHORS COPYING README
Richard Hughes 6e6b7be
%{_datadir}/appdata/*.appdata.xml
Peng Wu 11400f1
%{_datadir}/glib-2.0/schemas/*.gschema.xml
Peng Wu 32b13cf
%{_datadir}/applications/ibus-setup-libpinyin.desktop
Peng Wu 32b13cf
%{_datadir}/applications/ibus-setup-libbopomofo.desktop
Peng Wu a4d2e0b
%{_libexecdir}/ibus-engine-libpinyin
Peng Wu a4d2e0b
%{_libexecdir}/ibus-setup-libpinyin
Peng Wu a4d2e0b
%{_datadir}/ibus-libpinyin/icons
Peng Wu a4d2e0b
%{_datadir}/ibus-libpinyin/setup
Peng Wu a4d2e0b
%{_datadir}/ibus-libpinyin/base.lua
Peng Wu ebff415
%{_datadir}/ibus-libpinyin/user.lua
Peng Wu a4d2e0b
%{_datadir}/ibus-libpinyin/db/english.db
Peng Wu 32b13cf
%{_datadir}/ibus-libpinyin/db/strokes.db
Peng Wu a4d2e0b
%dir %{_datadir}/ibus-libpinyin
Peng Wu a4d2e0b
%dir %{_datadir}/ibus-libpinyin/db
Peng Wu a4d2e0b
%{_datadir}/ibus/component/*
Peng Wu a4d2e0b
Peng Wu a4d2e0b
%changelog
ff4eb98
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.11.92-3
ff4eb98
- Use make macros
ff4eb98
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
ff4eb98
de86aec
* Mon Jul 13 2020 Peng Wu <pwu@redhat.com> - 1.11.92-2
de86aec
- Switch to use py_byte_compile rpm macro
de86aec
d528af1
* Thu Mar 19 2020 Peng Wu <pwu@redhat.com> - 1.11.92-1
d528af1
- Update to 1.11.92
d528af1
- fixes desktop files
d528af1
208cb3c
* Thu Mar 19 2020 Peng Wu <pwu@redhat.com> - 1.11.91-1
208cb3c
- Update to 1.11.91
208cb3c
- support compact display style
208cb3c
- bug fixes
208cb3c
91872d2
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-3
91872d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
91872d2
75973b8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
75973b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
75973b8
Peng Wu 992db51
* Mon May 20 2019 Peng Wu <pwu@redhat.com> - 1.11.1-1
Peng Wu 992db51
- Update to 1.11.1
Peng Wu 992db51
- use gettext
Peng Wu 992db51
- add emoji-candidate option
Peng Wu 992db51
- fixes SuggestionEditor
Peng Wu 992db51
39e14d3
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
39e14d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
39e14d3
Peng Wu 6a2fb1f
* Mon Jan 21 2019 Peng Wu <pwu@redhat.com> - 1.11.0-1
Peng Wu 6a2fb1f
- Update to 1.11.0
Peng Wu 6a2fb1f
- fixes keypad decimal
Peng Wu 6a2fb1f
- fixes emoji candidates
Peng Wu 6a2fb1f
- support configurable opencc config
Peng Wu 6a2fb1f
Peng Wu 7994170
* Wed Oct 31 2018 Peng Wu <pwu@redhat.com> - 1.10.92-1
Peng Wu 7994170
- Update to 1.10.92
Peng Wu 7994170
- fixes Enter handling
Peng Wu 7994170
Peng Wu e48e0b0
* Thu Oct 11 2018 Peng Wu <pwu@redhat.com> - 1.10.91-1
Peng Wu e48e0b0
- Update to 1.10.91
Peng Wu e48e0b0
- support ime.register_trigger in lua extension
Peng Wu e48e0b0
- support predicted candidates
Peng Wu e48e0b0
- support emoji input
Peng Wu e48e0b0
ef9dc48
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
ef9dc48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ef9dc48
f7eab6c
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.10.0-2
f7eab6c
- Rebuilt for Python 3.7
f7eab6c
Peng Wu 5a163d7
* Tue Apr 17 2018 Peng Wu <pwu@redhat.com> - 1.10.0-1
Peng Wu 5a163d7
- Update to 1.10.0
Peng Wu 5a163d7
- bug fixes
Peng Wu 5a163d7
Peng Wu 11400f1
* Thu Mar 22 2018 Peng Wu <pwu@redhat.com> - 1.9.91-1
Peng Wu 11400f1
- Update to 1.9.91
Peng Wu 11400f1
- migrate to use GSettings
Peng Wu 11400f1
Peng Wu fba0f44
* Thu Feb  8 2018 Peng Wu <pwu@redhat.com> - 1.9.3-1
Peng Wu fba0f44
- Update to 1.9.3
Peng Wu fba0f44
- translate input method name in ibus menu
Peng Wu fba0f44
e2d5249
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-2
e2d5249
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e2d5249
Peng Wu 425ad31
* Mon Sep  4 2017 Peng Wu <pwu@redhat.com> - 1.9.2-1
Peng Wu 425ad31
- Update to 1.9.2
Peng Wu 425ad31
Peng Wu 3e28863
* Mon Aug 28 2017 Peng Wu <pwu@redhat.com> - 1.9.1-2
Peng Wu 3e28863
- Fixes pinyin and bopomofo config
Peng Wu 3e28863
Peng Wu a42d1e4
* Thu Aug 24 2017 Peng Wu <pwu@redhat.com> - 1.9.1-1
Peng Wu a42d1e4
- Update to 1.9.1
Peng Wu a42d1e4
- add sort candidate option to setup dialog
Peng Wu a42d1e4
a593f04
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
a593f04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a593f04
bb9b87e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
bb9b87e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bb9b87e
Peng Wu c75671a
* Fri Jun  9 2017 Peng Wu <pwu@redhat.com> - 1.9.0-2
Peng Wu c75671a
- Rebuilt for libpinyin 2.0.91
Peng Wu c75671a
Peng Wu 78487fb
* Thu Apr 20 2017 Peng Wu <pwu@redhat.com> - 1.9.0-1
Peng Wu 78487fb
- Update to 1.9.0
Peng Wu 78487fb
Peng Wu 959f7e4
* Tue Mar  7 2017 Peng Wu <pwu@redhat.com> - 1.8.92-1
Peng Wu 959f7e4
- Update to 1.8.92
Peng Wu 959f7e4
- fixes config
Peng Wu 959f7e4
Peng Wu cf8039a
* Tue Feb 28 2017 Peng Wu <pwu@redhat.com> - 1.8.91-2
Peng Wu cf8039a
- Fixes config in setup dialog
Peng Wu cf8039a
Peng Wu 6b9b698
* Wed Feb 15 2017 Peng Wu <pwu@redhat.com> - 1.8.91-1
Peng Wu 6b9b698
- Update to 1.8.91
Peng Wu 6b9b698
- use libpinyin 1.9.91
Peng Wu 6b9b698
e325724
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
e325724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e325724
Peng Wu 347e388
* Wed Nov 30 2016 Peng Wu <pwu@redhat.com> - 1.8.1-1
Peng Wu 347e388
- Update to 1.8.1
Peng Wu 347e388
- change dconf key name to lower case
Peng Wu 347e388
Peng Wu 215079d
* Tue Nov  1 2016 Peng Wu <pwu@redhat.com> - 1.8.0-2
Peng Wu 215079d
- Rebuilt for libpinyin 1.6.91
Peng Wu 215079d
Peng Wu b7ec8d1
* Wed Sep  7 2016 Peng Wu <pwu@redhat.com> - 1.8.0-1
Peng Wu b7ec8d1
- Update to 1.8.0
Peng Wu b7ec8d1
Peng Wu 2a9c342
* Tue Aug  9 2016 Peng Wu <pwu@redhat.com> - 1.7.92-2
Peng Wu 2a9c342
- Fixes crashes for Full Pinyin and Bopomofo
Peng Wu 2a9c342
Peng Wu 588a653
* Tue Aug  2 2016 Peng Wu <pwu@redhat.com> - 1.7.92-1
Peng Wu 588a653
- Update to 1.7.92
Peng Wu 588a653
Peng Wu 274856a
* Mon Jul 18 2016 Peng Wu <pwu@redhat.com> - 1.7.91-1
Peng Wu 274856a
- Update to 1.7.91
Peng Wu 274856a
c9e976c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-2
c9e976c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c9e976c
Peng Wu 9b3d348
* Thu Dec 17 2015 Peng Wu <pwu@redhat.com> - 1.7.4-1
Peng Wu 9b3d348
- Update to 1.7.4
Peng Wu 9b3d348
Peng Wu a0a7789
* Mon Dec 14 2015 Peng Wu <pwu@redhat.com> - 1.7.3-3
Peng Wu a0a7789
- Update patch
Peng Wu a0a7789
Peng Wu bf82c56
* Mon Dec 14 2015 Peng Wu <pwu@redhat.com> - 1.7.3-2
Peng Wu bf82c56
- Fixes crash when use "Bopomofo" engine for first time
Peng Wu bf82c56
Peng Wu 792ea14
* Tue Nov 17 2015 Peng Wu <pwu@redhat.com> - 1.7.3-1
Peng Wu 792ea14
- Update to 1.7.3
Peng Wu 792ea14
52d26f6
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-2
52d26f6
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
52d26f6
Peng Wu 138b263
* Wed Jul  8 2015 Peng Wu <pwu@redhat.com> - 1.7.2-1
Peng Wu 138b263
- Update to 1.7.2
Peng Wu 138b263
836e384
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-4
836e384
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
836e384
16b1e7c
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.7.1-3
16b1e7c
- Rebuilt for GCC 5 C++11 ABI change
16b1e7c
Richard Hughes 6e6b7be
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.7.1-2
Richard Hughes 6e6b7be
- Register as an AppStream component.
Richard Hughes 6e6b7be
Peng Wu 65eb0ad
* Wed Mar 25 2015 Peng Wu <pwu@redhat.com> - 1.7.1-1
Peng Wu 65eb0ad
- Update 1.7.1
Peng Wu 65eb0ad
Peng Wu 9299cc4
* Mon Mar  9 2015 Peng Wu <pwu@redhat.com> - 1.7.0-2
Peng Wu 9299cc4
- Fixes ibus-libpinyin upstream issue #33
Peng Wu 9299cc4
Peng Wu 5ca8d56
* Wed Mar  4 2015 Peng Wu <pwu@redhat.com> - 1.7.0-1
Peng Wu 5ca8d56
- Update to 1.7.0
Peng Wu 5ca8d56
Peng Wu 8046f53
* Thu Feb 12 2015 Peng Wu <pwu@redhat.com> - 1.6.99.20150203-2
Peng Wu 8046f53
- Disable opencc according to upstream issue #26
Peng Wu 8046f53
Peng Wu 31ac414
* Tue Feb  3 2015 Peng Wu <pwu@redhat.com> - 1.6.99.20150203-1
Peng Wu 31ac414
- Update to 1.6.99.20150203
Peng Wu 31ac414
Peng Wu e355853
* Wed Jan  7 2015 Peng Wu <pwu@redhat.com> - 1.6.92-5
Peng Wu e355853
- Use opencc 1.0.2
Peng Wu e355853
781d506
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.92-4
781d506
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
781d506
425183d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.92-3
425183d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
425183d
Peng Wu 96e1200
* Wed Nov 13 2013 Peng Wu <pwu@redhat.com> - 1.6.92-2
Peng Wu 96e1200
- Fixes click of ibus-libpinyin indicator menu. (rhbz#1028905)
Peng Wu 96e1200
Peng Wu cffa5b3
* Thu Oct 24 2013 Peng Wu <pwu@redhat.com> - 1.6.92-1
Peng Wu cffa5b3
- Update to 1.6.92
Peng Wu cffa5b3
Peng Wu 201a5dc
* Mon Oct 14 2013 Peng Wu <pwu@redhat.com> - 1.6.91-5
Peng Wu 201a5dc
- Update ibus-libpinyin-1.7.x-head.patch
Peng Wu 201a5dc
- Support ibus input purpose feature, fixes bug 1016438.
Peng Wu 201a5dc
- Remove pyxdg depends, fixes bug 1016941.
Peng Wu 201a5dc
Peng Wu bdf93b3
* Tue Oct  8 2013 Peng Wu <pwu@redhat.com> - 1.6.91-4
Peng Wu bdf93b3
- Write ibus system cache when install or uninstall
Peng Wu bdf93b3
Peng Wu 09fa2bf
* Wed Jul 31 2013 Peng Wu <pwu@redhat.com> - 1.6.91-3
Peng Wu 09fa2bf
- Fixes lua 5.2 compile
Peng Wu 09fa2bf
Peng Wu 5253c31
* Tue Jul 30 2013 Peng Wu <pwu@redhat.com> - 1.6.91-2
Peng Wu 5253c31
- Update the symbol of the ibus indicator
Peng Wu 5253c31
Peng Wu fc98aae
* Sun Apr 28 2013 Peng Wu <pwu@redhat.com> - 1.6.91-1
Peng Wu fc98aae
- Update to 1.6.91
Peng Wu fc98aae
Peng Wu 60eae94
* Tue Mar 19 2013 Peng Wu <pwu@redhat.com> - 1.5.92-1
Peng Wu 60eae94
- Update to 1.5.92
Peng Wu 60eae94
Peng Wu 16adccd
* Mon Mar  4 2013 Peng Wu <pwu@redhat.com> - 1.5.91-1
Peng Wu 16adccd
- Update to 1.5.91
Peng Wu 16adccd
b14c08c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.93-5
b14c08c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b14c08c
Peng Wu 720580c
* Tue Nov 27 2012  Peng Wu <pwu@redhat.com> - 1.4.93-4
Peng Wu 720580c
- Fixes symbol icons
Peng Wu 720580c
Peng Wu 8faf685
* Tue Nov 20 2012  Peng Wu <pwu@redhat.com> - 1.4.93-3
Peng Wu 8faf685
- Fixes spec file
Peng Wu 8faf685
Peng Wu ca7284e
* Mon Oct 29 2012  Peng Wu <pwu@redhat.com> - 1.4.93-2
Peng Wu ca7284e
- Fixes libpinyin Requires
Peng Wu ca7284e
Peng Wu 9544ea5
* Mon Oct 15 2012  Peng Wu <pwu@redhat.com> - 1.4.93-1
Peng Wu 9544ea5
- Update to 1.4.93
Peng Wu 9544ea5
Peng Wu 1b4b462
* Mon Sep 17 2012  Peng Wu <pwu@redhat.com> - 1.4.92-1
Peng Wu 1b4b462
- Update to 1.4.92
Peng Wu 1b4b462
Peng Wu 43860fa
* Thu Aug 16 2012  Peng Wu <pwu@redhat.com> - 1.4.91-1
Peng Wu 43860fa
- Update to 1.4.91
Peng Wu 43860fa
Peng Wu 32b13cf
* Mon Aug 06 2012  Peng Wu <pwu@redhat.com> - 1.4.2-1
Peng Wu 32b13cf
- Update to 1.4.2
Peng Wu 32b13cf
1ae7348
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-5
1ae7348
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1ae7348
Peng Wu 68966c6
* Mon Jul 16 2012  Peng Wu <pwu@redhat.com> - 1.4.1-4
Peng Wu 68966c6
- Fixes obsoletes
Peng Wu 68966c6
Peng Wu d125dd9
* Wed Jul 11 2012  Peng Wu <pwu@redhat.com> - 1.4.1-3
Peng Wu d125dd9
- Update ibus-libpinyin-1.4.x-head.patch
Peng Wu d125dd9
Peng Wu c8bb4c7
* Tue Jul 10 2012  Peng Wu <pwu@redhat.com> - 1.4.1-2
Peng Wu c8bb4c7
- Update ibus-libpinyin-1.4.x-head.patch
Peng Wu c8bb4c7
Peng Wu d2e7d42
* Wed Jul 04 2012  Peng Wu <pwu@redhat.com> - 1.4.1-1
Peng Wu d2e7d42
- Update to 1.4.1
Peng Wu d2e7d42
Peng Wu a4d2e0b
* Fri Jun 01 2012  Peng Wu <pwu@redhat.com> - 1.4.0-1
Peng Wu a4d2e0b
- The first version.