ibus/python3-ibus.spec
Hillwood Yang 82cf131a62 Accepting request 538941 from home:hillwood:branches:M17N
- Enable python3 build


- Enable python3 build

- Update to 1.5.17
  * ui/gtk3: Emojier supports Ctrl-c,v,x and Ctrl-Shift-c
  * Make all emoji dicts for fully qualified
  * ui/gtk3: Fix SEGV of Emojier on de_DE.UTF-8
  * ui/gtk3: Do not activate emoji cells on mouse until mouse moves
  * ui/gtk3: Fix SEGV of XKeysymToKeycode() on Wayland
  * client/gtk2: include the scaling factor in Wayland
  * Add IBus portal service to support Flatpack
  * ui/gtk3: Switcher should ignore mouse until it moves
  * client/gtk2: Do not send key events to GtkIMContextSimple
  * ui/gtk3: Fix PropertyPanel position in workarea
  * ui/gtk3: Fix to enable menu button on PropertyPanel
  * ui/gtk3: Increase timeout of window filter in PropertyPanel
  * ui/gtk3: Unset GDK_CORE_DEVICE_EVENTS
  * ui/gtk3: Unref Panel and Indicator when double panels run
  * engine: Add Malay and Mongolian keymaps
  * Update translations

- Don't build the branding-openSUSE-KDE package on SLE 

- Fix boo#1047912: ibus-setup crashes on Tumbleweed
  * fix missing dependency on python?-gobject-Gdk

- Update ibus.spec: copy auto-start files to SOURCE directory
  to enable modifications before compile.

OBS-URL: https://build.opensuse.org/request/show/538941
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=172
2017-11-05 07:07:35 +00:00

118 lines
3.9 KiB
RPMSpec

#
# spec file for package python3-ibus
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%define _name ibus
Name: python3-ibus
Version: 1.5.17
Release: 0
Summary: Python3 module for ibus
License: LGPL-2.1+
Group: System/I18n/Chinese
Url: https://github.com/ibus/
#Source: https://github.com/ibus/ibus/releases/download/%{version}/%{_name}-%{version}.tar.gz
Source: %{_name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE ibus-python-install-dir.patch ftake@geeko.jp
Patch0: ibus-python-install-dir.patch
# 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
Patch5: ibus-force-python3.patch
# PATCH-FIX-UPSTREAM marguerite@opensuse.org
Patch7: ibus-python3-migration.patch
BuildRequires: dbus-1-glib-devel
BuildRequires: dbus-1-python-devel >= 0.83.0
BuildRequires: dconf-devel >= 0.7.5
BuildRequires: fdupes
BuildRequires: gconf2-devel
BuildRequires: gettext-devel
BuildRequires: glib2-devel >= 2.34.0
BuildRequires: gobject-introspection-devel >= 0.9.6
BuildRequires: gtk-doc >= 1.9
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: iso-codes-devel
BuildRequires: libnotify-devel >= 0.7
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-gobject2-devel
BuildRequires: x11-tools
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(json-glib-1.0)
Requires: python3-gobject2
%if 0%{suse_version} > 1320
Requires: python3-gobject-Gdk
%endif
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(vapigen)
BuildRequires: pkgconfig(xkbcommon)
# copy_deep method is supported since 0.31.1
BuildRequires: vala >= 0.31.1
Requires: %{_name} = %{version}
Requires: python3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
%patch5 -p1
%patch7 -p1
%build
autoreconf -fi
intltoolize -f
%configure --disable-static \
--enable-gtk3 \
--enable-vala \
--disable-emoji-dict \
--with-python=python3 \
--enable-python-library \
--enable-introspection \
--disable-gconf \
--enable-dconf \
--enable-gtk-doc \
--enable-surrounding-text \
--enable-appindicator_engine_icon \
--libexecdir=%{_libdir}/ibus
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install -j1
#remove nessary files
rm -rf %{buildroot}%{_bindir} %{buildroot}%{_datadir} %{buildroot}%{_libdir}/ibus \
%{buildroot}%{_libdir}/gtk-* %{buildroot}%{_sysconfdir} %{buildroot}%{_includedir} \
%{buildroot}%{_libdir}/libibus* %{buildroot}%{_libdir}/pkgconfig \
%{buildroot}%{_libdir}/girepository-1.0
%files
%defattr(-,root,root)
%{python3_sitearch}/ibus
%changelog