diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/anthy-fix-emacs29.patch b/anthy-fix-emacs29.patch deleted file mode 100644 index ed1dcfc..0000000 --- a/anthy-fix-emacs29.patch +++ /dev/null @@ -1,12 +0,0 @@ -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) - - ;; diff --git a/anthy-fix-eol.patch b/anthy-fix-eol.patch deleted file mode 100644 index 87cb772..0000000 --- a/anthy-fix-eol.patch +++ /dev/null @@ -1,12 +0,0 @@ -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; - } - diff --git a/anthy.spec b/anthy.spec index d12eca0..ca221b6 100644 --- a/anthy.spec +++ b/anthy.spec @@ -1,22 +1,15 @@ %global use_utf8_dict 1 %global pkg anthy -%if 0%{?rhel} == 0 && 0%{?fedora} < 36 -%bcond_without xemacs -%else -# xemacs disabled on RHEL and Fedora 36+ -%bcond_with xemacs -%endif - Name: anthy Version: 9100h -Release: 59%{?dist} +Release: 43%{?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 +License: LGPLv2+ and GPLv2 and Public Domain URL: http://sourceforge.jp/projects/anthy/ BuildRequires: emacs BuildRequires: gcc -%if %{with xemacs} +%if 0%{?rhel} == 0 BuildRequires: xemacs BuildRequires: make %endif @@ -29,14 +22,12 @@ 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} Provides: emacs-%{pkg}-el <= 9100h-27, emacs-%{pkg} <= 9100h-27 Obsoletes: emacs-%{pkg}-el <= 9100h-27, emacs-%{pkg} <= 9100h-27 -%if %{with xemacs} +%if 0%{?rhel} == 0 Requires: xemacs-filesystem >= %{_xemacs_version} Provides: xemacs-%{pkg}-el <= 9100h-27, xemacs-%{pkg} <= 9100h-27 Obsoletes: xemacs-%{pkg}-el <= 9100h-27, xemacs-%{pkg} <= 9100h-27 @@ -139,7 +130,7 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.{la,a} mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir} install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir} -%if %{with xemacs} +%if 0%{?rhel} == 0 ## for xemacs-anthy mkdir -p $RPM_BUILD_ROOT%{_xemacs_sitestartdir} install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_xemacs_sitestartdir} @@ -164,7 +155,7 @@ popd %{_emacs_sitelispdir}/%{pkg}/*.elc %{_emacs_sitestartdir}/*.el %dir %{_emacs_sitelispdir}/%{pkg} -%if %{with xemacs} +%if 0%{?rhel} == 0 %{_xemacs_sitelispdir}/%{pkg}/*.el %{_xemacs_sitelispdir}/%{pkg}/*.elc %{_xemacs_sitestartdir}/*.el @@ -179,53 +170,6 @@ popd %changelog -* Fri Jan 16 2026 Fedora Release Engineering - 9100h-59 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Wed Jul 23 2025 Fedora Release Engineering - 9100h-58 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Thu Jan 16 2025 Fedora Release Engineering - 9100h-57 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Thu Sep 19 2024 Akira TAGOH - 9100h-56 -- Fix an infinite loop when missing EOL in record file. - Resolves: rhbz#1944546 - -* Wed Jul 17 2024 Fedora Release Engineering - 9100h-55 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 9100h-54 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 9100h-53 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Tue Nov 28 2023 Akira TAGOH - 9100h-52 -- Fix symbol error on Emacs 29. - Resolves: rhbz#2251128 - -* Wed Jul 19 2023 Fedora Release Engineering - 9100h-51 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jan 18 2023 Fedora Release Engineering - 9100h-50 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Nov 30 2022 Akira TAGOH - 9100h-49 -- Convert License tag to SPDX. - -* Wed Jul 20 2022 Fedora Release Engineering - 9100h-47 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Tue May 31 2022 Stewart Smith - 9100h-46 -- Switch xemacs build condition to bcond - -* Wed Jan 19 2022 Fedora Release Engineering - 9100h-45 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Tue Nov 9 2021 Jerry James - 9100h-44 -- Drop XEmacs support in F36 and later - * Wed Jul 21 2021 Fedora Release Engineering - 9100h-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild @@ -579,3 +523,4 @@ popd * Tue Jun 01 2004 Akira TAGOH 5330-1 - Initial package. + diff --git a/plans/basic.fmf b/plans/basic.fmf deleted file mode 100644 index c1627f9..0000000 --- a/plans/basic.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Basic smoke test -discover: - how: fmf -execute: - how: tmt diff --git a/tests/basic/main.fmf b/tests/basic/main.fmf deleted file mode 100644 index 3cde53c..0000000 --- a/tests/basic/main.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Basic test for anthy -require: - - anthy -test: ./test.sh -framework: beakerlib diff --git a/tests/basic/test.sh b/tests/basic/test.sh deleted file mode 100755 index e71c4ce..0000000 --- a/tests/basic/test.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 diff --git a/tests/basic/word.txt b/tests/basic/word.txt deleted file mode 100644 index 781130e..0000000 --- a/tests/basic/word.txt +++ /dev/null @@ -1,8 +0,0 @@ -てすと 1 テスト -格助詞接続 = y -語幹のみで文節 = y -する接続 = y -さ接続 = y -な接続 = y -品詞 = 名詞 - diff --git a/tests/runtest.sh b/tests/runtest.sh new file mode 100755 index 0000000..26aba13 --- /dev/null +++ b/tests/runtest.sh @@ -0,0 +1,4 @@ +#! /bin/sh + +echo "RESULT: PASS" + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..b7184da --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - anthy + tests: + - run: ./runtest.sh