ibus/python-ibus.spec
Hillwood Yang 681b4e8940 Accepting request 681511 from home:ftake:branches:M17N
- Fix boo#1127711
  * Remove nodejs-emojione form BuildRequires 
- Upstream update to 1.5.20
  * Support Shift-Space to insert a Space on Emojier preedit
  * Do not add emojis in compose category to emoji variants
  * Implement mouse click with Hangul in ibus side
  * Delete Gconf dependencies and migrate intool to gettext
  * Do not delete IBUS_CAP_SURROUNDING_TEXT
  * Show compose preedit with custom compose file
  * Fix Atom and Slack for Flatpak
  * Delete Super-space notification
  * Use ISO 639-3 to have names for more languages
  * introspection: Tell the GI scanner to include the C headers
  * Add Uzbek layouts
  * Allow using non-abstract UNIX domain sockets
  * Fix minor build problems, bugs, and typos 
- Update version to 1.5.20
  * No update for this subpackage

OBS-URL: https://build.opensuse.org/request/show/681511
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus?expand=0&rev=201
2019-03-05 02:53:22 +00:00

106 lines
3.4 KiB
RPMSpec

#
# spec file for package python-ibus
#
# Copyright (c) 2019 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: python-ibus
Version: 1.5.20
Release: 0
Summary: Python2 module for ibus
License: LGPL-2.1-or-later
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
BuildRequires: dbus-1-glib-devel
BuildRequires: dbus-1-python-devel >= 0.83.0
BuildRequires: dconf-devel >= 0.7.5
BuildRequires: fdupes
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
BuildRequires: python-devel
BuildRequires: python-gobject-devel
BuildRequires: unicode-ucd
BuildRequires: update-desktop-files
BuildRequires: x11-tools
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(vapigen)
BuildRequires: pkgconfig(xkbcommon)
# copy_deep method is supported since 0.31.1
BuildRequires: vala >= 0.31.1
Requires: %{_name} = %{version}
Requires: python-gobject
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
IBus, short for Intelligent Input Bus, is an input framework. IBus
plugins then provide the particular logic how to translate keypresses
to input characters and possibly show disambiguation windows around
the text cursor.
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
%build
autoreconf -fi
intltoolize -f
%configure --disable-static \
--enable-gtk3 \
--enable-vala \
--disable-emoji-dict \
--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_install
#remove needless 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
%fdupes %{buildroot}%{python_sitearch}
%files
%defattr(-,root,root)
%{python_sitearch}/ibus
%{python_sitearch}/gi/overrides/*
%changelog