Skip to content

Commit ccf0294

Browse files
authored
Upgrade: libpinyin version to 2.9.92 (#11014)
1 parent 9038469 commit ccf0294

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

SPECS-EXTENDED/libpinyin/libpinyin-2.8.x-head.patch

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"libpinyin-2.3.0.tar.gz": "b3dc9c6a1af55e9427f9d462ff176fbab6a3793368080a2f8e2a58c4cd4e2691"
3+
"libpinyin-2.9.92.tar.gz": "f816515a6cb7c9a134cb5214de2a3403f03da4791a38d62be45a6fa91ee7e4d9"
44
}
55
}

SPECS-EXTENDED/libpinyin/libpinyin.spec

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@ Distribution: Azure Linux
33
%global snapshot 0
44

55
Name: libpinyin
6-
Version: 2.3.0
7-
Release: 4%{?dist}
6+
Version: 2.9.92
7+
Release: 1%{?dist}
88
Summary: Library to deal with pinyin
99

10-
License: GPLv3+
10+
License: GPL-3.0-or-later
1111
URL: 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

1717
BuildRequires: gcc-c++
1818
BuildRequires: kyotocabinet-devel, glib2-devel
19+
BuildRequires: make
1920
Requires: %{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
7474
make check
7575

7676
%install
77-
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
77+
%make_install
7878
find $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

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10661,8 +10661,8 @@
1066110661
"type": "other",
1066210662
"other": {
1066310663
"name": "libpinyin",
10664-
"version": "2.3.0",
10665-
"downloadUrl": "http://downloads.sourceforge.net/libpinyin/libpinyin/libpinyin-2.3.0.tar.gz"
10664+
"version": "2.9.92",
10665+
"downloadUrl": "https://downloads.sourceforge.net/libpinyin/libpinyin/libpinyin-2.9.92.tar.gz"
1066610666
}
1066710667
}
1066810668
},

0 commit comments

Comments
 (0)