Rename minput_list_input_methods to minput_list_ims.
[ibus-m17n.git] / ibus-m17n.spec.in
blobee7419a27cba3d86ed7a2fb2c402af7ff6ef8798
1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
3 %define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
4 Name: ibus-m17n
5 Version: @PACKAGE_VERSION@
6 Release: 1%{?dist}
7 Summary: IBus template project
8 License: GPLv2+
9 Group: System Environment/Libraries
10 URL: http://code.google.com/p/ibus/
11 Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 BuildRequires: gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser) gtk2-devel qt-devel
15 Requires: pygtk2
17 %description
18 IBus template project
20 %prep
21 %setup -q
23 %build
24 %configure --disable-static
25 # make -C po update-gmo
26 make %{?_smp_mflags}
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 make DESTDIR=${RPM_BUILD_ROOT} install
31 rm -f $RPM_BUILD_ROOT%{python_sitearch}/_m17n.la
33 # %find_lang %{name}
35 %clean
36 rm -rf $RPM_BUILD_ROOT
38 %files
39 # -f %{name}.lang
40 %defattr(-,root,root,-)
41 %doc AUTHORS COPYING README
42 %{python_sitearch}/_m17n.so
43 %{python_sitearch}/m17n.py*
44 %dir %{_datadir}/ibus/engine/m17n
45 %{_datadir}/ibus/engine/m17n/*
46 %{_libexecdir}/ibus-engine-m17n
47 %{_datadir}/ibus/icons/ibus-m17n.svg
49 %changelog
50 * Wed Jun 25 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0-1
51 - The first version.