1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2 %define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
4 Version: @PACKAGE_VERSION@
6 Summary: Input Bus for Linux OS
8 Group: System Environment/Libraries
9 URL: http://code.google.com/p/ibus/
10 Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 BuildRequires: gettext-devel
16 BuildRequires: libtool
18 BuildRequires: gtk2-devel
19 BuildRequires: qt-devel
20 BuildRequires: dbus-glib-devel
23 Requires: dbus-python >= 0.83.0
25 Requires: gnome-python2-gconf
29 IBus means the Input Bus. It is a new input framework for Linux OS. It provides
30 full featured and user friendly input method user interface. It also may help
31 developers to develop input method easily.
34 Summary: IBus im module for gtk2
35 Group: System Environment/Libraries
36 Requires: %{name} = %{version}-%{release}
39 This package contains ibus im module for gtk2
42 Summary: IBus im module for qt4
43 Group: System Environment/Libraries
44 Requires: %{name} = %{version}-%{release}
48 This package contains ibus im module for qt4
50 %define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf
56 %configure --disable-static --disable-iso-codes-check
57 # make -C po update-gmo
61 rm -rf $RPM_BUILD_ROOT
62 make DESTDIR=${RPM_BUILD_ROOT} install
63 rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-gtk.la
64 rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-gtk.so
65 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/immodules/im-ibus.la
67 # install xinput config file
68 mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
69 install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
74 rm -rf $RPM_BUILD_ROOT
76 %post -p /sbin/ldconfig
79 %{_bindir}/update-gtk-immodules %{_host} || :
82 %{_bindir}/update-gtk-immodules %{_host} || :
84 %postun -p /sbin/ldconfig
86 %files -f %{name}.lang
87 %defattr(-,root,root,-)
88 %doc AUTHORS COPYING README
89 %dir %{python_sitelib}/ibus
90 %{python_sitelib}/ibus/*
91 %dir %{_datadir}/ibus/
92 %dir %{_datadir}/ibus/daemon/
93 %dir %{_datadir}/ibus/gconf/
94 %dir %{_datadir}/ibus/panel/
95 %dir %{_datadir}/ibus/setup/
96 %dir %{_datadir}/ibus/engine/
97 %dir %{_datadir}/ibus/icons/
100 %{_libdir}/libibus-gtk.so*
101 %{_datadir}/ibus/daemon/*
102 %{_datadir}/ibus/gconf/*
103 %{_datadir}/ibus/panel/*
104 %{_datadir}/ibus/setup/*
105 %{_datadir}/ibus/icons/*
106 %{_datadir}/applications/*
107 %{_datadir}/pixmaps/*
108 %{_bindir}/ibus-daemon
109 %{_bindir}/ibus-gconf
110 %{_bindir}/ibus-panel
112 %config %{_xinputconf}
115 %defattr(-,root,root,-)
117 %{_libdir}/gtk-2.0/immodules/im-ibus.so
120 %defattr(-,root,root,-)
122 %{_libdir}/qt4/plugins/inputmethods/libibus.so
125 * Thu Aug 07 2008 Huang Peng <shawn.p.huang@gmail.com> - @VERSION@-1