diff --git a/fixes-lmyoslib.c.patch b/fixes-lmyoslib.c.patch new file mode 100644 index 0000000..f4e0afa --- /dev/null +++ b/fixes-lmyoslib.c.patch @@ -0,0 +1,22 @@ +From f3faeeff3fbe3bf9e30ed4461c2c8d0466966e56 Mon Sep 17 00:00:00 2001 +From: Peng Wu +Date: Mon, 6 Jul 2020 09:59:05 +0800 +Subject: [PATCH] fixes lmyoslib.c + +--- + lua/lmyoslib.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lua/lmyoslib.c b/lua/lmyoslib.c +index 868fc56..fc6a24b 100644 +--- a/lua/lmyoslib.c ++++ b/lua/lmyoslib.c +@@ -57,7 +57,7 @@ static int getfield (lua_State *L, const char *key, int d) { + res = (int)lua_tointeger(L, -1); + else { + if (d < 0) +- return luaL_error(L, "field " LUA_QS " missing in date table", key); ++ return luaL_error(L, "field '%s' missing in date table", key); + res = d; + } + lua_pop(L, 1); diff --git a/ibus-libpinyin.spec b/ibus-libpinyin.spec index 53062ea..811c387 100644 --- a/ibus-libpinyin.spec +++ b/ibus-libpinyin.spec @@ -1,11 +1,14 @@ Name: ibus-libpinyin Version: 1.10.0 -Release: 5 +Release: 6 Summary: Intelligent Pinyin engine based on libpinyin for IBus License: GPLv2+ Group: System Environment/Libraries URL: https://github.com/libpinyin/ibus-libpinyin Source0: http://downloads.sourceforge.net/libpinyin/ibus-libpinyin/%{name}-%{version}.tar.gz + +Patch0001: fixes-lmyoslib.c.patch + Requires: python3-gobject ibus >= 1.5.11 BuildRequires: gcc-c++ gettext-devel intltool libtool pkgconfig sqlite-devel libuuid-devel lua-devel BuildRequires: python3-devel desktop-file-utils ibus-devel >= 1.5.11 libpinyin-devel >= 2.1.0 @@ -19,7 +22,7 @@ It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo) input method based on libpinyin for IBus. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build %configure --disable-static \ @@ -63,5 +66,8 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/ibus-setup-libbopomof %{_libexecdir}/ibus-setup-libpinyin %changelog +* Sat Aug 08 2020 lingsheng - 1.10.0-6 +- Fix build with lua 5.4 + * Tue Mar 10 2020 wangzhishun - 1.10.0-5 - Package init