Compare commits

...

No commits in common. "c8" and "c10s" have entirely different histories.
c8 ... c10s

10 changed files with 230 additions and 14 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

59
.gitignore vendored
View File

@ -1 +1,58 @@
SOURCES/libpinyin-2.2.0.tar.gz
/libpinyin-0.2.99.1.tar.gz
/libpinyin-0.2.99.2.tar.gz
/libpinyin-0.2.99.3.tar.gz
/libpinyin-0.3.0.tar.gz
/libpinyin-0.4.91.tar.gz
/libpinyin-0.4.92.tar.gz
/libpinyin-0.4.93.tar.gz
/libpinyin-0.5.0.tar.gz
/libpinyin-0.5.91.tar.gz
/libpinyin-0.5.92.tar.gz
/libpinyin-0.6.0.tar.gz
/libpinyin-0.6.92.tar.gz
/libpinyin-0.7.0.tar.gz
/libpinyin-0.7.1.tar.gz
/libpinyin-0.7.91.tar.gz
/libpinyin-0.7.92.tar.gz
/libpinyin-0.8.0.tar.gz
/libpinyin-0.8.1.tar.gz
/libpinyin-0.8.91.tar.gz
/libpinyin-0.8.92.tar.gz
/libpinyin-0.8.93.tar.gz
/libpinyin-0.9.91.tar.gz
/libpinyin-0.9.92.tar.gz
/libpinyin-0.9.93.tar.gz
/libpinyin-0.9.94.tar.gz
/libpinyin-1.0.0.tar.gz
/libpinyin-1.0.99.20150203.tar.gz
/libpinyin-1.0.99.20150212.tar.gz
/libpinyin-1.1.0.tar.gz
/libpinyin-1.1.91.tar.gz
/libpinyin-1.2.0.tar.gz
/libpinyin-1.2.91.tar.gz
/libpinyin-1.3.0.tar.gz
/libpinyin-1.5.91.tar.gz
/libpinyin-1.5.92.tar.gz
/libpinyin-1.6.0.tar.gz
/libpinyin-1.6.91.tar.gz
/libpinyin-1.7.0.tar.gz
/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

View File

@ -1 +0,0 @@
c22a322fd77ee84f65edfcc4b1f547849206df62 SOURCES/libpinyin-2.2.0.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
# this is the testcase identifier, which OSCI pipeline uses
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

View File

@ -1,19 +1,20 @@
%global snapshot 0
Name: libpinyin
Version: 2.2.0
Release: 2%{?dist}
Version: 2.8.1
Release: 9%{?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.2.x-head.patch
Patch0: libpinyin-2.8.x-head.patch
%endif
BuildRequires: gcc-c++
BuildRequires: kyotocabinet-devel, glib2-devel
BuildRequires: make
Requires: %{name}-data%{?_isa} = %{version}-%{release}
%description
@ -24,6 +25,7 @@ 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}
@ -65,19 +67,17 @@ The libzhuyin package contains libzhuyin compatibility library.
%configure --disable-static \
--with-dbm=KyotoCabinet \
--enable-libzhuyin
make %{?_smp_mflags}
%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
%ldconfig_scriptlets
%files
@ -108,9 +108,115 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_libdir}/libzhuyin*.so.*
%changelog
* Fri Sep 24 2021 Peng Wu <pwu@redhat.com> - 2.2.0-2
- Build libpinyin for RHEL 8 CRB
- Resolves: #2006100
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.8.1-9
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.8.1-8
- Bump release for June 2024 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

6
plans/basic.fmf Normal file
View File

@ -0,0 +1,6 @@
summary: Basic smoke test
discover:
how: fmf
dist-git-source: true
execute:
how: tmt

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (libpinyin-2.8.1.tar.gz) = cf344d12ba31b72fd63e39345a294f8507533db7b2cea3df69214fee7f62068823832587907e78df44aeb035990e9dbc5fd4eb5ee95a757158fc165abb986b91

13
tests/main.fmf Normal file
View File

@ -0,0 +1,13 @@
test: bash ./make_check.sh ..
duration: 50m
framework: shell
require:
- make
- gcc-c++
- autoconf
- automake
- libtool
- gettext-devel
- glib2-devel
- kyotocabinet-devel
- rpm-build

26
tests/make_check.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/bash
set -x
check_return_value () {
if [ $1 != 0 ] ; then
exit $1
fi
}
cd $1
VERSION=`rpmspec -q --srpm --qf "%{version}" libpinyin.spec 2>/dev/null`
if test -d libpinyin-$VERSION-build;
then cd libpinyin-$VERSION-build;
fi
cd libpinyin-$VERSION
./configure --prefix=/usr --with-dbm=KyotoCabinet --enable-libzhuyin
check_return_value $?
make
check_return_value $?
make check
exit $?