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 Anthy 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: anthy-devel
19 BuildRequires: pkgconfig
25 The Anthy engine for IBus platform. It provides Japanese input method from
32 %configure --disable-static
33 # make -C po update-gmo
37 rm -rf $RPM_BUILD_ROOT
38 make DESTDIR=${RPM_BUILD_ROOT} install
39 rm -f $RPM_BUILD_ROOT%{python_sitearch}/_anthy.la
44 rm -rf $RPM_BUILD_ROOT
46 %files -f %{name}.lang
47 %defattr(-,root,root,-)
48 %doc AUTHORS COPYING README
49 # %dir %{python_sitearch}/ibus
50 %{python_sitearch}/anthy.py*
51 %{python_sitearch}/_anthy.so
52 %dir %{_datadir}/@PACKAGE@
53 %{_bindir}/ibus-engine-anthy
54 %{_datadir}/@PACKAGE@/*
55 %{_datadir}/ibus/engine/anthy.engine
58 * Fri Aug 08 2008 Huang Peng <shawn.p.huang@gmail.com> - @VERSION@-1