Peng Wu 3033ff0
%global snapshot 0
Peng Wu ab7acbb
Peng Wu d3a5b64
Name:       ibus-libzhuyin
e860130
Version:    1.10.0
0d67f91
Release:    3%{?dist}
Peng Wu d3a5b64
Summary:    New Zhuyin engine based on libzhuyin for IBus
Peng Wu d3a5b64
License:    GPLv2+
Peng Wu d3a5b64
URL:        https://github.com/libzhuyin/ibus-libzhuyin
Peng Wu d3a5b64
Source0:    http://downloads.sourceforge.net/libzhuyin/ibus-libzhuyin/%{name}-%{version}.tar.gz
Peng Wu ab7acbb
%if %snapshot
fb4d90b
Patch0:     ibus-libzhuyin-1.10.x-HEAD.patch
Peng Wu ab7acbb
%endif
Peng Wu d3a5b64
Peng Wu c27911d
BuildRequires:  gcc-c++
Peng Wu d3a5b64
BuildRequires:  gettext-devel
Peng Wu d3a5b64
BuildRequires:  intltool
Peng Wu d3a5b64
BuildRequires:  libtool
Peng Wu d3a5b64
BuildRequires:  pkgconfig
Peng Wu d3a5b64
BuildRequires:  sqlite-devel
Peng Wu d3a5b64
BuildRequires:  ibus-devel >= 1.3
Peng Wu 5e8a850
BuildRequires:  libpinyin-devel >= 2.0.91
Peng Wu 56c5dad
BuildRequires:  python3-devel
Peng Wu 5e8a850
BuildRequires:  libpinyin-tools
3e61def
BuildRequires: make
Peng Wu d3a5b64
Peng Wu d3a5b64
# Requires(post): sqlite
Peng Wu d3a5b64
Peng Wu d3a5b64
Requires:   ibus >= 1.3.0
Peng Wu 5e8a850
Provides:   libzhuyin-data = 1.1.2
Peng Wu 5e8a850
Obsoletes:  libzhuyin-data < 1.1.2
Peng Wu d3a5b64
Peng Wu d3a5b64
%description
Peng Wu d3a5b64
It includes a Chinese Zhuyin (Bopomofo) input method
Peng Wu d3a5b64
based on libzhuyin for IBus.
Peng Wu d3a5b64
Peng Wu d3a5b64
%prep
Peng Wu d3a5b64
%setup -q
Peng Wu ab7acbb
%if %snapshot
Peng Wu ab7acbb
%patch0 -p1 -b .head
Peng Wu ab7acbb
%endif
Peng Wu ab7acbb
Peng Wu d3a5b64
Peng Wu d3a5b64
%build
Peng Wu d3a5b64
%configure --disable-static \
Peng Wu 56c5dad
           --disable-boost \
Peng Wu 56c5dad
           --with-python=python3
