Compare commits
60 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30cc993ff4 | ||
|
|
21d4cd325f | ||
|
|
6f6018875c | ||
|
|
a793251367 | ||
|
|
f41033ac51 | ||
|
|
ff77e172ec | ||
|
|
ffbdf6b3dd | ||
|
|
0def695da4 | ||
|
|
08bdc29553 | ||
|
|
d324dcf944 | ||
|
|
bf212e7bcc | ||
|
|
4ecffc72a1 | ||
|
|
4ae5479b90 | ||
|
|
609d71701b | ||
|
|
66df7710ce | ||
|
|
4683dee947 | ||
|
|
99e3228d21 | ||
|
|
9187d951b8 | ||
|
|
689c621329 | ||
|
|
523cfe1a38 | ||
|
|
8532ea0ead | ||
|
|
42315b9f92 | ||
|
|
4d117ac3cc | ||
|
|
f8491656a6 | ||
|
|
604f41251b | ||
|
|
3fafdc14a2 | ||
|
|
e88028e7e3 | ||
|
|
a93f042886 | ||
|
|
21826cf790 | ||
|
|
3037bb3414 | ||
|
|
715d7f71e5 | ||
|
|
ad5dd40f3b | ||
|
|
2afbcad168 | ||
|
|
120f9496fe | ||
|
|
482e1c55d0 | ||
|
|
71404fd99d | ||
|
|
c9f8567c41 | ||
|
|
3008747153 | ||
|
|
e8e665983c | ||
|
|
40fb1b33cd | ||
|
|
9911f9a5da | ||
|
|
066b80ab91 | ||
|
|
f33386f7f2 | ||
|
|
c93f9a29c9 | ||
|
|
64c6ee7908 | ||
|
|
0bfbda19b3 | ||
|
|
ff454d6498 |
||
|
|
df197cb829 | ||
|
|
c150daaadc | ||
|
|
eeb136564c | ||
|
|
b926df89ab | ||
|
|
5fa2b8802f | ||
|
|
4f7aee6db7 | ||
|
|
86a3d2ec14 | ||
|
|
9284eda522 | ||
|
|
d6f8293dd1 | ||
|
|
a8d334cd5b | ||
|
|
93b43129ce | ||
|
|
f54f421425 | ||
|
|
8f7ba6d994 |
8 changed files with 287 additions and 22 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
25
.gitignore
vendored
25
.gitignore
vendored
|
|
@ -39,3 +39,28 @@
|
|||
/libpinyin-1.9.91.tar.gz
|
||||
/libpinyin-1.9.92.tar.gz
|
||||
/libpinyin-2.0.0.tar.gz
|
||||
/libpinyin-2.0.91.tar.gz
|
||||
/libpinyin-2.0.92.tar.gz
|
||||
/libpinyin-2.1.0.tar.gz
|
||||
/libpinyin-2.1.91.tar.gz
|
||||
/libpinyin-2.2.0.tar.gz
|
||||
/libpinyin-2.2.1.tar.gz
|
||||
/libpinyin-2.2.2.tar.gz
|
||||
/libpinyin-2.3.0.tar.gz
|
||||
/libpinyin-2.4.91.tar.gz
|
||||
/libpinyin-2.4.92.tar.gz
|
||||
/libpinyin-2.6.0.tar.gz
|
||||
/libpinyin-2.6.1.tar.gz
|
||||
/libpinyin-2.6.2.tar.gz
|
||||
/libpinyin-2.7.91.tar.gz
|
||||
/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
|
||||
|
|
|
|||
226
libpinyin.spec
226
libpinyin.spec
|
|
@ -1,18 +1,15 @@
|
|||
%global snapshot 0
|
||||
|
||||
Name: libpinyin
|
||||
Version: 2.0.0
|
||||
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.0.x-head.patch
|
||||
%endif
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: kyotocabinet-devel, glib2-devel
|
||||
BuildRequires: make
|
||||
Requires: %{name}-data%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description
|
||||
|
|
@ -23,6 +20,9 @@ for intelligent sentence-based Chinese pinyin input methods.
|
|||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libzhuyin = %{version}-%{release}
|
||||
Provides: libzhuyin-devel = %{version}-%{release}
|
||||
Obsoletes: libzhuyin-devel < %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
|
|
@ -43,42 +43,44 @@ Requires: %{name} = %{version}-%{release}
|
|||
%description tools
|
||||
The %{name}-tools package contains tools.
|
||||
|
||||
%package -n libzhuyin
|
||||
Summary: Library to deal with zhuyin
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description -n libzhuyin
|
||||
The libzhuyin package contains libzhuyin compatibility library.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%if %snapshot
|
||||
%patch0 -p1 -b .head
|
||||
%endif
|
||||
|
||||
%build
|
||||
%configure --disable-static --with-dbm=KyotoCabinet
|
||||
make %{?_smp_mflags}
|
||||
%configure --disable-static \
|
||||
--with-dbm=KyotoCabinet \
|
||||
--enable-libzhuyin
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
%make_install
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%doc AUTHORS COPYING README
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/libpinyin*.so.*
|
||||
%dir %{_libdir}/libpinyin
|
||||
|
||||
%files devel
|
||||
%doc
|
||||
%dir %{_includedir}/libpinyin-%{version}
|
||||
%{_includedir}/libpinyin-%{version}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/libpinyin.so
|
||||
%{_libdir}/pkgconfig/libpinyin.pc
|
||||
%{_libdir}/libzhuyin.so
|
||||
%{_libdir}/pkgconfig/libzhuyin.pc
|
||||
|
||||
%files data
|
||||
%doc
|
||||
|
|
@ -90,8 +92,190 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|||
%{_bindir}/gen_unigram
|
||||
%{_mandir}/man1/*.1.*
|
||||
|
||||
%files -n libzhuyin
|
||||
%{_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
|
||||
|
||||
* Mon Jan 16 2023 Peng Wu <pwu@redhat.com> - 2.8.1-1
|
||||
- Update to 2.8.1
|
||||
- bug fixes
|
||||
|
||||
* Wed Jan 4 2023 Peng Wu <pwu@redhat.com> - 2.8.0-1
|
||||
- Update to 2.8.0
|
||||
- bug fixes for ARMv7
|
||||
|
||||
* Wed Oct 19 2022 Peng Wu <pwu@redhat.com> - 2.7.92-1
|
||||
- Update to 2.7.92
|
||||
- bug fixes
|
||||
|
||||
* Wed Oct 19 2022 Peng Wu <pwu@redhat.com> - 2.7.91-1
|
||||
- Update to 2.7.91
|
||||
- improve suggestion candidates
|
||||
- support longer candidates
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Apr 13 2022 Peng Wu <pwu@redhat.com> - 2.6.2-1
|
||||
- Update to 2.6.2
|
||||
- bug fixes
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Oct 27 2021 Peng Wu <pwu@redhat.com> - 2.6.1-2
|
||||
- Rebuild the package
|
||||
|
||||
* Wed Sep 15 2021 Peng Wu <pwu@redhat.com> - 2.6.1-1
|
||||
- Update to 2.6.1
|
||||
- bug fixes
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Dec 15 2020 Peng Wu <pwu@redhat.com> - 2.6.0-1
|
||||
- Update to 2.6.0
|
||||
- bug fixes
|
||||
|
||||
* Thu Oct 22 2020 Peng Wu <pwu@redhat.com> - 2.4.92-1
|
||||
- Update to 2.4.92
|
||||
- update pinyin data
|
||||
- bug fixes
|
||||
|
||||
* Wed Aug 26 2020 Peng Wu <pwu@redhat.com> - 2.4.91-1
|
||||
- Update to 2.4.91
|
||||
- improve full pinyin auto correction
|
||||
- bug fixes
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jul 22 2020 Tom Stellard <tstellar@redhat.com> - 2.3.0-4
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Mon Mar 18 2019 Peng Wu <pwu@redhat.com> - 2.3.0-1
|
||||
- Update to 2.3.0
|
||||
- update pinyin data
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Mon Jan 21 2019 Peng Wu <pwu@redhat.com> - 2.2.2-1
|
||||
- Update to 2.2.2
|
||||
- minor fixes
|
||||
|
||||
* Tue Oct 9 2018 Peng Wu <pwu@redhat.com> - 2.2.1-1
|
||||
- Update to 2.2.1
|
||||
- fixes predicted candidates
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Tue Apr 17 2018 Peng Wu <pwu@redhat.com> - 2.2.0-1
|
||||
- Update to 2.2.0
|
||||
- bug fixes
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.91-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Jan 25 2018 Peng Wu <pwu@redhat.com> - 2.1.91-1
|
||||
- Update to 2.1.91
|
||||
- fixes zhuyin parsers
|
||||
|
||||
* Thu Aug 24 2017 Peng Wu <pwu@redhat.com> - 2.1.0-1
|
||||
- Update to 2.1.0
|
||||
- support sort option in pinyin_guess_candidates function
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.92-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.92-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Mon Jul 10 2017 Peng Wu <pwu@redhat.com> - 2.0.92-1
|
||||
- Update to 2.0.92
|
||||
- reduce memory consumption after imported user dictionary
|
||||
|
||||
* Thu Jun 8 2017 Peng Wu <pwu@redhat.com> - 2.0.91-1
|
||||
- Update to 2.0.91
|
||||
- merge libzhuyin code
|
||||
|
||||
* Thu Apr 20 2017 Peng Wu <pwu@redhat.com> - 2.0.0-1
|
||||
- Update to 2.0.0
|
||||
|
||||
|
|
|
|||
5
plans/basic.fmf
Normal file
5
plans/basic.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (libpinyin-2.0.0.tar.gz) = 89805477d3f219c3a324bc2091edb940b74eca2b2e9b842552492fe4a6b6c0bf05bb04414b5decf455fd8c9a429ab1c3c2a8fccd1342c9a4df6c4c2a878281a8
|
||||
SHA512 (libpinyin-2.11.91.tar.gz) = cfcc5c92ab5e392119d4a78e6e2e77dc620fee65647c23c39443e20dabc0717c83c9387bf4dba3066d5ba17e904cb2ec09dc80b5fb11aef315853dff14ca5c1b
|
||||
|
|
|
|||
15
tests/main.fmf
Normal file
15
tests/main.fmf
Normal 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
|
||||
35
tests/runtest.sh
Executable file
35
tests/runtest.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue