4d9c4b3
Name:		ibus-bogo
4d9c4b3
9015215
%global commit ce44b961de5a0f82a4a2d8fc0e487e8fcb29289d
4d9c4b3
%global shortcommit %(c=%{commit}; echo ${c:0:7})
4d9c4b3
9015215
Version:	0.4
ba51016
Release:	12%{?dist}
4d9c4b3
Summary:	Vietnamese engine for IBus input platform
4d9c4b3
4d9c4b3
Group:		User Interface/X
4d9c4b3
License:	GPLv3
4d9c4b3
URL:		http://github.com/BoGoEngine/ibus-bogo-python
4d9c4b3
4d9c4b3
Source0:	http://github.com/BoGoEngine/ibus-bogo-python/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
4d9c4b3
# fix the run scripts folder to /usr/libexec since upstream developers put it in /usr/lib
4d9c4b3
Patch0:		ibus-bogo-fix-libexec-folder-name.patch
e35520a
# patch to disable mouse dedector function
e35520a
Patch1:		ibus-bogo-disable-mouse-detector-function.patch
8deed82
Patch2:		ibus-bogo-crash-f22-bug-1204029.patch
4d9c4b3
bc2dfd1
BuildRequires:	cmake
4d9c4b3
BuildRequires:	desktop-file-utils
4d9c4b3
BuildRequires:	ibus-devel
4d9c4b3
BuildRequires:	python3-devel
4d9c4b3
BuildRequires:	python3-gobject
9015215
BuildRequires:	python3-PyQt4-devel
9015215
BuildRequires:	PyQt4-devel
9015215
4d9c4b3
BuildArch:	noarch
4d9c4b3
4d9c4b3
Requires:	ibus
4d9c4b3
Requires:	python3
9015215
Requires:	python3-PyQt4
9015215
Requires:	PyQt4
dd8d0e1
Requires:	python3-gobject
9015215
Requires:	libwnck3
4d9c4b3
4d9c4b3
4d9c4b3
%description
4d9c4b3
A Vietnamese engine for IBus input platform that uses BoGoEngine.
4d9c4b3
4d9c4b3
4d9c4b3
%prep
4d9c4b3
%setup -qn %{name}-python-%{commit}
e35520a
%patch0 -p1
e35520a
%patch1 -p1
8deed82
%patch2 -p1 -b .3-resolving-crash-in-engine
4d9c4b3
4d9c4b3
%build
4d9c4b3
%cmake .
4d9c4b3
make %{?_smp_mflags}
4d9c4b3
4d9c4b3
4d9c4b3
%install
4d9c4b3
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
4d9c4b3
desktop-file-install \
4d9c4b3
--add-category="Settings" \
4d9c4b3
--delete-original \
4d9c4b3
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
9015215
${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup-bogo.desktop
4d9c4b3
Richard Hughes acf2d97
# Register as an AppStream component to be visible in the software center
Richard Hughes acf2d97
#
Richard Hughes acf2d97
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes acf2d97
# project, translated and installed into the right place during `make install`.
Richard Hughes acf2d97
#
Richard Hughes acf2d97
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes acf2d97
#
Richard Hughes acf2d97
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes acf2d97
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/bogo.appdata.xml <
Richard Hughes acf2d97
Richard Hughes acf2d97
<component type="inputmethod">
Richard Hughes acf2d97
  <id>bogo.xml</id>
Richard Hughes acf2d97
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes acf2d97
  <name>BoGo</name>
Richard Hughes acf2d97
  <summary>Vietnamese input method</summary>
Richard Hughes acf2d97
  <description>
Richard Hughes acf2d97
    

Richard Hughes acf2d97
      The BoGo input method is designed for entering Vietnamese text.
Richard Hughes acf2d97
    

Richard Hughes acf2d97
    

Richard Hughes acf2d97
      Input methods are typing systems allowing users to input complex languages.
Richard Hughes acf2d97
      They are necessary because these contain too many characters to simply be laid
Richard Hughes acf2d97
      out on a traditional keyboard.
Richard Hughes acf2d97
    

Richard Hughes acf2d97
  </description>
Richard Hughes acf2d97
  <url type="homepage">http://github.com/BoGoEngine/ibus-bogo-python</url>
Richard Hughes acf2d97
  <url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
Richard Hughes acf2d97
  <url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
Richard Hughes 970bbf3
  <languages>
Richard Hughes 970bbf3
    <lang percentage="100">vi</lang>
Richard Hughes 970bbf3
  </languages>
Richard Hughes acf2d97
  <update_contact></update_contact>
Richard Hughes acf2d97
</component>
Richard Hughes acf2d97
EOF
4d9c4b3
4d9c4b3
%post
4d9c4b3
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
4d9c4b3
4d9c4b3
%postun
4d9c4b3
if [ $1 -eq 0 ] ; then
4d9c4b3
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
4d9c4b3
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
4d9c4b3
fi
4d9c4b3
4d9c4b3
%posttrans
4d9c4b3
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
4d9c4b3
4d9c4b3
4d9c4b3
%files
4d9c4b3
%doc README.md AUTHORS COPYING
Richard Hughes acf2d97
%{_datadir}/appdata/*.appdata.xml
9015215
%{_datadir}/applications/ibus-setup-bogo.desktop
4d9c4b3
%{_datadir}/ibus/component/bogo.xml
4d9c4b3
%{_datadir}/%{name}/
4d9c4b3
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
4d9c4b3
%{_libexecdir}/%{name}/
4d9c4b3
%exclude %{_datadir}/%{name}/bogo/*.pyc
4d9c4b3
%exclude %{_datadir}/%{name}/bogo/*.pyo
9015215
%exclude %{_datadir}/%{name}/gui/*.pyc
9015215
%exclude %{_datadir}/%{name}/gui/*.pyo
4d9c4b3
%exclude %{_datadir}/%{name}/ibus_engine/*.pyc
4d9c4b3
%exclude %{_datadir}/%{name}/ibus_engine/*.pyo
4d9c4b3
%exclude %{_datadir}/%{name}/vncharsets/*.pyc
4d9c4b3
%exclude %{_datadir}/%{name}/vncharsets/*.pyo
4d9c4b3
4d9c4b3
4d9c4b3
%changelog
ba51016
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-12
ba51016
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ba51016
a22b951
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.4-11
a22b951
- Rebuild for Python 3.6
a22b951
3fb81fa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-10
3fb81fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3fb81fa
efa6ebf
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-9
efa6ebf
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
efa6ebf
Richard Hughes 970bbf3
* Wed Sep 16 2015 Richard Hughes <rhughes@redhat.com> - 0.4-8
Richard Hughes 970bbf3
- Increase AppStream search result weighting when using the 'vi' locale.
Richard Hughes 970bbf3
23c20b5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
23c20b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
23c20b5
8deed82
* Tue Mar 31 2015 Pravin Satpute <psatpute@redhat.com> - 0.4-6
8deed82
- Resolves bug #1204029 - Crashing in F22 Alpha with updates
8deed82
- Patch from Fujiwara <tfujiwar@redhat.com>
8deed82
Richard Hughes acf2d97
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 0.4-5
Richard Hughes acf2d97
- Register as an AppStream component.
Richard Hughes acf2d97
4b060c5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
4b060c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4b060c5
bc2dfd1
* Fri Jan 24 2014 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.4-3
bc2dfd1
- Add cmake to BuildRequires.
bc2dfd1
e35520a
* Thu Jan 23 2014 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.4-2
e35520a
- Disable Mouse Detector function using Xlib.
e35520a
9015215
* Wed Jan 22 2014 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.4-1
9015215
- Update to new release 0.4 from upstream.
9015215
2c4c4f5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-6
2c4c4f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2c4c4f5
dd8d0e1
* Mon May 6 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.3-5
dd8d0e1
- Add python3-gobject, libwnck3 as Requires.
dd8d0e1
9015215
* Mon Apr 29 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.3-4
4d9c4b3
- Add pyside-tools as a BuildRequires (missing).
4d9c4b3
4d9c4b3
* Wed Apr 24 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.3-3
4d9c4b3
- Add pyside-tools as a BuildRequires.
4d9c4b3
- Add BuildArch = noarch
4d9c4b3
- Add commands to update icon cache
4d9c4b3
- Add INSTALL="install -p" to preserve timestamps of installed files
4d9c4b3
4d9c4b3
* Mon Apr 22 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.3-2
4d9c4b3
- Add qt3-devel as a BuildRequires and qt3 as a Requires.
4d9c4b3
4d9c4b3
* Sat Mar 30 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.3-1
4d9c4b3
- Update to new release 0.3 from upstream.
4d9c4b3
4d9c4b3
* Mon Mar 25 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.2-11.eba2b22
4d9c4b3
- Update eba2b22 from develop branch (0.3-rc).
4d9c4b3
4d9c4b3
* Wed Mar 13 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.2-10.006cf12
4d9c4b3
- Remove BuildRoot and defattr and clean tags.
4d9c4b3
- Add comment for Patch1
4d9c4b3
- Update 006cf12 from develop branch.
4d9c4b3
4d9c4b3
* Wed Mar 13 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.2-9.a564b30
4d9c4b3
- Add a patch to fix the python2 version to run GUI settings because of
4d9c4b3
python3-pyside not available at this moment (obsolete).
4d9c4b3
4d9c4b3
* Wed Mar 13 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0.2-8.a564b30
4d9c4b3
- Update a564b30 from develop branch.
4d9c4b3
- Update release number to 0.2.x for more suitable with upstream.
4d9c4b3
4d9c4b3
* Mon Mar 11 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0-7.d5b92ec
4d9c4b3
- Update d5b92ec from develop branch.
4d9c4b3
4d9c4b3
* Sat Mar 2 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0-6.6b003a1
4d9c4b3
- Add a patch to fix the program files location to /usr/libexec.
4d9c4b3
4d9c4b3
* Sat Mar 2 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0-5.6b003a1
4d9c4b3
- Update 6b003a1 from develop branch.
4d9c4b3
4d9c4b3
* Fri Mar 1 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0-4.c65e3f9
4d9c4b3
- Update c65e3f9 from develop branch.
4d9c4b3
4d9c4b3
* Thu Feb 28 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0-3.7163ca3
4d9c4b3
- Update 7163ca3 from develop branch.
4d9c4b3
4d9c4b3
* Wed Feb 27 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0-2.2b8ffb4
4d9c4b3
- Update 2b8ffb4 from develop branch.
4d9c4b3
4d9c4b3
* Tue Feb 26 2013 Truong Anh Tuan <tuanta@iwayvietnam.com> - 0-1.92b2013
4d9c4b3
- Initial release getting from develop branch.
4d9c4b3