Compare commits

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

10 commits

Author SHA1 Message Date
Fedora Release Engineering
ed90f95916 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:44:38 +00:00
Akira TAGOH
80d1caa5bc ci: migrate STI tests to tmt
Resolves: rhbz#2382857
2025-08-18 19:35:28 +09:00
Fedora Release Engineering
b818691011 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:03:25 +00:00
Fedora Release Engineering
9f2261715c Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 11:10:52 +00:00
Akira TAGOH
b02b7add01 Fix an infinite loop when missing EOL in record file.
Resolves: rhbz#1944546
2024-09-19 16:53:28 +09:00
Fedora Release Engineering
038875320b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 17:06:46 +00:00
Fedora Release Engineering
89c726ba99 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 23:09:32 +00:00
Fedora Release Engineering
db5a572a21 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 13:05:11 +00:00
Akira TAGOH
861cb04cf9 Fix symbol error on Emacs 29.
Resolves: rhbz#2251128
2023-11-28 16:35:40 +09:00
Fedora Release Engineering
726911c0de Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 13:23:36 +00:00
10 changed files with 89 additions and 14 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

12
anthy-fix-emacs29.patch Normal file
View file

@ -0,0 +1,12 @@
diff -pruN anthy-9100h.orig/src-util/anthy.el anthy-9100h/src-util/anthy.el
--- anthy-9100h.orig/src-util/anthy.el 2023-11-28 16:31:37.621098068 +0900
+++ anthy-9100h/src-util/anthy.el 2023-11-28 16:33:42.330200131 +0900
@@ -71,7 +71,7 @@
(defvar anthy-highlight-face nil)
(defvar anthy-underline-face nil)
(copy-face 'highlight 'anthy-highlight-face)
-(set-face-underline-p 'anthy-highlight-face t)
+(set-face-underline 'anthy-highlight-face t)
(copy-face 'underline 'anthy-underline-face)
;;

12
anthy-fix-eol.patch Normal file
View file

@ -0,0 +1,12 @@
diff -pruN anthy-9100h.orig/src-worddic/record.c anthy-9100h/src-worddic/record.c
--- anthy-9100h.orig/src-worddic/record.c 2009-01-27 21:11:21.000000000 +0900
+++ anthy-9100h/src-worddic/record.c 2024-09-19 16:45:00.587508410 +0900
@@ -1043,7 +1043,7 @@ out:
if (s) {
s[len] = '\0';
}
- *eol = (c == '\n');
+ *eol = (c == '\n' || c == EOF);
return s;
}

View file

@ -10,7 +10,7 @@
Name: anthy
Version: 9100h
Release: 50%{?dist}
Release: 59%{?dist}
# The entire source code is LGPLv2+ and dictionaries is GPLv2. the corpus data is under Public Domain.
License: LGPL-2.1-or-later AND GPL-2.0-only AND LicenseRef-Fedora-Public-Domain
URL: http://sourceforge.jp/projects/anthy/
@ -29,6 +29,8 @@ Patch10: %{name}-corpus.patch
Patch11: %{name}-fix-elisp.patch
Patch12: %{name}-aarch64.patch
Patch13: %{name}-fix-segfault.patch
Patch14: %{name}-fix-emacs29.patch
Patch15: %{name}-fix-eol.patch
Summary: Japanese character set input library
Requires: emacs-filesystem >= %{_emacs_version}
@ -177,6 +179,35 @@ popd
%changelog
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Sep 19 2024 Akira TAGOH <tagoh@redhat.com> - 9100h-56
- Fix an infinite loop when missing EOL in record file.
Resolves: rhbz#1944546
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Nov 28 2023 Akira TAGOH <tagoh@redhat.com> - 9100h-52
- Fix symbol error on Emacs 29.
Resolves: rhbz#2251128
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9100h-50
- 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

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

@ -0,0 +1,5 @@
summary: Basic test for anthy
require:
- anthy
test: ./test.sh
framework: beakerlib

14
tests/basic/test.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
basedir=$(pwd)
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartTest
rlRun "cat word.txt | iconv -f utf-8 -t euc-jp | anthy-dic-tool --load 0 "Registering a word to dict"
rlRun "anthy-dic-tool --dump | iconv -f euc-jp -t utf-8 | grep -v "#" | tee output" 0 "Dumping dict"
rlRun "diff -u word.txt output" 0 "Check difference"
rlPhaseEnd
rlJournalEnd

8
tests/basic/word.txt Normal file
View file

@ -0,0 +1,8 @@
てすと 1 テスト
格助詞接続 = y
語幹のみで文節 = y
する接続 = y
さ接続 = y
な接続 = y
品詞 = 名詞

View file

@ -1,4 +0,0 @@
#! /bin/sh
echo "RESULT: PASS"

View file

@ -1,9 +0,0 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- anthy
tests:
- run: ./runtest.sh