[packages/ibus-anthy] - added fixes for missing libanthy prototypes; cleanup, release 2
qboosh
qboosh at pld-linux.org
Sat Apr 5 14:52:17 CEST 2025
commit 589a2d8c09b5539da9a105ae3724c7ddeaf36962
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Apr 5 14:08:14 2025 +0200
- added fixes for missing libanthy prototypes; cleanup, release 2
ibus-anthy-proto.patch | 22 ++++++++++++++++++++++
ibus-anthy.spec | 18 +++++++-----------
2 files changed, 29 insertions(+), 11 deletions(-)
---
diff --git a/ibus-anthy.spec b/ibus-anthy.spec
index e6b67eb..18e0701 100644
--- a/ibus-anthy.spec
+++ b/ibus-anthy.spec
@@ -7,12 +7,13 @@ Summary: The Anthy engine for IBus input platform
Summary(pl.UTF-8): Silnik Anthy dla platformy wprowadzania znaków IBus
Name: ibus-anthy
Version: 1.5.17
-Release: 1
+Release: 2
License: GPL v2+
Group: Libraries
#Source0Download: https://github.com/ibus/ibus-anthy/releases
Source0: https://github.com/ibus/ibus-anthy/releases/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 10788971d7776189bc96d48d4598d08a
+Patch0: %{name}-proto.patch
URL: https://github.com/fujiwarat/ibus-anthy/wiki
BuildRequires: anthy-unicode-devel
BuildRequires: autoconf >= 2.50
@@ -25,8 +26,9 @@ BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:2
BuildRequires: pkgconfig
BuildRequires: python3-devel >= 1:3.6
+BuildRequires: python3-ibus >= 1.5.28
+BuildRequires: python3-pygobject3
BuildRequires: rpmbuild(macros) >= 1.219
-BuildRequires: sed >= 4.0
%{?with_swig:BuildRequires: swig-python}
Requires(post,postun): glib2-devel >= 1:2.26.0
Requires(post,postun): gtk-update-icon-cache
@@ -90,19 +92,12 @@ Oparty na SWIG-u pythonowy interfejs do biblioteki Anthy.
%prep
%setup -q
-
-# ibus 1.4.x has symbol attr in EngineDesc;
-# ibus 1.4.99/1.5+ has symbol attr in IBus.Property
-# hardcode it so python-ibus is not BRed here
-%{__sed} -i -e 's,\$SYMBOL_TEST,exit(0),' configure.ac
-
-# gettextize will add it again
-#%{__sed} -i -e '/AC_CONFIG_FILES/s@ po/Makefile\.in@@' configure.ac
+%patch -P0 -p1
%build
%{__gettextize}
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
@@ -116,6 +111,7 @@ Oparty na SWIG-u pythonowy interfejs do biblioteki Anthy.
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
diff --git a/ibus-anthy-proto.patch b/ibus-anthy-proto.patch
new file mode 100644
index 0000000..c4506a3
--- /dev/null
+++ b/ibus-anthy-proto.patch
@@ -0,0 +1,22 @@
+--- ibus-anthy-1.5.17/engine/python3/anthy.i.orig 2025-02-18 15:19:37.000000000 +0100
++++ ibus-anthy-1.5.17/engine/python3/anthy.i 2025-04-05 13:51:37.903433638 +0200
+@@ -25,6 +25,8 @@
+ %{
+ /* Put header files here or function declarations like below */
+ #include <anthy/anthy.h>
++extern void anthy_init_personality(void);
++extern int anthy_do_set_personality(const char *id);
+ %}
+
+ %init %{
+@@ -110,8 +112,8 @@ struct anthy_context {};
+ return anthy_set_reconversion_mode (self, mode);
+ }
+
+- int init_personality (void) {
+- return anthy_init_personality ();
++ void init_personality (void) {
++ anthy_init_personality ();
+ }
+
+ int do_set_personality (const char *id) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ibus-anthy.git/commitdiff/589a2d8c09b5539da9a105ae3724c7ddeaf36962
More information about the pld-cvs-commit
mailing list