Compare commits

...
Sign in to create a new pull request.

22 commits

Author SHA1 Message Date
Fedora Release Engineering
2051600177 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:44:44 +00:00
Fedora Release Engineering
78c4063c6b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:03:31 +00:00
Fedora Release Engineering
837491e308 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 11:11:04 +00:00
Takao Fujiwara
024c975b7d Delete unnecessary packages in CI 2024-08-17 13:13:03 +09:00
Takao Fujiwara
4f8244a770 Revert to drop emacs.i686
Fixes: https://src.fedoraproject.org/rpms/anthy-unicode/c/41d0118?branch=rawhide
2024-08-16 20:27:23 +09:00
Takao Fujiwara
cbe7995d7c Implement CI with TMT
- Add dic-tool-* test files to devel package
2024-08-16 20:23:11 +09:00
Takao Fujiwara
b275bea186 Delete CI with STI
CI with STI is archived in:
https://src.fedoraproject.org/rpms/anthy-unicode/tree/ci-sti
2024-08-16 11:08:08 +09:00
Fedora Release Engineering
2359658066 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 17:06:56 +00:00
Takao Fujiwara
f73ccdfb76 Fix some compiler warnings
- src-main/context.c: Fix warning[-Waddress]
  &ce->str will always evaluate as 'true'
- mkworddic/mkdic.c: Fix warning[-Wformat-overflow=]
  '%s' directive argument is null
2024-07-15 14:57:21 +09:00
Takao Fujiwara
41d0118e05 Drop emacs.i686 2024-07-13 10:13:27 +09:00
Takao Fujiwara
4732973d3b Fix license-validate 2024-07-13 00:39:26 +09:00
Takao Fujiwara
2fec309714 Bump to 1.0.0.20240502 2024-05-02 15:00:20 +09:00
Takao Fujiwara
684be14531 Delete upstreamed anthy-unicode-HEAD.patch 2024-05-02 14:43:53 +09:00
Takao Fujiwara
8315cdb07a Use autochangelog 2024-05-02 14:37:23 +09:00
Takao Fujiwara
2be875b605 Resolves #2269401 Fix おきのえらぶ in gcanna.ctd 2024-03-14 21:29:32 +09:00
Fedora Release Engineering
35cbfdded7 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 23:09:41 +00:00
Fedora Release Engineering
bfe4f725fb Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 13:06:33 +00:00
Fedora Release Engineering
4d0b304cfd Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 13:23:48 +00:00
Fedora Release Engineering
3a8000885e Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:50:05 +00:00
Takao Fujiwara
a15adf23fb Migrate license tag to SPDX 2022-11-16 12:53:54 +09:00
Fedora Release Engineering
050ba8db1e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 20:54:48 +00:00
Takao Fujiwara
c88e06db77 Rename master_dic_file to main_dic_file 2022-07-19 19:34:22 +09:00
12 changed files with 242 additions and 187 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
/anthy-unicode-1.0.0.20191015.tar.gz
/anthy-unicode-1.0.0.20201109.tar.gz
/anthy-unicode-1.0.0.20211224.tar.gz
/anthy-unicode-1.0.0.20240502.tar.gz

View file

@ -0,0 +1,4 @@
cksum 2650323057 5196128 anthy-unicode-1.0.0.20240502.tar.gz
sha1sum 18c885dc0821ec675bee95e138ac7acd88ff3a3a anthy-unicode-1.0.0.20240502.tar.gz
sha256sum 43a13f24cc4749a1248bc6d0ce7796743b176ae68ee524cb4331bef64ac133b0 anthy-unicode-1.0.0.20240502.tar.gz
sha512sum 835f7cbd5c3afc3dcd7002b77c94a5c69e67f970584c223b47329ece011148cbc4e9f65332c00bbdbe2f407a2daa7f9e10067a182a27d07074e0f1406bb3bbc2 anthy-unicode-1.0.0.20240502.tar.gz

View file

