Import ibus.
This commit is contained in:
parent
a316720ef7
commit
a46ad0dc78
@ -0,0 +1 @@
|
||||
ibus-0.1.0.20080810.tar.gz
|
124
ibus.spec
Normal file
124
ibus.spec
Normal file
@ -0,0 +1,124 @@
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%define mod_path ibus-0.1
|
||||
Name: ibus
|
||||
Version: 0.1.0.20080810
|
||||
Release: 1%{?dist}
|
||||
Summary: Input Bus for Linux OS
|
||||
License: LGPLv2+
|
||||
Group: System Environment/Libraries
|
||||
URL: http://code.google.com/p/ibus/
|
||||
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||
Source1: xinput-ibus
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: python
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: qt-devel
|
||||
BuildRequires: dbus-glib-devel
|
||||
|
||||
Requires: pygtk2
|
||||
Requires: dbus-python >= 0.83.0
|
||||
Requires: pyxdg
|
||||
|
||||
%description
|
||||
IBus means the Input Bus. It is a new input framework for Linux OS. It provides
|
||||
full featured and user friendly input method user interface. It also may help
|
||||
developers to develop input method easily.
|
||||
|
||||
%package gtk
|
||||
Summary: IBus im module for gtk2
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description gtk
|
||||
This package contains ibus im module for gtk2
|
||||
|
||||
%package qt
|
||||
Summary: IBus im module for qt4
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description qt
|
||||
This package contains ibus im module for qt4
|
||||
|
||||
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
# make -C po update-gmo
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-gtk.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-gtk.so
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/immodules/im-ibus.la
|
||||
|
||||
# install xinput config file
|
||||
mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
|
||||
install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
|
||||
|
||||
# %find_lang %{name}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%post gtk
|
||||
%{_bindir}/update-gtk-immodules %{_host} || :
|
||||
|
||||
%postun gtk
|
||||
%{_bindir}/update-gtk-immodules %{_host} || :
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
# -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING README
|
||||
%dir %{python_sitelib}/ibus
|
||||
%{python_sitelib}/ibus/*
|
||||
%dir %{_datadir}/ibus/
|
||||
%dir %{_datadir}/ibus/daemon/
|
||||
%dir %{_datadir}/ibus/gconf/
|
||||
%dir %{_datadir}/ibus/panel/
|
||||
%dir %{_datadir}/ibus/setup/
|
||||
%dir %{_datadir}/ibus/engine/
|
||||
%dir %{_datadir}/ibus/icons/
|
||||
%{_bindir}/ibus
|
||||
%{_bindir}/ibus-setup
|
||||
%{_libdir}/libibus-gtk.so*
|
||||
%{_datadir}/ibus/daemon/*
|
||||
%{_datadir}/ibus/gconf/*
|
||||
%{_datadir}/ibus/panel/*
|
||||
%{_datadir}/ibus/setup/*
|
||||
%{_datadir}/ibus/icons/*
|
||||
%{_datadir}/applications/*
|
||||
%{_datadir}/pixmaps/*
|
||||
%{_libexecdir}/ibus-daemon
|
||||
%{_libexecdir}/ibus-gconf
|
||||
%{_libexecdir}/ibus-panel
|
||||
%{_libexecdir}/ibus-x11
|
||||
%config %{_xinputconf}
|
||||
|
||||
%files gtk
|
||||
%defattr(-,root,root,-)
|
||||
%doc
|
||||
%{_libdir}/gtk-2.0/immodules/im-ibus.so
|
||||
|
||||
%files qt
|
||||
%defattr(-,root,root,-)
|
||||
%doc
|
||||
%{_libdir}/qt4/plugins/inputmethods/libibus.so
|
||||
|
||||
%changelog
|
||||
* Thu Aug 07 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0.20080810-1
|
||||
- The first version.
|
1
import.log
Normal file
1
import.log
Normal file
@ -0,0 +1 @@
|
||||
ibus-0_1_0_20080810-1_fc9:HEAD:ibus-0.1.0.20080810-1.fc9.src.rpm:1218368092
|
8
xinput-ibus
Normal file
8
xinput-ibus
Normal file
@ -0,0 +1,8 @@
|
||||
XIM=ibus
|
||||
# define a fake XIM program
|
||||
XIM_PROGRAM="/bin/sleep"
|
||||
XIM_ARGS="0xffffffff"
|
||||
PREFERENCE_PROGRAM=/usr/bin/ibus-setup
|
||||
SHORT_DESC="IBus"
|
||||
GTK_IM_MODULE=ibus
|
||||
QT_IM_MODULE=ibus
|
Loading…
Reference in New Issue
Block a user