]>
Commit | Line | Data |
---|---|---|
10b9ea00 JR |
1 | # |
2 | # Conditional build: | |
900cf5bb | 3 | %bcond_without bridge_hotkey # disable the engine hotkeys |
10b9ea00 JR |
4 | # |
5 | Summary: The Hangul engine for IBus input platform | |
6cf904c1 | 6 | Summary(pl.UTF-8): Silnik Hangul dla platformy wprowadzania znaków IBus |
10b9ea00 | 7 | Name: ibus-hangul |
6cf904c1 | 8 | Version: 1.4.1 |
900cf5bb | 9 | Release: 3 |
10b9ea00 JR |
10 | License: GPL v2+ |
11 | Group: Libraries | |
6cf904c1 | 12 | #Source0Download: http://code.google.com/p/ibus/downloads/list |
10b9ea00 | 13 | Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz |
6cf904c1 | 14 | # Source0-md5: c9615a9f704a4c29252028407329e1c3 |
20d80aa0 JR |
15 | Patch0: ibus-hangul-setup-gi.patch |
16 | Patch1: ibus-hangul-add-hangul-hotkey.patch | |
17 | Patch2: ibus-hangul-engine-name.patch | |
10b9ea00 | 18 | URL: http://code.google.com/p/ibus/ |
6cf904c1 JB |
19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake >= 1:1.10 | |
21 | BuildRequires: gettext-devel >= 0.17 | |
22 | BuildRequires: ibus-devel >= 1.4.0 | |
23 | BuildRequires: intltool >= 0.35.0 | |
24 | BuildRequires: libhangul-devel >= 0.1.0 | |
10b9ea00 JR |
25 | BuildRequires: libtool |
26 | BuildRequires: pkgconfig | |
6cf904c1 JB |
27 | BuildRequires: python >= 1:2.5 |
28 | Requires: ibus >= 1.4.0 | |
29 | Requires: libhangul >= 0.1.0 | |
20d80aa0 | 30 | Requires: python-pygobject3 |
8883e1fd | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
10b9ea00 JR |
32 | |
33 | %define _libexecdir %{_libdir}/ibus | |
34 | ||
35 | %description | |
36 | The Hangul engine for IBus platform. It provides Korean input method | |
37 | from libhangul. | |
38 | ||
6cf904c1 JB |
39 | %description -l pl.UTF-8 |
40 | Silnik Hangul dla platformy wprowadzania znaków IBus. Udostępnia | |
41 | metodę wprowadzania znaków koreańskich zaimplementowaną w libhangul. | |
42 | ||
10b9ea00 JR |
43 | %prep |
44 | %setup -q | |
45 | %patch0 -p1 | |
900cf5bb | 46 | %if %{with bridge_hotkey} |
20d80aa0 | 47 | %patch1 -p1 |
900cf5bb | 48 | %endif |
20d80aa0 | 49 | %patch2 -p1 |
10b9ea00 JR |
50 | |
51 | %build | |
6cf904c1 | 52 | %{__libtoolize} |
10b9ea00 JR |
53 | %{__aclocal} -I m4 |
54 | %{__autoconf} | |
6cf904c1 JB |
55 | %{__autoheader} |
56 | %{__automake} | |
10b9ea00 JR |
57 | %configure \ |
58 | %{?with_bridge_hotkey:--with-hotkeys} | |
59 | ||
60 | %{__make} | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %find_lang %{name} | |
69 | ||
8a773c5b JR |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
20d80aa0 JR |
73 | %post |
74 | %update_icon_cache hicolor | |
75 | ||
76 | %postun | |
77 | %update_icon_cache hicolor | |
78 | ||
10b9ea00 JR |
79 | %files -f %{name}.lang |
80 | %defattr(644,root,root,755) | |
81 | %doc AUTHORS ChangeLog NEWS README | |
6cf904c1 | 82 | %attr(755,root,root) %{_bindir}/ibus-setup-hangul |
97095df1 JR |
83 | %attr(755,root,root) %{_libexecdir}/ibus-engine-hangul |
84 | %attr(755,root,root) %{_libexecdir}/ibus-setup-hangul | |
6cf904c1 JB |
85 | %dir %{_libdir}/ibus-hangul |
86 | %dir %{_libdir}/ibus-hangul/setup | |
87 | %attr(755,root,root) %{_libdir}/ibus-hangul/setup/hangul_keyboard_list | |
10b9ea00 | 88 | %{_datadir}/ibus-hangul |
6cf904c1 JB |
89 | %{_datadir}/ibus/component/hangul.xml |
90 | %{_desktopdir}/ibus-setup-hangul.desktop | |
91 | %{_iconsdir}/hicolor/64x64/apps/ibus-hangul.png | |
92 | %{_iconsdir}/hicolor/64x64/apps/ibus-setup-hangul.png | |
93 | %{_iconsdir}/hicolor/scalable/apps/ibus-hangul.svg | |
94 | %{_iconsdir}/hicolor/scalable/apps/ibus-setup-hangul.svg |