- Add --xim argument in xinput-ibus

- Add Obsoletes: ibus-qt <= 1.1.0
- Move libibus.so.* to ibus-libs to make ibus multilib.
This commit is contained in:
Peng Huang 2009-02-11 03:26:04 +00:00
parent 1ec38f49d4
commit 48fa194016
2 changed files with 28 additions and 6 deletions

View File

@ -3,7 +3,7 @@
%define mod_path ibus-1.1 %define mod_path ibus-1.1
Name: ibus Name: ibus
Version: 1.1.0.20090205 Version: 1.1.0.20090205
Release: 1%{?dist} Release: 2%{?dist}
Summary: Intelligent Input Bus for Linux OS Summary: Intelligent Input Bus for Linux OS
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -27,6 +27,8 @@ BuildRequires: gtk-doc
BuildRequires: GConf2-devel BuildRequires: GConf2-devel
BuildRequires: pygobject2-devel BuildRequires: pygobject2-devel
Requires: %{name}-libs = %{version}-%{release}
Requires(post): desktop-file-utils Requires(post): desktop-file-utils
Requires(post): %{_sbindir}/alternatives Requires(post): %{_sbindir}/alternatives
Requires(postun): desktop-file-utils Requires(postun): desktop-file-utils
@ -40,7 +42,12 @@ Requires: notification-daemon
Requires: pyxdg Requires: pyxdg
Requires: iso-codes Requires: iso-codes
Obsoletes: ibus-anthy <= 1.1.0, ibus-pinyin <= 1.1.0, ibus-m17n <= 1.1.0, ibus-hangul <= 1.1.0, ibus-chewing <= 1.1.0 Obsoletes: ibus-qt <= 1.1.0
Obsoletes: ibus-anthy <= 1.1.0
Obsoletes: ibus-pinyin <= 1.1.0
Obsoletes: ibus-m17n <= 1.1.0
Obsoletes: ibus-hangul <= 1.1.0
Obsoletes: ibus-chewing <= 1.1.0
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf %define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf
@ -49,6 +56,13 @@ IBus means Intelligent Input Bus. It is a new input framework for Linux OS. It p
full featured and user friendly input method user interface. It also may help full featured and user friendly input method user interface. It also may help
developers to develop input method easily. developers to develop input method easily.
%package libs
Summary: IBus libraries
Group: System Environment/Libraries
%description libs
This package contains the libraries for IBus
%package gtk %package gtk
Summary: IBus im module for gtk2 Summary: IBus im module for gtk2
Group: System Environment/Libraries Group: System Environment/Libraries
@ -109,7 +123,7 @@ desktop-file-install --delete-original \
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post %post libs
/sbin/ldconfig /sbin/ldconfig
update-desktop-database -q update-desktop-database -q
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 83 || : %{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 83 || :
@ -117,7 +131,7 @@ update-desktop-database -q
%post gtk %post gtk
%{_bindir}/update-gtk-immodules %{_host} || : %{_bindir}/update-gtk-immodules %{_host} || :
%postun %postun libs
/sbin/ldconfig /sbin/ldconfig
update-desktop-database -q update-desktop-database -q
if [ "$1" = "0" ]; then if [ "$1" = "0" ]; then
@ -137,7 +151,6 @@ fi
%dir %{_datadir}/ibus/ %dir %{_datadir}/ibus/
%{_bindir}/ibus-daemon %{_bindir}/ibus-daemon
%{_bindir}/ibus-setup %{_bindir}/ibus-setup
%{_libdir}/libibus.so*
%{_datadir}/ibus/* %{_datadir}/ibus/*
%{_datadir}/applications/* %{_datadir}/applications/*
%{_datadir}/pixmaps/* %{_datadir}/pixmaps/*
@ -146,6 +159,10 @@ fi
%{_libexecdir}/ibus-x11 %{_libexecdir}/ibus-x11
%config %{_xinputconf} %config %{_xinputconf}
%files libs
%defattr(-,root,root,-)
%{_libdir}/libibus.so*
%files gtk %files gtk
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.so %{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.so
@ -162,6 +179,11 @@ fi
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%changelog %changelog
* Wed Feb 11 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090205-2
- Add --xim argument in xinput-ibus
- Add Obsoletes: ibus-qt <= 1.1.0
- Move libibus.so.* to ibus-libs to make ibus multilib.
* Thu Feb 05 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090205-1 * Thu Feb 05 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090205-1
- Update to 1.1.0.20090205. - Update to 1.1.0.20090205.

View File

@ -1,7 +1,7 @@
XIM=ibus XIM=ibus
XIM_PROGRAM="/usr/bin/ibus-daemon" XIM_PROGRAM="/usr/bin/ibus-daemon"
ICON="/usr/share/ibus/icons/ibus.svg" ICON="/usr/share/ibus/icons/ibus.svg"
# XIM_ARGS="0xffffffff" XIM_ARGS="--xim"
PREFERENCE_PROGRAM=/usr/bin/ibus-setup PREFERENCE_PROGRAM=/usr/bin/ibus-setup
SHORT_DESC="IBus" SHORT_DESC="IBus"
GTK_IM_MODULE=ibus GTK_IM_MODULE=ibus