@ -1,93 +1,108 @@
From d9355d3e0fac58eab16684fed2715cc91f68d39e Mon Sep 17 00:00:00 2001
From a4a42a3c933a2f40023e6c857e60e0bf08a1d913 Mon Sep 17 00:00:00 2001
From: fujiwarat <takao.fujiwara1@gmail.com>
Date: Fri, 11 Feb 2022 10:28:18 +0900
Subject: [PATCH] src-util: set-face-underline is not available in xemacs Lisp
Date: Mon, 15 Jul 2024 14:53:17 +0900
Subject: [PATCH] Fix some compiler warnings
- src-main/context.c: Fix warning[-Waddress]
&ce->str will always evaluate as 'true'
- mkworddic/mkdic.c: Fix warning[-Wformat-overflow=]
'%s' directive argument is null
---
src-util/anthy-unicode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
mkworddic/mkdic.c | 21 +++++++++------------
src-main/context.c | 5 ++---
2 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/src-util/anthy-unicode.el b/src-util/anthy-unicode.el
index 14a9db4..902c7ac 100644
--- a/src-util/anthy-unicode.el
+++ b/src-util/anthy-unicode.el
@@ -74,7 +74,8 @@
(defvar anthy-highlight-face nil)
(defvar anthy-underline-face nil)
(copy-face 'highlight 'anthy-highlight-face)
-(set-face-underline 'anthy-highlight-face t)
+(if (not (featurep 'xemacs))
+ (set-face-underline 'anthy-highlight-face t))
(copy-face 'underline 'anthy-underline-face)
diff --git a/mkworddic/mkdic.c b/mkworddic/mkdic.c
index b0f9f4c..cb68520 100644
--- a/mkworddic/mkdic.c
+++ b/mkworddic/mkdic.c
@@ -60,8 +60,6 @@
;;
--
2.33.1
From 255323305b3621286cc4025ac59fa7d37fa1e7ce Mon Sep 17 00:00:00 2001
From: fujiwarat <takao.fujiwara1@gmail.com>
Date: Fri, 6 May 2022 20:33:47 +0900
Subject: [PATCH] src-main/context.c: Code reviews
---
src-main/context.c | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
#define DEFAULT_FN "anthy.wdic"
-static const char *progname;
-
/* writewords.cからアクセスするために、global変数 */
FILE *yomi_entry_index_out, *yomi_entry_out;
FILE *page_out, *page_index_out;
@@ -127,8 +125,7 @@ open_output_files(void)
}
/**/
if (!(*(fs->fpp))) {
- fprintf (stderr, "%s: cannot open temporary file: %s\n",
- progname, strerror (errno));
+ fprintf (stderr, "cannot open temporary file: %s\n", strerror (errno));
exit (2);
}
}
@@ -142,13 +139,13 @@ flush_output_files (void)
struct file_section *fs;
for (fs = file_array; fs->fpp; fs ++) {
if (ferror(*(fs->fpp))) {
- fprintf (stderr, "%s: write error\n", progname);
+ fprintf (stderr, "write error\n");
exit (1);
}
}
for (fs = file_array; fs->fpp; fs ++) {
if (fflush(*(fs->fpp))) {
- fprintf (stderr, "%s: write error: %s\n", progname, strerror (errno));
+ fprintf (stderr, "write error: %s\n", strerror (errno));
exit (1);
}
}
@@ -793,8 +790,8 @@ copy_file(struct mkdic_stat *mds, FILE *in, FILE *out)
while ((nread = fread (buf, 1, sizeof buf, in)) > 0) {
if (fwrite (buf, 1, nread, out) < nread) {
/* Handle short write (maybe disk full). */
- fprintf (stderr, "%s: %s: write error: %s\n",
- progname, mds->output_fn, strerror (errno));
+ fprintf (stderr, "%s: write error: %s\n",
+ mds->output_fn, strerror (errno));
exit (1);
}
}
@@ -839,8 +836,8 @@ link_dics(struct mkdic_stat *mds)
fp = fopen (mds->output_fn, "w");
if (!fp) {
- fprintf (stderr, "%s: %s: cannot create: %s\n",
- progname, mds->output_fn, strerror (errno));
+ fprintf (stderr, "%s: cannot create: %s\n",
+ mds->output_fn, strerror (errno));
exit (1);
}
@@ -856,8 +853,8 @@ link_dics(struct mkdic_stat *mds)
}
if (fclose (fp)) {
- fprintf (stderr, "%s: %s: write error: %s\n",
- progname, mds->output_fn, strerror (errno));
+ fprintf (stderr, "%s: write error: %s\n",
+ mds->output_fn, strerror (errno));
exit (1);
}
}
diff --git a/src-main/context.c b/src-main/context.c
index 20dde71..d84858c 100644
index d84858c..f117f7d 100644
--- a/src-main/context.c
+++ b/src-main/context.c
@@ -451,7 +451,7 @@ anthy_get_nth_segment(struct segment_list *sl, int n)
n < 0) {
return NULL;
@@ -706,12 +706,11 @@ anthy_do_print_context(struct anthy_context *ac, int encoding)
void
anthy_release_cand_ent(struct cand_ent *ce)
{
+ assert (ce);
if (ce->elm) {
free(ce->elm);
}
- for (i = 0, se = sl->list_head.next; i < n; i++, se = se->next);
+ for (i = 0, se = sl->list_head.next; (i < n) && se; i++, se = se->next);
return se;
- if (&ce->str) {
- anthy_free_xstr_str(&ce->str);
- }
+ anthy_free_xstr_str(&ce->str);
free(ce);
}
@@ -499,6 +499,17 @@ get_change_state(struct anthy_context *ac)
int i;
for (i = 0; i < ac->seg_list.nr_segments; i++) {
struct seg_ent *s = anthy_get_nth_segment(&ac->seg_list, i);
+ if (!ac->split_info.ce) {
+ anthy_log(0, "ac->split_info.ce is NULL %s:%d\n", __FILE__, __LINE__);
+ resize = 1;
+ break;
+ }
+ if (!s) {
+ anthy_log(0, "ac->seg_list %dth entry is NULL %s:%d\n",
+ i, __FILE__, __LINE__);
+ resize = 1;
+ continue;
+ }
if (ac->split_info.ce[s->from].initial_seg_len != s->len) {
resize = 1;
}
@@ -538,6 +549,11 @@ write_history(int fd,
struct seg_ent *s = anthy_get_nth_segment(&ac->seg_list, i);
char *c;
/**/
+ if (!s) {
+ anthy_log(0, "ac->seg_list %dth entry is NULL %s:%d\n",
+ i, __FILE__, __LINE__);
+ continue;
+ }
if (s->committed < 0) {
dprintf(fd, "?|");
continue ;
@@ -647,9 +663,11 @@ print_segment(struct seg_ent *e)
{
int i;
+ assert(e);
anthy_putxstr(&e->str);
printf("(");
for ( i = 0 ; i < e->nr_cands ; i++) {
+ assert(e->cands);
anthy_print_candidate(e->cands[i]);
printf(",");
}
--
2.35.1
2.45.0

View file

@ -9,10 +9,10 @@
Name: anthy-unicode
Version: 1.0.0.20211224
Release: 5%{?dist}
Version: 1.0.0.20240502
Release: %autorelease
# The entire source code is LGPLv2+ and dictionaries is GPLv2. the corpus data is under Public Domain.
License: LGPLv2+ and GPLv2 and Public Domain
License: LGPL-2.0-or-later AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain
URL: https://github.com/fujiwarat/anthy-unicode/wiki
BuildRequires: emacs
BuildRequires: gcc
@ -30,7 +30,8 @@ BuildRequires: make
%endif
Source0: https://github.com/fujiwarat/anthy-unicode/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: %{name}-init.el
Source1: https://github.com/fujiwarat/anthy-unicode/releases/download/%{version}/%{name}-%{version}.tar.gz.sum
Source2: %{name}-init.el
# Upstreamed patches
#Patch0: %%{name}-HEAD.patch
Patch0: %{name}-HEAD.patch
@ -47,7 +48,7 @@ other conversion server.
%package -n emacs-%{pkg}
Summary: Emacs files for %{pkg}
Requires: %{name} = %{version}-%{release}
Requires: emacs(bin) >= %{_emacs_version}
Requires: emacs-filesystem >= %{_emacs_version}
BuildArch: noarch
%description -n emacs-%{pkg}
@ -58,7 +59,7 @@ with GNU Emacs.
%package -n xemacs-%{pkg}
Summary: XEmacs files for %{pkg}
Requires: %{name} = %{version}-%{release}
Requires: xemacs(bin) >= %{_xemacs_version}
Requires: xemacs-filesystem >= %{_xemacs_version}
BuildArch: noarch
%description -n xemacs-%{pkg}
@ -76,6 +77,11 @@ the programs which uses Anthy Unicode.
%prep
SAVED_SUM=$(grep sha512sum %SOURCE1 | awk '{print $2}')
MY_SUM=$(sha512sum %SOURCE0 | awk '{print $1}')
if test x"$SAVED_SUM" != x"$MY_SUM" ; then
abort
fi
%autosetup -S git
%build
@ -91,16 +97,21 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
# remove unnecessary files
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
pushd ./src-util
install -m 644 dic-tool-input $RPM_BUILD_ROOT%{_datadir}/%{pkg}
install -m 644 dic-tool-result $RPM_BUILD_ROOT%{_datadir}/%{pkg}
popd
## for emacs-anthy
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
%if %{with xemacs}
## for xemacs-anthy
mkdir -p $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
# FIXME lisp build
pushd $RPM_BUILD_DIR/%{name}-%{version}/src-util
pushd ./src-util
make clean
#make EMACS=xemacs lispdir="%%{_xemacs_sitelispdir}/%%{pkg}"
# The latest /usr/share/automake-*/am/lisp.am calls -L option for
@ -162,76 +173,13 @@ cd ..
%files devel
%doc doc/DICLIB doc/DICUTIL doc/GLOSSARY doc/GRAMMAR doc/GUIDE.english doc/ILIB doc/LEARNING doc/LIB doc/MISC doc/POS doc/SPLITTER doc/TESTING doc/protocol.txt
%{_datadir}/%{pkg}/dic-tool-input
%{_datadir}/%{pkg}/dic-tool-result
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%changelog
* Fri May 06 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-5
- Fix GCC_ANALYZER_WARNING with -Wanalyzer-null-dereference
%autochangelog
* Fri Feb 11 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-4
- Resolves: #2051670 xemacs is a dead package
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Dec 24 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-1
- Bump to 1.0.0.20211224-1
* Tue Oct 26 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-10
- Resolves: #1998727 Fix emacs-anthy-unicode
* Thu Oct 21 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-8
- Resolves: #2007482 Update gcanna.ctd with Shubitai
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20201109-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jul 13 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-6
- Fix covscan report
* Mon Jul 12 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-5
- Fix covscan report
* Mon May 03 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-4
- Delete unnecessary xemacs in tests/tests.yml
* Sat May 01 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-3
- Enable CI
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20201109-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 09 2020 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-1
- Bump 1.0.0.20201109
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-5
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Oct 21 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20191015-2
- Add %%check to run local test programs
* Tue Oct 15 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20191015-1
- Release anthy-unicode 1.0.0.20191015
* Wed Aug 07 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20190412-1
- Initial package
- Update license
- Delete Group tags
- Make parse_modify_freq_command() for UTF-8
- Revert ptab.h to EUC-JP
- BuildRequire: git
- Genearate emacs- and xemacs- sub packages
- Fix some obsolete warnings in emacs batch-byte-compile
- Fix shared-lib-calls-exit
- Fix non-conffile-in-etc
- Fix description-line-too-long

91
changelog Normal file
View file

@ -0,0 +1,91 @@
* Thu Mar 14 2024 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-13
- Resolves #2269401 Fix おきのえらぶ in gcanna.ctd
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Nov 16 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-8
- Migrate license tag to SPDX
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jul 19 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-6
- Rename master_dic_file to main_dic_file
* Fri May 06 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-5
- Fix GCC_ANALYZER_WARNING with -Wanalyzer-null-dereference
* Fri Feb 11 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-4
- Resolves: #2051670 xemacs is a dead package
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Dec 24 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-1
- Bump to 1.0.0.20211224-1
* Tue Oct 26 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-10
- Resolves: #1998727 Fix emacs-anthy-unicode
* Thu Oct 21 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-8
- Resolves: #2007482 Update gcanna.ctd with Shubitai
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20201109-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jul 13 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-6
- Fix covscan report
* Mon Jul 12 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-5
- Fix covscan report
* Mon May 03 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-4
- Delete unnecessary xemacs in tests/tests.yml
* Sat May 01 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-3
- Enable CI
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20201109-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 09 2020 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-1
- Bump 1.0.0.20201109
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-5
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Oct 21 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20191015-2
- Add %%check to run local test programs
* Tue Oct 15 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20191015-1
- Release anthy-unicode 1.0.0.20191015
* Wed Aug 07 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20190412-1
- Initial package
- Update license
- Delete Group tags
- Make parse_modify_freq_command() for UTF-8
- Revert ptab.h to EUC-JP
- BuildRequire: git
- Genearate emacs- and xemacs- sub packages
- Fix some obsolete warnings in emacs batch-byte-compile
- Fix shared-lib-calls-exit
- Fix non-conffile-in-etc
- Fix description-line-too-long

5
plans/dict-test.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: anthy-unicode test
discover:
how: fmf
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (anthy-unicode-1.0.0.20211224.tar.gz) = 8971129df716b4cb21c5c9fb24a98388381d8172004126f68c037d47721b0fd9ab9cb0b6ef73414e62bf9d832c59f09743546da72366c7692bfd146a05bf800d
SHA512 (anthy-unicode-1.0.0.20240502.tar.gz) = 835f7cbd5c3afc3dcd7002b77c94a5c69e67f970584c223b47329ece011148cbc4e9f65332c00bbdbe2f407a2daa7f9e10067a182a27d07074e0f1406bb3bbc2

5
tests/migration/main.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Migration tests of private dicts from anthy to anthy-unicode
test: ./test.sh
framework: beakerlib
require:
- anthy-unicode-devel

16
tests/migration/test.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
[ -d $HOME/.anthy ] || mkdir $HOME/.anthy
rlJournalStart
rlPhaseStartTest
rlRun -t "anthy-dic-tool-unicode --load /usr/share/anthy-unicode/dic-tool-input"
rlRun -t "diff $HOME/.config/anthy/private_words_default /usr/share/anthy-unicode/dic-tool-result"
rlRun -t "anthy-dic-tool-unicode --dump"
rlRun -t "mv $HOME/.config/anthy/private_words_default $HOME/.anthy"
rlRun -t "anthy-dic-tool-unicode --migrate"
rlRun -t "diff $HOME/.config/anthy/private_words_default /usr/share/anthy-unicode/dic-tool-result"
rlPhaseEnd
rlJournalEnd

View file

@ -1,12 +0,0 @@
#!/bin/sh
: ${SRCDIR:='./source'}
anthy-dic-tool-unicode --load $SRCDIR/src-util/dic-tool-input
diff $HOME/.config/anthy/private_words_default $SRCDIR/src-util/dic-tool-result
anthy-dic-tool-unicode --dump
[ -d $HOME/.anthy ] || mkdir $HOME/.anthy
mv $HOME/.config/anthy/private_words_default $HOME/.anthy
anthy-dic-tool-unicode --migrate
diff $HOME/.config/anthy/private_words_default $SRCDIR/src-util/dic-tool-result

View file

@ -1,19 +0,0 @@
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-source
required_packages:
- git
vars:
fetch_only: True
- role: standard-test-basic
#- role: standard-test-beakerlib
required_packages:
- bash
- anthy-unicode
tests:
- smoke1:
dir: .
run: ./tests.sh