[packages/ibus-pinyin] - updated to 1.5.1

qboosh qboosh at pld-linux.org
Sat Jul 20 09:07:37 CEST 2024


commit 1a21aca9969d3cef21232e97fef27532f0bc0d1d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 20 07:52:05 2024 +0200

    - updated to 1.5.1

 ibus-pinyin.spec | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/ibus-pinyin.spec b/ibus-pinyin.spec
index d05c93b..54c5cf1 100644
--- a/ibus-pinyin.spec
+++ b/ibus-pinyin.spec
@@ -5,13 +5,15 @@
 Summary:	The Chinese Pinyin and Bopomofo engines for IBus input platform
 Summary(pl.UTF-8):	Silniki chińskie Pinyin i Bopomofo dla platformy wprowadzania znaków IBus
 Name:		ibus-pinyin
-Version:	1.5.0
+Version:	1.5.1
 Release:	1
 License:	GPL v2+
 Group:		Libraries
-# note: currently developed in https://github.com/ibus/ibus-pinyin
-Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5:	f7728b5b785fae58e2b4de8dfda45612
+#Source0Download: https://github.com/ibus/ibus-pinyin/tags
+Source0:	https://github.com/ibus/ibus-pinyin/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	98f61b9c3c454ecef25413e07d3dc83e
+Source1:	https://raw.githubusercontent.com/tsuna/boost.m4/3d67ee84e9149f6279a8df2113f5a86f0a83bd0d/build-aux/boost.m4
+# Source1-md5:	86092bd75ae3e9109891646b21cc433e
 Patch0:		%{name}-xx-icon-symbol.patch
 Patch1:		%{name}-lua51.patch
 URL:		https://github.com/ibus/ibus-pinyin
@@ -26,7 +28,8 @@ BuildRequires:	libuuid-devel
 BuildRequires:	lua51-devel >= 5.1
 %{?with_opencc:BuildRequires:	opencc-devel}
 BuildRequires:	pkgconfig
-BuildRequires:	python >= 1:2.5
+# or python2 >= 2.5
+BuildRequires:	python3 >= 1:3.2
 BuildRequires:	pyzy-devel >= 0.0.8
 BuildRequires:	sqlite3-devel >= 3
 Requires:	ibus >= 1.4.99
@@ -47,7 +50,11 @@ IBus.
 %patch0 -p1
 %patch1 -p1
 
+# update to support newer compilers
+cp -pf %{SOURCE1} m4/boost.m4
+
 %build
+%{__intltoolize}
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
@@ -56,7 +63,8 @@ IBus.
 %configure \
 	--enable-boost \
 	%{?with_opencc:--enable-opencc} \
-	--disable-silent-rules
+	--disable-silent-rules \
+	--with-python=%{__python3}
 
 %{__make}
 
@@ -73,7 +81,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
+%doc AUTHORS README
 %attr(755,root,root) %{_libexecdir}/ibus-engine-pinyin
 %attr(755,root,root) %{_libexecdir}/ibus-setup-pinyin
 %{_datadir}/ibus-pinyin/phrases.txt
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ibus-pinyin.git/commitdiff/1a21aca9969d3cef21232e97fef27532f0bc0d1d



More information about the pld-cvs-commit mailing list