3 %bcond_without bridge_hotkey # disable the engine hotkeys
5 Summary: The Hangul engine for IBus input platform
6 Summary(pl.UTF-8): Silnik Hangul dla platformy wprowadzania znaków IBus
12 #Source0Download: https://github.com/choehwanjin/ibus-hangul/releases
13 Source0: https://github.com/choehwanjin/ibus-hangul/releases/download/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: a171bf7b25752a1f71257fb85d56346b
15 Patch0: %{name}-add-hangul-hotkey.patch
16 URL: https://github.com/choehwanjin/ibus-hangul
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake >= 1:1.10
19 BuildRequires: gettext-tools >= 0.17
20 BuildRequires: ibus-devel >= 1.4.0
21 BuildRequires: intltool >= 0.35.0
22 BuildRequires: libhangul-devel >= 0.1.0
23 BuildRequires: libtool
24 BuildRequires: pkgconfig
25 BuildRequires: python >= 1:2.5
26 Requires: ibus >= 1.4.0
27 Requires: libhangul >= 0.1.0
28 Requires: python-pygobject3
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _libexecdir %{_libdir}/ibus
34 The Hangul engine for IBus platform. It provides Korean input method
37 %description -l pl.UTF-8
38 Silnik Hangul dla platformy wprowadzania znaków IBus. Udostępnia
39 metodę wprowadzania znaków koreańskich zaimplementowaną w libhangul.
43 %if %{with bridge_hotkey}
54 %{?with_bridge_hotkey:--with-hotkeys}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
67 rm -rf $RPM_BUILD_ROOT
70 %update_icon_cache hicolor
73 %update_icon_cache hicolor
75 %files -f %{name}.lang
76 %defattr(644,root,root,755)
77 %doc AUTHORS ChangeLog NEWS README
78 %attr(755,root,root) %{_bindir}/ibus-setup-hangul
79 %attr(755,root,root) %{_libexecdir}/ibus-engine-hangul
80 %attr(755,root,root) %{_libexecdir}/ibus-setup-hangul
81 %{_datadir}/ibus-hangul
82 %{_datadir}/ibus/component/hangul.xml
83 %{_desktopdir}/ibus-setup-hangul.desktop
84 %{_iconsdir}/hicolor/64x64/apps/ibus-hangul.png
85 %{_iconsdir}/hicolor/64x64/apps/ibus-setup-hangul.png
86 %{_iconsdir}/hicolor/scalable/apps/ibus-hangul.svg
87 %{_iconsdir}/hicolor/scalable/apps/ibus-setup-hangul.svg