1 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2 %define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
4 Version: @PACKAGE_VERSION@
6 Summary: The Hangul engine for IBus input platform
8 Group: System Environment/Libraries
9 URL: http://code.google.com/p/ibus/
10 Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 BuildRequires: gettext-devel
15 BuildRequires: libtool
16 BuildRequires: python-devel
17 BuildRequires: libhangul-devel
19 BuildRequires: pkgconfig
24 The Hangul engine for IBus platform. It provides Korean input method from
31 %configure --disable-static
32 # make -C po update-gmo
36 rm -rf $RPM_BUILD_ROOT
37 make DESTDIR=${RPM_BUILD_ROOT} install
38 rm -f $RPM_BUILD_ROOT%{python_sitearch}/_hangul.la
43 rm -rf $RPM_BUILD_ROOT
45 %files -f %{name}.lang
46 %defattr(-,root,root,-)
47 %doc AUTHORS COPYING README
48 # %dir %{python_sitearch}/ibus
49 %{python_sitearch}/hangul.py*
50 %{python_sitearch}/_hangul.so
51 %dir %{_datadir}/@PACKAGE@
52 %{_bindir}/ibus-engine-hangul
53 %{_datadir}/@PACKAGE@/*
54 %{_datadir}/ibus/engine/hangul.engine
57 * Fri Aug 08 2008 Huang Peng <shawn.p.huang@gmail.com> - @VERSION@-1