Compare commits

..

22 commits

Author SHA1 Message Date
Peng Wu
30cc993ff4 Update to 2.11.91 2026-01-04 14:09:47 +08:00
Peng Wu
21d4cd325f Fix some typos 2025-09-18 14:59:04 +08:00
Peng Wu
6f6018875c Update to 2.10.3 2025-09-18 14:30:12 +08:00
Fedora Release Engineering
a793251367 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 20:10:58 +00:00
Peng Wu
f41033ac51 Update to 2.10.2 2025-05-16 12:19:53 +08:00
Peng Wu
ff77e172ec Update to 2.10.1 2025-03-24 11:33:29 +08:00
Peng Wu
ffbdf6b3dd Fix some bugs 2025-03-21 11:21:30 +08:00
Peng Wu
0def695da4 Update to 2.10.0 2025-02-08 15:46:09 +08:00
Fedora Release Engineering
08bdc29553 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-20 07:50:14 +00:00
Fedora Release Engineering
d324dcf944 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 12:59:57 +00:00
Peng Wu
bf212e7bcc Rewrite CI tests to use beakerlib framework 2025-01-16 15:26:02 +08:00
Peng Wu
4ecffc72a1 Update to 2.9.93 2024-12-17 12:06:20 +08:00
Peng Wu
4ae5479b90 Update to 2.9.92 2024-10-21 12:44:28 +08:00
Peng Wu
609d71701b Update to 2.9.91 2024-08-13 16:44:05 +08:00
Fedora Release Engineering
66df7710ce Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 14:47:06 +00:00
Peng Wu
4683dee947 Rewrite CI tests 2024-06-14 12:15:39 +08:00
Software Management Team
99e3228d21 Eliminate use of obsolete %patchN syntax (#2283636) 2024-05-30 12:46:47 +02:00
Fedora Release Engineering
9187d951b8 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 03:13:48 +00:00
Fedora Release Engineering
689c621329 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 05:00:57 +00:00
Peng Wu
523cfe1a38 Switch to use Kyoto Cabinet 2023-08-23 13:52:44 +08:00
Fedora Release Engineering
8532ea0ead Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 11:46:47 +00:00
Peng Wu
42315b9f92 Migrate to SPDX license 2023-05-19 14:38:49 +08:00
10 changed files with 134 additions and 58 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

8
.gitignore vendored
View file

@ -56,3 +56,11 @@
/libpinyin-2.7.92.tar.gz
/libpinyin-2.8.0.tar.gz
/libpinyin-2.8.1.tar.gz
/libpinyin-2.9.91.tar.gz
/libpinyin-2.9.92.tar.gz
/libpinyin-2.9.93.tar.gz
/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

View file

@ -1,20 +1,15 @@
%global snapshot 0
Name: libpinyin
Version: 2.8.1
Release: 2%{?dist}
Version: 2.11.91
Release: 1%{?dist}
Summary: Library to deal with pinyin
License: GPLv3+
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.8.x-head.patch
%endif
BuildRequires: gcc-c++
BuildRequires: libdb-devel, glib2-devel
BuildRequires: make
BuildRequires: kyotocabinet-devel, glib2-devel
BuildRequires: make
Requires: %{name}-data%{?_isa} = %{version}-%{release}
%description
@ -59,13 +54,9 @@ The libzhuyin package contains libzhuyin compatibility library.
%prep
%setup -q
%if %snapshot
%patch0 -p1 -b .head
%endif
%build
%configure --disable-static \
--with-dbm=BerkeleyDB \
--with-dbm=KyotoCabinet \
--enable-libzhuyin
%make_build
@ -77,9 +68,6 @@ make check
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%ldconfig_scriptlets
%files
%doc AUTHORS COPYING README
%{_libdir}/libpinyin*.so.*
@ -108,6 +96,69 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_libdir}/libzhuyin*.so.*
%changelog
* Sun Jan 04 2026 Peng Wu <pwu@redhat.com> - 2.11.91-1
- Update to 2.11.91
- support "sua" and "zua" pinyin input
* Thu Sep 18 2025 Peng Wu <pwu@redhat.com> - 2.10.3-1
- Update to 2.10.3
- bug fixes
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri May 16 2025 Peng Wu <pwu@redhat.com> - 2.10.2-1
- Update to 2.10.2
- fix memory leaks
* Mon Mar 24 2025 Peng Wu <pwu@redhat.com> - 2.10.1-1
- Update to 2.10.1
- bug fixes
* Fri Mar 21 2025 Peng Wu <pwu@redhat.com> - 2.10.0-2
- bug fixes
* Sat Feb 8 2025 Peng Wu <pwu@redhat.com> - 2.10.0-1
- Update to 2.10.0
- bug fixes
* Mon Jan 20 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.93-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.93-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Tue Dec 17 2024 Peng Wu <pwu@redhat.com> - 2.9.93-1
- Update to 2.9.93
- bug fixes
* Mon Oct 21 2024 Peng Wu <pwu@redhat.com> - 2.9.92-1
- Update to 2.9.92
- support punctuation candidate
* Tue Aug 13 2024 Peng Wu <pwu@redhat.com> - 2.9.91-1
- Update to 2.9.91
- auto clean user data when data corruption
- support to export bigram phrase
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Aug 23 2023 Peng Wu <pwu@redhat.com> - 2.8.1-5
- Switch to use Kyoto Cabinet
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri May 19 2023 Peng Wu <pwu@redhat.com> - 2.8.1-3
- Migrate to SPDX license
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

