@@ -3,19 +3,20 @@ Distribution: Azure Linux
33%global snapshot 0
44
55Name: libpinyin
6- Version: 2.3.0
7- Release: 4 %{?dist }
6+ Version: 2.9.92
7+ Release: 1 %{?dist }
88Summary: Library to deal with pinyin
99
10- License: GPLv3+
10+ License: GPL-3.0 -or-later
1111URL: https://github.com/libpinyin/libpinyin
12- Source0: http ://downloads.sourceforge.net/libpinyin/libpinyin/%{name }-%{version }.tar.gz
12+ Source0: https ://downloads.sourceforge.net/libpinyin/libpinyin/%{name }-%{version }.tar.gz
1313%if %snapshot
14- Patch0: libpinyin-2.3 .x-head.patch
14+ Patch0: libpinyin-2.8 .x-head.patch
1515%endif
1616
1717BuildRequires: gcc-c++
1818BuildRequires: kyotocabinet-devel, glib2-devel
19+ BuildRequires: make
1920Requires: %{name }-data%{?_isa } = %{version }-%{release }
2021
2122%description
@@ -61,20 +62,19 @@ The libzhuyin package contains libzhuyin compatibility library.
6162%setup -q
6263
6364%if %snapshot
64- %patch 0 -p1 -b .head
65+ %patch -P0 -p1 -b .head
6566%endif
6667
6768%build
6869%configure --disable-static \
6970 --with-dbm=KyotoCabinet \
7071 --enable-libzhuyin
71- make %{?_smp_mflags }
72-
72+ %make_build
7373%check
7474make check
7575
7676%install
77- make install DESTDIR= $RPM_BUILD_ROOT INSTALL= " install -p "
77+ % make_install
7878find $RPM_BUILD_ROOT -name ' *.la' -exec rm -f {} ' ;'
7979
8080
@@ -109,6 +109,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
109109%{_libdir }/libzhuyin* .so.*
110110
111111%changelog
112+ * Mon Nov 11 2024 Sumit Jena <v-sumitjena@microsoft.com> - 2.9.92-1
113+ - Update to version 2.9.92
114+ - License verified
115+
112116* Mon Jun 28 2021 Thomas Crain <thcrain@microsoft.com> - 2.3.0-4
113117- Initial CBL-Mariner import from Fedora 32 (license: MIT).
114118- Require libzhuyin subpackage from libpinyin-devel
0 commit comments