2010-03-26 18:05:03 +01:00
|
|
|
#
|
2011-03-14 10:36:14 +01:00
|
|
|
# spec file for package ibus
|
2010-03-26 18:05:03 +01:00
|
|
|
#
|
2016-02-28 17:32:13 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-03-26 18:05:03 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-08-09 10:54:38 +02:00
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
%define gtk_binary_version %(pkg-config --variable=gtk_binary_version gtk+-2.0)
|
2014-09-05 20:35:41 +02:00
|
|
|
%if 0%{?suse_version} == 1315
|
2016-12-05 13:15:31 +01:00
|
|
|
%define with_python3 1
|
2014-09-05 20:35:41 +02:00
|
|
|
%else
|
|
|
|
# temporary disable, 'coz ibus is not python3 ready
|
2016-12-05 13:15:31 +01:00
|
|
|
%define with_python3 1
|
2014-09-05 20:35:41 +02:00
|
|
|
%endif
|
2014-08-08 16:44:14 +02:00
|
|
|
%if 0%{?suse_version} > 1315
|
2014-07-27 14:38:27 +02:00
|
|
|
%define with_wayland 1
|
|
|
|
%else
|
|
|
|
%define with_wayland 0
|
|
|
|
%endif
|
2013-09-13 20:07:40 +02:00
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
Name: ibus
|
2016-12-05 13:15:31 +01:00
|
|
|
Version: 1.5.14
|
2012-01-25 02:48:20 +01:00
|
|
|
Release: 0
|
2013-03-28 19:17:11 +01:00
|
|
|
Summary: Intelligent Input Bus for Linux OS
|
|
|
|
License: LGPL-2.1+
|
2013-03-28 20:34:04 +01:00
|
|
|
Group: System/I18n/Chinese
|
2014-07-27 14:38:27 +02:00
|
|
|
Url: https://github.com/ibus/
|
2014-07-27 14:49:00 +02:00
|
|
|
#Source: https://github.com/ibus/ibus/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2014-07-27 17:45:22 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2014-07-27 14:38:27 +02:00
|
|
|
Source2: README.SUSE
|
2011-09-14 11:21:19 +02:00
|
|
|
Source3: xim.ibus.suse.template
|
|
|
|
Source4: xim.d-ibus-121
|
2013-10-17 09:29:53 +02:00
|
|
|
Source5: kde.tar.gz
|
|
|
|
Source6: kde-12.2.tar.gz
|
2014-07-27 14:38:27 +02:00
|
|
|
Source7: macros.ibus
|
2016-02-28 17:32:13 +01:00
|
|
|
Source10: ibus-autostart
|
|
|
|
Source11: ibus-autostart.desktop
|
2014-07-27 14:38:27 +02:00
|
|
|
Source99: baselibs.conf
|
2014-03-19 06:34:31 +01:00
|
|
|
# PATCH-FIX-OPENSUSE ibus-python-install-dir.patch ftake@geeko.jp
|
2010-03-26 18:05:03 +01:00
|
|
|
Patch0: ibus-python-install-dir.patch
|
2014-05-21 15:03:26 +02:00
|
|
|
# PATFH-FIX-SUSE ibus-xim-fix-re-focus-after-lock.patch bnc#874869 tiwa@suse.de -- Fix lost XIM input after screenlock
|
|
|
|
Patch4: ibus-xim-fix-re-focus-after-lock.patch
|
2014-07-27 14:38:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org
|
|
|
|
# Ibus will use python3 only when variable PYTHON2 is empty.
|
|
|
|
# Thus ibus-setup and bindings are still bytecompiled with python2.
|
|
|
|
# Then python3 support is useless, so we force python3 when python3
|
|
|
|
# is enabled, and fix syntax errors in python-config.py
|
2014-07-27 17:45:22 +02:00
|
|
|
Patch5: ibus-force-python3.patch
|
2014-07-27 14:38:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org
|
|
|
|
# lower vala version
|
2014-07-27 17:45:22 +02:00
|
|
|
Patch6: ibus-vala-0.18.patch
|
2014-08-30 20:13:04 +02:00
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org
|
|
|
|
Patch7: ibus-python3-migration.patch
|
2014-10-08 17:36:03 +02:00
|
|
|
# PATCH-FIX-UPSTREAM ftake@geeko.jp
|
|
|
|
# Select an IM engine at the first login
|
|
|
|
Patch8: im-engines-precede-xkb.patch
|
2015-03-13 18:28:22 +01:00
|
|
|
# PATCH-FIX-UPSTREAM ftake@geeko.jp
|
2015-08-10 15:44:14 +02:00
|
|
|
Patch9: ibus-fix-check-abs-icon-path-support.patch
|
2016-03-04 16:49:11 +01:00
|
|
|
# PATCH-FIX-SLE hide-setup-menu.patch bnc#899259 qzhao@suse.com
|
|
|
|
# ibus-setup should not launch from main menu.
|
|
|
|
Patch10: hide-setup-menu.patch
|
|
|
|
# PATCH-FIX-SLE setup-switch-im.patch bnc#899259 qzhao@suse.com
|
|
|
|
# switch to ibus when ibus not running.
|
|
|
|
Patch11: setup-switch-im.patch
|
2012-03-07 13:50:27 +01:00
|
|
|
BuildRequires: dbus-1-glib-devel
|
2013-03-28 19:17:11 +01:00
|
|
|
BuildRequires: dbus-1-python-devel >= 0.83.0
|
2013-07-07 19:40:03 +02:00
|
|
|
BuildRequires: dconf-devel >= 0.7.5
|
2012-01-25 02:48:20 +01:00
|
|
|
BuildRequires: fdupes
|
2013-09-13 05:49:26 +02:00
|
|
|
BuildRequires: gconf2-devel
|
2012-01-25 02:48:20 +01:00
|
|
|
BuildRequires: gettext-devel
|
2013-03-28 19:17:11 +01:00
|
|
|
BuildRequires: glib2-devel >= 2.26.0
|
|
|
|
BuildRequires: gobject-introspection-devel >= 0.9.6
|
|
|
|
BuildRequires: gtk-doc >= 1.9
|
2012-01-25 02:48:20 +01:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: iso-codes-devel
|
2013-08-01 04:20:25 +02:00
|
|
|
BuildRequires: libnotify-devel >= 0.7
|
2012-01-25 02:48:20 +01:00
|
|
|
BuildRequires: libtool
|
2016-12-05 13:15:31 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2013-10-17 09:29:53 +02:00
|
|
|
# directory ownership {
|
|
|
|
BuildRequires: oxygen-icon-theme
|
|
|
|
BuildRequires: oxygen-icon-theme-scalable
|
2014-07-27 14:38:27 +02:00
|
|
|
BuildRequires: x11-tools
|
2013-10-17 09:29:53 +02:00
|
|
|
# }
|
2012-05-17 10:21:40 +02:00
|
|
|
BuildRequires: pkg-config
|
2014-07-27 14:38:27 +02:00
|
|
|
%if %{with_python3}
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: python3-gobject2-devel
|
|
|
|
Requires: python3-gobject2
|
|
|
|
%else
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: python-gobject-devel
|
|
|
|
Requires: python-gobject
|
|
|
|
%endif
|
2012-01-25 02:48:20 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2014-07-27 14:38:27 +02:00
|
|
|
BuildRequires: pkgconfig(vapigen)
|
|
|
|
%if %{with_wayland}
|
2014-07-26 15:19:01 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-client) >= 1.2.0
|
2014-07-27 14:38:27 +02:00
|
|
|
%endif
|
2016-12-05 13:15:31 +01:00
|
|
|
BuildRequires: nodejs-emojione
|
2014-07-26 15:19:01 +02:00
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
2015-08-10 15:44:14 +02:00
|
|
|
# It seems that old vala compiler cannot build with an incompatible
|
|
|
|
# return type error among two overriding functions with
|
|
|
|
# "GLib.Variant?" type
|
|
|
|
# 13.1 support should be dropped after the cause is confirmed
|
|
|
|
BuildRequires: vala >= 0.26.0
|
2012-05-17 10:21:40 +02:00
|
|
|
Requires: dbus-1-python
|
2013-07-07 19:40:03 +02:00
|
|
|
Requires: dconf
|
2012-05-17 10:21:40 +02:00
|
|
|
Requires: iso-codes
|
2013-07-07 19:40:03 +02:00
|
|
|
Requires: libibus-1_0-5 = %{version}
|
2014-08-26 13:05:18 +02:00
|
|
|
# ibus-setup will require typelib(Gdk) typelib(GdkX11), typelib(Gtk)
|
|
|
|
# which are provided by two packages in openSUSE, so we limit their
|
2014-07-27 14:38:27 +02:00
|
|
|
# versions to 3.0 only.
|
2014-07-27 17:45:22 +02:00
|
|
|
Requires: typelib-1_0-Gtk-3_0
|
2013-10-06 20:30:30 +02:00
|
|
|
Recommends: %{name}-lang
|
2016-03-04 16:49:11 +01:00
|
|
|
# PATCH-FEATURE-SLE Add conflict with fcitx FATE #319095 qzhao@suse.com -- Solve the problem for the people update from SP0 to SP1
|
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
Conflicts: fcitx
|
|
|
|
%endif
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-11-25 15:19:37 +01:00
|
|
|
#Fix cursor following problem in KDE4 for libreoffice.
|
2014-09-08 21:23:21 +02:00
|
|
|
%if 0%{?suse_version} != 1315
|
2013-07-10 15:22:49 +02:00
|
|
|
Supplements: packageand(libreoffice:libreoffice-gnome)
|
2014-09-08 21:23:21 +02:00
|
|
|
%endif
|
2013-07-09 18:06:14 +02:00
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
Provides: locale(ja;ko;zh)
|
|
|
|
Obsoletes: ibus-gnome-shell
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-03-26 18:05:03 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%package -n libibus-1_0-5
|
2010-03-26 18:05:03 +01:00
|
|
|
Summary: IBus libraries
|
2011-06-14 08:04:24 +02:00
|
|
|
Group: System/I18n/Chinese
|
2014-09-05 20:35:41 +02:00
|
|
|
Obsoletes: libibus-1_0-0
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%description -n libibus-1_0-5
|
2010-03-26 18:05:03 +01:00
|
|
|
This package contains the libraries for IBus
|
|
|
|
|
2012-01-25 02:48:20 +01:00
|
|
|
%package -n typelib-1_0-IBus-1_0
|
|
|
|
Summary: IBus libraries -- Introspection bindings
|
|
|
|
Group: System/I18n/Chinese
|
|
|
|
|
|
|
|
%description -n typelib-1_0-IBus-1_0
|
|
|
|
This package contains the introspection bindings for the IBus library.
|
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%package gtk
|
|
|
|
Summary: IBus im module for gtk2
|
2011-06-14 08:04:24 +02:00
|
|
|
Group: System/I18n/Chinese
|
2011-06-27 14:23:04 +02:00
|
|
|
Requires: %{name} = %{version}
|
2011-06-15 11:52:18 +02:00
|
|
|
Supplements: packageand(ibus:gtk2)
|
2014-07-27 14:38:27 +02:00
|
|
|
%{gtk2_immodule_requires}
|
2011-06-15 11:52:18 +02:00
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%description gtk
|
|
|
|
This package contains ibus im module for gtk2
|
|
|
|
|
2011-06-14 08:04:24 +02:00
|
|
|
%package gtk3
|
2011-06-27 13:34:31 +02:00
|
|
|
Summary: IBus im module for gtk3
|
|
|
|
Group: System/I18n/Chinese
|
|
|
|
BuildRequires: gtk3-devel
|
2014-07-27 14:38:27 +02:00
|
|
|
Requires: %{name} = %{version}
|
2011-06-15 11:52:18 +02:00
|
|
|
Supplements: packageand(ibus:gtk3)
|
2014-07-27 14:38:27 +02:00
|
|
|
%{gtk3_immodule_requires}
|
2011-06-27 13:34:31 +02:00
|
|
|
|
2011-06-14 08:04:24 +02:00
|
|
|
%description gtk3
|
|
|
|
This package contains ibus im module for gtk3
|
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
%if %{with_python3}
|
|
|
|
%package -n python3-ibus
|
|
|
|
Summary: Python3 module for ibus
|
|
|
|
Group: System/I18n/Chinese
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python3
|
2014-09-05 20:35:41 +02:00
|
|
|
Obsoletes: python-ibus
|
2014-07-27 14:38:27 +02:00
|
|
|
|
|
|
|
%description -n python3-ibus
|
|
|
|
This package contains python3 module for ibus
|
|
|
|
|
|
|
|
%else
|
2013-07-07 19:40:03 +02:00
|
|
|
%package -n python-ibus
|
|
|
|
Summary: Python module for ibus
|
|
|
|
Group: System/I18n/Chinese
|
|
|
|
Requires: %{name} = %{version}
|
2014-07-27 14:38:27 +02:00
|
|
|
%py_requires
|
2013-07-07 19:40:03 +02:00
|
|
|
|
|
|
|
%description -n python-ibus
|
|
|
|
This package contains python module for ibus
|
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
%endif
|
|
|
|
|
2013-10-17 09:29:53 +02:00
|
|
|
%package branding-openSUSE-KDE
|
|
|
|
Summary: openSUSE branding for KDE
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
Requires: ibus = %{version}
|
|
|
|
Supplements: packageand(ibus:branding-openSUSE-KDE)
|
2014-07-27 14:38:27 +02:00
|
|
|
Supplements: packageand(ibus:kdelibs4)
|
2013-10-17 09:29:53 +02:00
|
|
|
Provides: ibus-branding = %{version}
|
|
|
|
Conflicts: otherproviders(ibus-branding)
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2013-03-28 19:17:11 +01:00
|
|
|
|
2013-10-17 09:29:53 +02:00
|
|
|
%description branding-openSUSE-KDE
|
|
|
|
openSUSE branding for KDE monochrome icons in systray.
|
2013-03-28 19:17:11 +01:00
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development tools for ibus
|
2011-10-12 11:32:18 +02:00
|
|
|
Group: Development/Libraries/Other
|
2010-03-26 18:05:03 +01:00
|
|
|
Requires: dbus-1-devel
|
2012-05-17 10:21:40 +02:00
|
|
|
Requires: glib2-devel
|
2010-03-26 18:05:03 +01:00
|
|
|
Requires: gtk-doc
|
2012-03-07 13:50:27 +01:00
|
|
|
Requires: ibus = %{version}
|
2013-07-07 19:40:03 +02:00
|
|
|
Requires: libibus-1_0-5 = %{version}
|
2012-05-17 10:21:40 +02:00
|
|
|
Requires: typelib-1_0-IBus-1_0 = %{version}
|
2012-03-07 13:50:27 +01:00
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%description devel
|
|
|
|
The ibus-devel package contains the header files and developer
|
|
|
|
docs for ibus.
|
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%lang_package
|
2014-07-27 14:38:27 +02:00
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
2014-07-27 14:38:27 +02:00
|
|
|
|
2014-02-14 13:02:34 +01:00
|
|
|
# hack to fix incompatibility of gtk-query-immodules-2.0 (bnc#845860)
|
2014-07-27 14:38:27 +02:00
|
|
|
%if 0%{?suse_version} < 1310
|
|
|
|
%patch6 -p1
|
2014-02-14 13:02:34 +01:00
|
|
|
sed -i \
|
|
|
|
-e's@\(gtk-query-immodules-2.0-64\) --update-cache@\1 > <prefix>%{_sysconfdir}/gtk-2.0/gtk64.immodules@g' \
|
|
|
|
-e's@\(gtk-query-immodules-2.0\) --update-cache@\1 > <prefix>%{_sysconfdir}/gtk-2.0/gtk.immodules@g' \
|
2014-07-27 14:38:27 +02:00
|
|
|
%{SOURCE99}
|
2014-02-14 13:02:34 +01:00
|
|
|
%endif
|
2013-09-13 20:07:40 +02:00
|
|
|
|
2014-05-21 15:03:26 +02:00
|
|
|
%patch4 -p1
|
2013-10-06 20:30:30 +02:00
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
%if %{with_python3}
|
|
|
|
%patch5 -p1
|
2014-08-30 20:13:04 +02:00
|
|
|
%patch7 -p1
|
2014-07-27 14:38:27 +02:00
|
|
|
%endif
|
|
|
|
|
2014-10-08 17:36:03 +02:00
|
|
|
%patch8 -p1
|
2015-03-13 18:28:22 +01:00
|
|
|
%patch9 -p1
|
2014-10-08 17:36:03 +02:00
|
|
|
|
2016-03-26 12:30:07 +01:00
|
|
|
%if 0%{?suse_version} == 1315 && !0%{?is_opensuse}
|
2016-03-04 16:49:11 +01:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%endif
|
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
cp -r %{SOURCE2} .
|
|
|
|
cp -r %{SOURCE3} .
|
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
intltoolize -f
|
|
|
|
%configure --disable-static \
|
2013-07-07 19:40:03 +02:00
|
|
|
--enable-gtk3 \
|
|
|
|
--enable-vala \
|
2014-07-27 14:38:27 +02:00
|
|
|
%if %{with_python3}
|
|
|
|
--with-python=python3 \
|
|
|
|
%endif
|
2013-07-07 19:40:03 +02:00
|
|
|
--enable-python-library \
|
|
|
|
--enable-introspection \
|
|
|
|
--disable-gconf \
|
|
|
|
--enable-dconf \
|
|
|
|
--enable-gtk-doc \
|
2014-07-27 14:38:27 +02:00
|
|
|
%if %{with_wayland}
|
2014-07-26 15:19:01 +02:00
|
|
|
--enable-wayland \
|
2015-04-02 17:13:45 +02:00
|
|
|
%endif
|
2015-08-10 15:44:14 +02:00
|
|
|
%if 0%{?suse_version} < 1315
|
2015-04-02 17:13:45 +02:00
|
|
|
--disable-appindicator \
|
2013-09-13 20:07:40 +02:00
|
|
|
%endif
|
2013-09-13 05:49:26 +02:00
|
|
|
--enable-surrounding-text \
|
2015-08-10 15:44:14 +02:00
|
|
|
--enable-appindicator_engine_icon \
|
2014-07-27 14:38:27 +02:00
|
|
|
--libexecdir=%{_libdir}/ibus
|
2013-09-13 20:07:40 +02:00
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-03-26 18:05:03 +01:00
|
|
|
|
|
|
|
%install
|
2014-11-22 19:10:07 +01:00
|
|
|
make DESTDIR=%{buildroot} install -j1
|
2014-07-27 14:38:27 +02:00
|
|
|
|
2013-03-28 20:34:04 +01:00
|
|
|
# autostart
|
2014-07-27 14:38:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xim.d/
|
|
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/X11/xim.d/ibus
|
2016-02-28 17:32:13 +01:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -c -m 0755 %{SOURCE10} %{buildroot}%{_bindir}/ibus-autostart
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
|
|
|
|
install -c -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/xdg/autostart/ibus-autostart.desktop
|
2013-07-07 19:40:03 +02:00
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
sed -i 1i"SYS_LIB=%{_lib}" %{buildroot}%{_sysconfdir}/X11/xim.d/ibus
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2011-06-16 07:38:59 +02:00
|
|
|
PRIORITY=40
|
2014-07-27 14:38:27 +02:00
|
|
|
pushd %{buildroot}%{_sysconfdir}/X11/xim.d/
|
2011-06-16 07:38:59 +02:00
|
|
|
for lang in am ar as bn el fa gu he hi hr ja ka kk kn ko lo ml my \
|
|
|
|
pa ru sk vi zh_TW zh_CN zh_HK zh_SG \
|
|
|
|
de fr it es nl cs pl da nn nb fi en sv
|
|
|
|
do
|
|
|
|
mkdir $lang
|
|
|
|
pushd $lang
|
|
|
|
ln -s ../ibus $PRIORITY-ibus
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
popd
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-03-28 20:34:04 +01:00
|
|
|
# remove static libs
|
2014-07-27 14:38:27 +02:00
|
|
|
find %{buildroot}/%{_libdir} -name "*.la" -type f -delete -print
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
2010-03-26 18:05:03 +01:00
|
|
|
ln -sf %{_datadir}/icons/hicolor/48x48/apps/ibus-keyboard.png \
|
2014-07-27 14:38:27 +02:00
|
|
|
%{buildroot}%{_datadir}/pixmaps/ibus-keyboard.png
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-09-13 20:07:40 +02:00
|
|
|
# touch for %%ghost
|
2014-07-27 14:38:27 +02:00
|
|
|
touch %{buildroot}/%{_sysconfdir}/dconf/db/ibus
|
2013-09-13 20:07:40 +02:00
|
|
|
|
2013-10-17 09:29:53 +02:00
|
|
|
# fix kde monochrome icons
|
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
cp -r %{SOURCE5} ./
|
|
|
|
%else
|
|
|
|
cp -r %{SOURCE6} ./
|
|
|
|
mv kde-12.2.tar.gz kde.tar.gz
|
|
|
|
%endif
|
|
|
|
tar -xzf kde.tar.gz
|
|
|
|
pushd kde
|
|
|
|
for i in 16 22 24 32 48 ; do
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/oxygen/${i}x${i}/apps/
|
|
|
|
cp -r ibus-keyboard.${i}x${i}.png %{buildroot}%{_datadir}/icons/oxygen/${i}x${i}/apps/ibus-keyboard.png
|
|
|
|
done
|
2014-07-27 14:38:27 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/oxygen/scalable/apps/
|
2013-10-17 09:29:53 +02:00
|
|
|
cp -r ibus-keyboard.svgz %{buildroot}%{_datadir}/icons/oxygen/scalable/apps/
|
|
|
|
popd
|
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
# install macros
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
|
|
|
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/rpm
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2014-10-13 11:46:38 +02:00
|
|
|
%suse_update_desktop_file -r %{name}-setup Settings DesktopSettings X-SuSE-Core-System
|
2014-07-27 14:38:27 +02:00
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%find_lang ibus10 %{?no_lang_C}
|
2013-02-21 02:27:19 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%post
|
2014-07-27 14:38:27 +02:00
|
|
|
%{glib2_gsettings_schema_post}
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%posttrans
|
|
|
|
dconf update
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%postun
|
2014-07-27 14:38:27 +02:00
|
|
|
%{glib2_gsettings_schema_postun}
|
2013-07-07 19:40:03 +02:00
|
|
|
dconf update
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%post gtk
|
2014-07-27 14:38:27 +02:00
|
|
|
%{gtk2_immodule_post}
|
2010-03-26 18:05:03 +01:00
|
|
|
|
|
|
|
%postun gtk
|
2014-07-27 14:38:27 +02:00
|
|
|
%{gtk2_immodule_postun}
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%post -n libibus-1_0-5 -p /sbin/ldconfig
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%postun -n libibus-1_0-5 -p /sbin/ldconfig
|
2011-08-09 10:54:38 +02:00
|
|
|
|
2011-06-14 08:04:24 +02:00
|
|
|
%post gtk3
|
2014-07-27 14:38:27 +02:00
|
|
|
%{gtk3_immodule_post}
|
2011-06-27 13:34:31 +02:00
|
|
|
|
2011-06-14 08:04:24 +02:00
|
|
|
%postun gtk3
|
2014-07-27 14:38:27 +02:00
|
|
|
%{gtk3_immodule_postun}
|
2011-06-14 08:04:24 +02:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%files
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README README.SUSE xim.ibus.suse.template
|
|
|
|
%config %{_sysconfdir}/rpm/macros.ibus
|
|
|
|
%config %{_sysconfdir}/X11/xim.d/*
|
2013-07-07 19:40:03 +02:00
|
|
|
%{_bindir}/ibus
|
2016-02-28 17:32:13 +01:00
|
|
|
%{_bindir}/ibus-autostart
|
2010-03-26 18:05:03 +01:00
|
|
|
%{_bindir}/ibus-daemon
|
|
|
|
%{_bindir}/ibus-setup
|
2014-07-27 14:38:27 +02:00
|
|
|
%{_datadir}/ibus/
|
|
|
|
%{_datadir}/applications/ibus-setup.desktop
|
2013-07-07 19:40:03 +02:00
|
|
|
%{_datadir}/GConf/gsettings/ibus.convert
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.gschema.xml
|
2014-07-27 14:38:27 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/ibus*.*
|
|
|
|
%{_datadir}/pixmaps/ibus-keyboard.png
|
|
|
|
%{_libdir}/ibus
|
|
|
|
%{_datadir}/bash-completion/completions/ibus.bash
|
2016-12-05 13:15:31 +01:00
|
|
|
%{_datadir}/dbus-1/services/org.freedesktop.IBus.service
|
2015-04-02 17:13:45 +02:00
|
|
|
# This file is generated by dconf update
|
2013-09-13 20:07:40 +02:00
|
|
|
%ghost %{_sysconfdir}/dconf/db/ibus
|
2015-04-02 17:13:45 +02:00
|
|
|
%dir %{_sysconfdir}/dconf/db/ibus.d
|
|
|
|
# This file is not a config file. Users may not modify it.
|
|
|
|
%{_sysconfdir}/dconf/db/ibus.d/00-upstream-settings
|
|
|
|
%{_sysconfdir}/dconf/profile/ibus
|
2016-02-28 17:32:13 +01:00
|
|
|
%{_sysconfdir}/xdg/autostart/ibus-autostart.desktop
|
2014-07-27 14:38:27 +02:00
|
|
|
%{_mandir}/man1/ibus.1.gz
|
|
|
|
%{_mandir}/man1/ibus-daemon.1.gz
|
|
|
|
%{_mandir}/man1/ibus-setup.1.gz
|
2013-03-28 19:17:11 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%files lang -f ibus10.lang
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-07-07 19:40:03 +02:00
|
|
|
%files -n libibus-1_0-5
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libibus-1.0.so.*
|
2012-01-25 02:48:20 +01:00
|
|
|
|
|
|
|
%files -n typelib-1_0-IBus-1_0
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
2011-06-19 14:48:28 +02:00
|
|
|
%{_libdir}/girepository-1.0/IBus-1.0.typelib
|
2010-03-26 18:05:03 +01:00
|
|
|
|
|
|
|
%files gtk
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
2010-03-26 18:05:03 +01:00
|
|
|
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.so
|
|
|
|
|
2011-06-14 08:04:24 +02:00
|
|
|
%files gtk3
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/gtk-3.0/3.0.0/immodules/im-ibus.so
|
|
|
|
|
|
|
|
%if %{with_python3}
|
|
|
|
%files -n python3-ibus
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python3_sitearch}/ibus
|
|
|
|
|
|
|
|
%else
|
2013-07-07 19:40:03 +02:00
|
|
|
|
|
|
|
%files -n python-ibus
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
2014-03-19 06:34:31 +01:00
|
|
|
%{python_sitearch}/ibus
|
2014-08-08 16:44:14 +02:00
|
|
|
%{python_sitearch}/gi/overrides/*
|
2011-06-14 08:04:24 +02:00
|
|
|
|
2014-07-27 14:38:27 +02:00
|
|
|
%endif
|
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%files devel
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libibus-1.0.so
|
|
|
|
%{_includedir}/ibus-1.0
|
|
|
|
%{_datadir}/gtk-doc/html/ibus
|
|
|
|
%{_libdir}/pkgconfig/ibus-1.0.pc
|
2011-06-19 14:48:28 +02:00
|
|
|
%{_datadir}/gir-1.0/IBus-1.0.gir
|
2014-07-27 14:38:27 +02:00
|
|
|
%{_datadir}/vala/vapi/ibus-1.0.deps
|
|
|
|
%{_datadir}/vala/vapi/ibus-1.0.vapi
|
2010-03-26 18:05:03 +01:00
|
|
|
|
2013-10-17 09:29:53 +02:00
|
|
|
%files branding-openSUSE-KDE
|
2014-07-27 14:38:27 +02:00
|
|
|
%defattr(-,root,root)
|
2016-04-14 14:47:34 +02:00
|
|
|
%dir %{_datadir}/icons/oxygen/*
|
|
|
|
%dir %{_datadir}/icons/oxygen/*/apps
|
2013-10-17 09:29:53 +02:00
|
|
|
%{_datadir}/icons/oxygen/*/apps/ibus-keyboard.*
|
|
|
|
|
2010-03-26 18:05:03 +01:00
|
|
|
%changelog
|