Peng Wu d3a5b64
Peng Wu d3a5b64
# make -C po update-gmo
d7fe986
%make_build
Peng Wu d3a5b64
Peng Wu d3a5b64
%install
d7fe986
%make_install
Peng Wu d3a5b64
2125755
%py_byte_compile %{python3} $RPM_BUILD_ROOT%{_datadir}/ibus-libzhuyin/setup
0b2dce8
Peng Wu b6590e8
%find_lang %{name}
Peng Wu b6590e8
Peng Wu b6590e8
%files -f %{name}.lang
Peng Wu 32c941f
%doc AUTHORS COPYING README ChangeLog INSTALL NEWS
Peng Wu 56c5dad
%{_datadir}/appdata/*.appdata.xml
Peng Wu 90973bd
%{_datadir}/glib-2.0/schemas/*.gschema.xml
Peng Wu 86211ec
%{_datadir}/applications/ibus-setup-libzhuyin.desktop
Peng Wu d3a5b64
%{_libexecdir}/ibus-engine-libzhuyin
Peng Wu d3a5b64
%{_libexecdir}/ibus-setup-libzhuyin
Peng Wu d3a5b64
%{_datadir}/ibus-libzhuyin/setup
Peng Wu d3a5b64
%dir %{_datadir}/ibus-libzhuyin
Peng Wu d3a5b64
%{_datadir}/ibus/component/*
Peng Wu 86211ec
%{_datadir}/ibus-libzhuyin/icons
Peng Wu 86211ec
%{_datadir}/ibus-libzhuyin/*symbol.txt
Peng Wu 5e8a850
%{_libdir}/ibus-libzhuyin/
Peng Wu 86211ec
Peng Wu d3a5b64
Peng Wu d3a5b64
%changelog
0d67f91
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
0d67f91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0d67f91
b531c54
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
b531c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b531c54
e860130
* Wed Dec 16 2020 Peng Wu <pwu@redhat.com> - 1.10.0-1
e860130
- Update to 1.10.0
e860130
- bug fixes
e860130
46bd740
* Mon Nov  2 2020 Peng Wu <pwu@redhat.com> - 1.9.92-1
46bd740
- Update to 1.9.92
46bd740
- update zhuyin data
46bd740
fb4d90b
* Thu Oct 29 2020 Peng Wu <pwu@redhat.com> - 1.9.91-1
fb4d90b
- Update to 1.9.91
fb4d90b
- support libpinyin 2.4.92
fb4d90b
50112a4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-6
50112a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
50112a4
d7fe986
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.9.1-5
d7fe986
- Use make macros
d7fe986
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
d7fe986
0b2dce8
* Mon Jul 13 2020 Peng Wu <pwu@redhat.com> - 1.9.1-4
0b2dce8
- Switch to use py_byte_compile rpm macro
0b2dce8
3736737
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-3
3736737
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3736737
be957a9
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
be957a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
be957a9
Peng Wu a1053fb
* Mon May 20 2019 Peng Wu <pwu@redhat.com> - 1.9.1-1
Peng Wu a1053fb
- Update to 1.9.1
Peng Wu a1053fb
- fixes page up and page down shortcut key
Peng Wu a1053fb
- fixes special symbols
Peng Wu a1053fb
- fixes escape handling
Peng Wu a1053fb
- fixes numpad
Peng Wu a1053fb
9462b2f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
9462b2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9462b2f
Peng Wu 9254064
* Tue Jan 22 2019 Peng Wu <pwu@redhat.com> - 1.9.0-1
Peng Wu 9254064
- Update to 1.9.0
Peng Wu 9254064
- fixes special symbol
Peng Wu 9254064
- add need-tone option
Peng Wu 9254064
Peng Wu 37b3801
* Fri Nov  2 2018 Peng Wu <pwu@redhat.com> - 1.8.93-1
Peng Wu 37b3801
- Update to 1.8.93
Peng Wu 37b3801
- fixes Space handling
Peng Wu 37b3801
f0ffecf
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.92-3
f0ffecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f0ffecf
6fd02da
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.8.92-2
6fd02da
- Rebuilt for Python 3.7
6fd02da
Peng Wu 60e1405
* Mon Apr  9 2018 Peng Wu <pwu@redhat.com> - 1.8.92-1
Peng Wu 60e1405
- Update to 1.8.92
Peng Wu 60e1405
- fixes easy symbol and user symbol
Peng Wu 60e1405
Peng Wu c8c37cc
* Thu Mar 22 2018 Peng Wu <pwu@redhat.com> - 1.8.91-1
Peng Wu c8c37cc
- Update to 1.8.91
Peng Wu c8c37cc
- migrate to use GSettings
Peng Wu c8c37cc
Peng Wu 89ce887
* Wed Feb  7 2018 Peng Wu <pwu@redhat.com> - 1.8.3-1
Peng Wu 89ce887
- Update to 1.8.3
Peng Wu 89ce887
- translate input method name in ibus menu
Peng Wu 89ce887
Peng Wu ee78bb0
* Wed Dec 13 2017 Peng Wu <pwu@redhat.com> - 1.8.2-1
Peng Wu ee78bb0
- Update to 1.8.2
Peng Wu ee78bb0
- fixes cursor move
Peng Wu ee78bb0
Peng Wu 039d000
* Thu Oct 26 2017 Peng Wu <pwu@redhat.com> - 1.8.1-1
Peng Wu 039d000
- Update to 1.8.1
Peng Wu 039d000
- bug fixes
Peng Wu 039d000
Peng Wu 99019da
* Fri Aug 25 2017 Peng Wu <pwu@redhat.com> - 1.8.0-1
Peng Wu 99019da
- Update to 1.8.0
Peng Wu 99019da
Peng Wu a4eef09
* Fri Aug 25 2017 Peng Wu <pwu@redhat.com> - 1.7.91-4
Peng Wu a4eef09
- Rebuilt for libpinyin 2.1.0
Peng Wu a4eef09
763a2e3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.91-3
763a2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
763a2e3
e9fef95
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.91-2
e9fef95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e9fef95
Peng Wu 5e8a850
* Thu Jun  8 2017 Peng Wu <pwu@redhat.com> - 1.7.91-1
Peng Wu 5e8a850
- Update to 1.7.91
Peng Wu 5e8a850
- merge libzhuyin data
Peng Wu 5e8a850
ea252a6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.10-2
ea252a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ea252a6
Peng Wu 1b97aba
* Thu Oct 13 2016 Peng Wu <pwu@redhat.com> - 1.7.10-1
Peng Wu 1b97aba
- Update to 1.7.10
Peng Wu 1b97aba
Peng Wu 5ab5214
* Thu Sep 29 2016 Peng Wu <pwu@redhat.com> - 1.7.9-1
Peng Wu 5ab5214
- Update to 1.7.9
Peng Wu 5ab5214
Peng Wu fa99020
* Mon Sep  5 2016 Peng Wu <pwu@redhat.com> - 1.7.8-1
Peng Wu fa99020
- Update to 1.7.8
Peng Wu fa99020
Peng Wu 7ef3ba4
* Fri Jun  3 2016 Peng Wu <pwu@redhat.com> - 1.7.7-1
Peng Wu 7ef3ba4
- Update to 1.7.7
Peng Wu 7ef3ba4
8c9a9e7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.6-2
8c9a9e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8c9a9e7
Peng Wu 3033ff0
* Fri Dec 11 2015 Peng Wu <pwu@redhat.com> - 1.7.6-1
Peng Wu 3033ff0
- Update to 1.7.6
Peng Wu 3033ff0
Peng Wu 86aa909
* Tue Dec  8 2015 Peng Wu <pwu@redhat.com> - 1.7.5-2
Peng Wu 86aa909
- Fixes crash
Peng Wu 86aa909
Peng Wu 1edc10f
* Thu Nov 19 2015 Peng Wu <pwu@redhat.com> - 1.7.5-1
Peng Wu 1edc10f
- Update to 1.7.5
Peng Wu 1edc10f
ba2c983
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-3
ba2c983
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
ba2c983
Peng Wu 8c1ad47
* Thu Sep 17 2015 Peng Wu <pwu@redhat.com> - 1.7.4-2
Peng Wu 8c1ad47
- Fixes cursor behavior
Peng Wu 8c1ad47
Peng Wu 1338709
* Wed Aug 19 2015 Peng Wu <pwu@redhat.com> - 1.7.4-1
Peng Wu 1338709
- Update to 1.7.4
Peng Wu 1338709
Peng Wu 82eae8d
* Wed Jul  1 2015 Peng Wu <pwu@redhat.com> - 1.7.3-1
Peng Wu 82eae8d
- Update to 1.7.3
Peng Wu 82eae8d
f52b15b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-2
f52b15b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f52b15b
Peng Wu 3a0d5a1
* Mon May 11 2015 Peng Wu <pwu@redhat.com> - 1.7.2-1
Peng Wu 3a0d5a1
- Update to 1.7.2
Peng Wu 3a0d5a1
d585a4c
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.7.1-2
d585a4c
- Rebuilt for GCC 5 C++11 ABI change
d585a4c
Peng Wu 56c5dad
* Tue Apr  7 2015 Peng Wu <pwu@redhat.com> - 1.7.1-1
Peng Wu 56c5dad
- Update to 1.7.1
Peng Wu 56c5dad
Peng Wu b6590e8
* Tue Mar 24 2015 Peng Wu <pwu@redhat.com> - 1.7.0-1
Peng Wu b6590e8
- Update to 1.7.0
Peng Wu b6590e8
Peng Wu ab7acbb
* Wed Jan  7 2015 Peng Wu <pwu@redhat.com> - 1.6.99.20140929-2
Peng Wu ab7acbb
- Use opencc 1.0.2
Peng Wu ab7acbb
Peng Wu 86211ec
* Mon Sep 29 2014 Peng Wu <pwu@redhat.com> - 1.6.99.20140929-1
Peng Wu 86211ec
- Update to 1.6.99.20140929
Peng Wu 86211ec
2d00cb2
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.99.20140718-2
2d00cb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2d00cb2
Peng Wu b1cf728
* Fri Jul 18 2014 Peng Wu <pwu@redhat.com> - 1.6.99.20140718-1
Peng Wu b1cf728
- Update to 1.6.99.20140718
Peng Wu b1cf728
Peng Wu d3a5b64
* Thu Jul  3 2014 Peng Wu <pwu@redhat.com> - 1.6.99.20140626-2
Peng Wu d3a5b64
- Improves spec.
Peng Wu d3a5b64
Peng Wu d3a5b64
* Fri Jun 01 2012  Peng Wu <pwu@redhat.com> - 1.6.99.20140626-1
Peng Wu d3a5b64
- The first version.