5
plans/basic.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (libpinyin-2.8.1.tar.gz) = cf344d12ba31b72fd63e39345a294f8507533db7b2cea3df69214fee7f62068823832587907e78df44aeb035990e9dbc5fd4eb5ee95a757158fc165abb986b91
SHA512 (libpinyin-2.11.91.tar.gz) = cfcc5c92ab5e392119d4a78e6e2e77dc620fee65647c23c39443e20dabc0717c83c9387bf4dba3066d5ba17e904cb2ec09dc80b5fb11aef315853dff14ca5c1b

15
tests/main.fmf Normal file
View file

@ -0,0 +1,15 @@
test: ./runtest.sh
duration: 50m
framework: beakerlib
require:
- make
- gcc-c++
- autoconf
- automake
- libtool
- gettext-devel
- glib2-devel
- kyotocabinet-devel
- libpinyin
- gnome-common
- rpm-build

View file

@ -1,17 +0,0 @@
#!/bin/bash
set -x
check_return_value () {
if [ $1 != 0 ] ; then
exit $1
fi
}
cd $1
./configure --prefix=/usr --with-dbm=BerkeleyDB --enable-libzhuyin
check_return_value $?
make
check_return_value $?
make check
exit $?

35
tests/runtest.sh Executable file
View file

@ -0,0 +1,35 @@
#!/bin/bash
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlShowPackageVersion libpinyin
rlRun -t -l "VERSION=$(rpm -q libpinyin --queryformat='%{version}')" 0 "Get VERSION"
FEDORA_VERSION=$(rlGetDistroRelease)
rlLog "FEDORA_VERSION=${DISTRO_RELEASE}"
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlFetchSrcForInstalled "libpinyin"
rlRun "rpm --define '_topdir $tmp' -i *src.rpm"
rlRun -t -l "mkdir BUILD" 0 "Creating BUILD directory"
rlRun -t -l "rpmbuild --noclean --nodeps --define '_topdir $tmp' -bp $tmp/SPECS/*spec"
if [ -d BUILD/libpinyin-${VERSION}-build ]; then
rlRun -t -l "pushd BUILD/libpinyin-${VERSION}-build/libpinyin-${VERSION}"
else
rlRun -t -l "pushd BUILD/libpinyin-${VERSION}"
fi
rlPhaseEnd
rlPhaseStartTest
rlRun "set -o pipefail"
rlRun -t -l "NOCONFIGURE=1 gnome-autogen.sh"
rlRun -t -l "./configure --with-dbm=KyotoCabinet --enable-libzhuyin"
rlRun -t -l "make"
rlRun -t -l "make check"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd; popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd

View file

@ -1,22 +0,0 @@
- hosts: localhost
vars:
- artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
tags:
- classic
remote_user: root
roles:
- role: standard-test-source # to get the source tar ball to do “make check”
- role: standard-test-basic
required_packages:
- make
- gcc-c++
- autoconf
- automake
- libtool
- gettext-devel
- glib2-devel
- libdb-devel
tests:
- make-check:
dir: ./
run: bash ./make_check.sh ./source