2010-03-26 18:05:03 +01:00
|
|
|
#
|
2010-11-19 11:07:45 +01:00
|
|
|
# spec file for package ibus (Version 1.2.0.20100111)
|
2010-03-26 18:05:03 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: ibus
|
2010-11-19 11:07:45 +01:00
|
|
|
Version: 1.3.8
|
2010-03-26 18:05:03 +01:00
|
|
|
Release: 1
|
|
|
|
License: LGPL V2+
|
|
|
|
Url: http://code.google.com/p/ibus/
|
|
|
|
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
|
Source1: xim.d-ibus
|
|
|
|
Source2: ibus-README.suse
|
|
|
|
Source3: xim.ibus.suse.template
|
|
|
|
Patch0: ibus-python-install-dir.patch
|
2010-10-07 22:42:05 +02:00
|
|
|
Patch1: ibus-disable-portability-check.patch
|
|
|
|
Patch2: ibus-disable-introspect.patch
|
2010-03-26 18:05:03 +01:00
|
|
|
Group: System/I18n/Chinese
|
|
|
|
Summary: Intelligent Input Bus for Linux OS
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
PreReq: /usr/bin/touch
|
|
|
|
#Provides: locale(ja;ko;zh)
|
2010-10-07 22:42:05 +02:00
|
|
|
#Recommends: ibus-gtk ibus-qt
|
2010-03-26 18:05:03 +01:00
|
|
|
|
|
|
|
BuildRequires: gettext-devel gtk-doc libtool python
|
|
|
|
BuildRequires: dbus-1-devel dbus-1-glib-devel dbus-1-python-devel gtk2-devel
|
|
|
|
BuildRequires: gconf2-devel python-gobject2-devel update-desktop-files
|
2010-11-19 11:07:45 +01:00
|
|
|
BuildRequires: fdupes intltool iso-codes-devel gobject-introspection-devel
|
2010-03-26 18:05:03 +01:00
|
|
|
%if %suse_version >= 1100
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
%endif
|
2010-10-07 22:42:05 +02:00
|
|
|
Requires: glib2 python-gtk dbus-1-python notification-daemon iso-codes gconf2 python-xdg python-notify gobject-introspection
|
2010-03-26 18:05:03 +01:00
|
|
|
%gconf_schemas_prereq
|
|
|
|
|
|
|
|
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
|
|
|
|
%define gtk_binary_version %(pkg-config --variable=gtk_binary_version gtk+-2.0)
|
|
|
|
|
|
|
|
%description
|
|
|
|
IBus means Intelligent 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.
|
|
|
|
|
2010-10-07 22:42:05 +02:00
|
|
|
%package -n libibus2
|
2010-03-26 18:05:03 +01:00
|
|
|
License: LGPL V2+
|
|
|
|
Summary: IBus libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
2010-10-07 22:42:05 +02:00
|
|
|
%description -n libibus2
|
2010-03-26 18:05:03 +01:00
|
|
|
This package contains the libraries for IBus
|
|
|
|
|
|
|
|
%package gtk
|
|
|
|
License: LGPL V2+
|
|
|
|
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 devel
|
|
|
|
License: LGPL V2+
|
|
|
|
Summary: Development tools for ibus
|
|
|
|
Group: Development/Libraries
|
2010-10-07 22:42:05 +02:00
|
|
|
Requires: libibus2 = %{version}-%{release}
|
2010-03-26 18:05:03 +01:00
|
|
|
Requires: glib2-devel
|
|
|
|
Requires: dbus-1-devel
|
|
|
|
Requires: gtk-doc
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The ibus-devel package contains the header files and developer
|
|
|
|
docs for ibus.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
2010-10-07 22:42:05 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2010-03-26 18:05:03 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
intltoolize -f
|
|
|
|
%configure --disable-static \
|
|
|
|
--disable-iso-codes-check \
|
2010-10-07 22:42:05 +02:00
|
|
|
--disable-gobject-introspection \
|
2010-03-26 18:05:03 +01:00
|
|
|
--enable-gtk-doc \
|
|
|
|
--disable-qt4-immodule \
|
|
|
|
--libexecdir=%{_prefix}/%{_lib}/ibus
|
|
|
|
make %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/X11/xim.d/
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/xim.d-ibus $RPM_BUILD_ROOT/etc/X11/xim.d/ibus
|
|
|
|
sed -i 1i"SYS_LIB=%{_lib}" $RPM_BUILD_ROOT/etc/X11/xim.d/ibus
|
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT/etc/X11/xim.d/
|
|
|
|
for lang in en zh_TW zh_HK zh_CN zh_SG ko_KR ja_JP ; do
|
|
|
|
mkdir $lang
|
|
|
|
pushd $lang
|
|
|
|
ln -s ../ibus 10-ibus
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.*a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libibus.*a
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ibus.desktop
|
|
|
|
|
|
|
|
ln -sf %{_datadir}/icons/hicolor/48x48/apps/ibus-keyboard.png \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/pixmaps/ibus-keyboard.png
|
|
|
|
|
|
|
|
%suse_update_desktop_file %name Utility DesktopUtility
|
|
|
|
%suse_update_desktop_file ibus-setup System SystemSetup
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
%find_gconf_schemas
|
|
|
|
cat %{name}.schemas_list %{name}.lang > %{name}.lst
|
|
|
|
%fdupes -s $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
|
|
|
%pre -f %{name}.schemas_pre
|
|
|
|
|
|
|
|
%post gtk
|
|
|
|
touch var/adm/SuSEconfig/run-gtk
|
|
|
|
/sbin/SuSEconfig --module gtk2
|
|
|
|
|
|
|
|
%preun -f %{name}.schemas_preun
|
|
|
|
|
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
|
|
|
|
%postun gtk
|
|
|
|
touch var/adm/SuSEconfig/run-gtk
|
|
|
|
/sbin/SuSEconfig --module gtk2
|
|
|
|
|
2010-10-07 22:42:05 +02:00
|
|
|
%post -n libibus2 -p /sbin/ldconfig
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2010-10-07 22:42:05 +02:00
|
|
|
%postun -n libibus2 -p /sbin/ldconfig
|
2010-03-26 18:05:03 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lst
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%doc $RPM_SOURCE_DIR/xim.ibus.suse.template
|
|
|
|
%doc $RPM_SOURCE_DIR/ibus-README.suse
|
|
|
|
%dir /etc/X11/xim.d
|
|
|
|
/etc/X11/xim.d/*
|
|
|
|
%{python_sitelib}/ibus
|
|
|
|
%dir %{_datadir}/ibus/
|
|
|
|
%{_bindir}/ibus-daemon
|
|
|
|
%{_bindir}/ibus-setup
|
|
|
|
%{_datadir}/ibus/*
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
%{_prefix}/%{_lib}/ibus
|
2010-10-07 22:42:05 +02:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%{_datadir}/vala/*
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2010-10-07 22:42:05 +02:00
|
|
|
%files -n libibus2
|
2010-03-26 18:05:03 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files gtk
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.so
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_datadir}/gtk-doc/html/*
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
|
|
|
%changelog
|