#
# Conditional build:
-%bcond_with bridge_hotkey # enable the engine hotkeys
+%bcond_without bridge_hotkey # disable the engine hotkeys
#
Summary: The Hangul engine for IBus input platform
Summary(pl.UTF-8): Silnik Hangul dla platformy wprowadzania znaków IBus
Name: ibus-hangul
-Version: 1.4.1
-Release: 2
+Version: 1.5.0
+Release: 1
License: GPL v2+
Group: Libraries
-#Source0Download: http://code.google.com/p/ibus/downloads/list
-Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: c9615a9f704a4c29252028407329e1c3
-Patch0: %{name}-xx-icon-symbol.patch
-URL: http://code.google.com/p/ibus/
+#Source0Download: https://github.com/choehwanjin/ibus-hangul/releases
+Source0: https://github.com/choehwanjin/ibus-hangul/releases/download/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: a171bf7b25752a1f71257fb85d56346b
+Patch0: %{name}-add-hangul-hotkey.patch
+URL: https://github.com/choehwanjin/ibus-hangul
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.10
-BuildRequires: gettext-devel >= 0.17
+BuildRequires: gettext-tools >= 0.17
BuildRequires: ibus-devel >= 1.4.0
BuildRequires: intltool >= 0.35.0
BuildRequires: libhangul-devel >= 0.1.0
BuildRequires: python >= 1:2.5
Requires: ibus >= 1.4.0
Requires: libhangul >= 0.1.0
+Requires: python-pygobject3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _libexecdir %{_libdir}/ibus
%prep
%setup -q
+%if %{with bridge_hotkey}
%patch0 -p1
+%endif
%build
%{__libtoolize}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/ibus-setup-hangul
%attr(755,root,root) %{_libexecdir}/ibus-engine-hangul
%attr(755,root,root) %{_libexecdir}/ibus-setup-hangul
-%dir %{_libdir}/ibus-hangul
-%dir %{_libdir}/ibus-hangul/setup
-%attr(755,root,root) %{_libdir}/ibus-hangul/setup/hangul_keyboard_list
%{_datadir}/ibus-hangul
%{_datadir}/ibus/component/hangul.xml
%{_desktopdir}/ibus-setup-hangul.desktop