diff --git a/.gitignore b/.gitignore index bd90cd8..8a89589 100644 --- a/.gitignore +++ b/.gitignore @@ -62,5 +62,3 @@ /libpinyin-2.10.0.tar.gz /libpinyin-2.10.1.tar.gz /libpinyin-2.10.2.tar.gz -/libpinyin-2.10.3.tar.gz -/libpinyin-2.11.91.tar.gz diff --git a/libpinyin.spec b/libpinyin.spec index 5c6ad5e..e69586d 100644 --- a/libpinyin.spec +++ b/libpinyin.spec @@ -1,11 +1,16 @@ +%global snapshot 0 + Name: libpinyin -Version: 2.11.91 +Version: 2.10.2 Release: 1%{?dist} Summary: Library to deal with pinyin License: GPL-3.0-or-later URL: https://github.com/libpinyin/libpinyin Source0: http://downloads.sourceforge.net/libpinyin/libpinyin/%{name}-%{version}.tar.gz +%if %snapshot +Patch0: libpinyin-2.10.x-head.patch +%endif BuildRequires: gcc-c++ BuildRequires: kyotocabinet-devel, glib2-devel @@ -54,6 +59,10 @@ The libzhuyin package contains libzhuyin compatibility library. %prep %setup -q +%if %snapshot +%patch -P0 -p1 -b .head +%endif + %build %configure --disable-static \ --with-dbm=KyotoCabinet \ @@ -68,6 +77,9 @@ make check find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +%ldconfig_scriptlets + + %files %doc AUTHORS COPYING README %{_libdir}/libpinyin*.so.* @@ -96,18 +108,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %{_libdir}/libzhuyin*.so.* %changelog -* Sun Jan 04 2026 Peng Wu - 2.11.91-1 -- Update to 2.11.91 -- support "sua" and "zua" pinyin input - -* Thu Sep 18 2025 Peng Wu - 2.10.3-1 -- Update to 2.10.3 -- bug fixes - -* Thu Jul 24 2025 Fedora Release Engineering - 2.10.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Fri May 16 2025 Peng Wu - 2.10.2-1 +* Fri May 16 2025 Peng Wu - 2.10.2-1 - Update to 2.10.2 - fix memory leaks diff --git a/sources b/sources index 78107a0..8543200 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libpinyin-2.11.91.tar.gz) = cfcc5c92ab5e392119d4a78e6e2e77dc620fee65647c23c39443e20dabc0717c83c9387bf4dba3066d5ba17e904cb2ec09dc80b5fb11aef315853dff14ca5c1b +SHA512 (libpinyin-2.10.2.tar.gz) = 120ca46df86accc9e223bc4736de955dd34009853cb19be98514ad30c283eb04df77af6e76572ff41f0ac2d853be302cf71cafff97a9fa5962316be14164d196