From 868e83e3e859c2b031256a9b1c315c7bda3648ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 22 Feb 2023 10:18:50 +0000 Subject: [PATCH 1/9] migrated to SPDX license --- hunspell.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hunspell.spec b/hunspell.spec index 38785ec..9e3f304 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,10 +3,10 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.2 -Release: 3%{?dist} +Release: 4%{?dist} Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz URL: https://github.com/hunspell/hunspell -License: LGPLv2+ or GPLv2+ or MPLv1.1 +License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 BuildRequires: gcc-c++ BuildRequires: autoconf, automake, libtool, ncurses-devel, gettext-devel BuildRequires: perl-generators @@ -129,6 +129,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Wed Feb 22 2023 Caolán McNamara - 1.7.2-4 +- migrated to SPDX license + * Thu Jan 19 2023 Fedora Release Engineering - 1.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 5675a2c4008be67ad442801eb5d436e16d382b58 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jul 2023 06:31:47 +0000 Subject: [PATCH 2/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- hunspell.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell.spec b/hunspell.spec index 9e3f304..b81d6c1 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.2 -Release: 4%{?dist} +Release: 5%{?dist} Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz URL: https://github.com/hunspell/hunspell License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 @@ -129,6 +129,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Thu Jul 20 2023 Fedora Release Engineering - 1.7.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Feb 22 2023 Caolán McNamara - 1.7.2-4 - migrated to SPDX license From 6f346206b8d9755f2fa0ad5de915d0554cbd9b4b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jan 2024 22:17:15 +0000 Subject: [PATCH 3/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- hunspell.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell.spec b/hunspell.spec index b81d6c1..dd9e194 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.2 -Release: 5%{?dist} +Release: 6%{?dist} Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz URL: https://github.com/hunspell/hunspell License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 @@ -129,6 +129,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Sat Jan 20 2024 Fedora Release Engineering - 1.7.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Jul 20 2023 Fedora Release Engineering - 1.7.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From ad33f2f898299645b237f976f4cc160ce991c07c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 21:51:55 +0000 Subject: [PATCH 4/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- hunspell.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell.spec b/hunspell.spec index dd9e194..689c53d 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.2 -Release: 6%{?dist} +Release: 7%{?dist} Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz URL: https://github.com/hunspell/hunspell License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 @@ -129,6 +129,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 1.7.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sat Jan 20 2024 Fedora Release Engineering - 1.7.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From f4c35362a1bbd294636706661bfaa97d4ff55daa Mon Sep 17 00:00:00 2001 From: Software Management Team Date: Thu, 30 May 2024 12:46:47 +0200 Subject: [PATCH 5/9] Eliminate use of obsolete %patchN syntax (#2283636) --- hunspell.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hunspell.spec b/hunspell.spec index 689c53d..f33649f 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -44,7 +44,7 @@ packages. %prep %setup -q -%patch0 -p1 -b .rhbz2158548 +%patch -P0 -p1 -b .rhbz2158548 %build autoreconf -vfi From 84708febe12f690367620db784767f09f703f738 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 09:27:28 +0000 Subject: [PATCH 6/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- hunspell.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell.spec b/hunspell.spec index f33649f..d012f3c 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.2 -Release: 7%{?dist} +Release: 8%{?dist} Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz URL: https://github.com/hunspell/hunspell License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 @@ -129,6 +129,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 1.7.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Wed Jan 24 2024 Fedora Release Engineering - 1.7.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From e8c3928ddbdbfcec1ddf54876d73e8596a4f4935 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 06:08:55 +0000 Subject: [PATCH 7/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- hunspell.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell.spec b/hunspell.spec index d012f3c..d303a36 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.2 -Release: 8%{?dist} +Release: 9%{?dist} Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz URL: https://github.com/hunspell/hunspell License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 @@ -129,6 +129,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 1.7.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Jul 18 2024 Fedora Release Engineering - 1.7.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 34553d821a255bd7d80b38b1ac075a7eaab09a42 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Fri, 30 May 2025 11:59:30 +0530 Subject: [PATCH 8/9] Add tmt testcase for CI --- .fmf/version | 1 + plans/hunspell.fmf | 5 ++++ tests/data.txt | 4 ++++ tests/main.fmf | 5 ++++ tests/run_tests.sh | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/hunspell.fmf create mode 100644 tests/data.txt create mode 100644 tests/main.fmf create mode 100644 tests/run_tests.sh diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/hunspell.fmf b/plans/hunspell.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/hunspell.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/data.txt b/tests/data.txt new file mode 100644 index 0000000..29c358c --- /dev/null +++ b/tests/data.txt @@ -0,0 +1,4 @@ +Cloud +Linux +Fedora +Fedoraaa diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..ebec85f --- /dev/null +++ b/tests/main.fmf @@ -0,0 +1,5 @@ +require: +- hunspell +- hunspell-de +test: bash ./run_tests.sh +framework: shell diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100644 index 0000000..7d75074 --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +check_pkg() { + local pkg=$1 + if rpm -q $pkg + then + echo "PASS" + else + echo "FAIL" + fi +} + +check_dict() { + if [ -f "/usr/share/hunspell/de_DE.dic" ] + then + echo "PASS" + else + echo "FAIL" + fi +} + +check_misspelled_word() { + VAR1="Fedoraaa" + VAR2=$(hunspell -l data.txt) + if [ "$VAR1" = "$VAR2" ]; then + echo "PASS" + else + echo "FAIL" + fi +} + +check_misspelled_line() { + VAR1="Fedoraaa" + VAR2=$(hunspell -L data.txt) + if [ "$VAR1" = "$VAR2" ]; then + echo "PASS" + else + echo "FAIL" + fi +} + +check_correct_word() { + VAR1="Cloud\nLinux\nFedora" + VAR1=$(echo -e "$VAR1") + VAR2=$(hunspell -G data.txt) + if [ "$VAR1" = "$VAR2" ]; then + echo "PASS" + else + echo "FAIL" + fi +} + +check_pkg "hunspell" +check_pkg "hunspell-de" +check_dict +check_misspelled_word +check_misspelled_line +check_correct_word From ec71712f5c4b07db1cdcc185e91ce15234a8fcc8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 17:08:34 +0000 Subject: [PATCH 9/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- hunspell.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell.spec b/hunspell.spec index d303a36..2e62287 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.7.2 -Release: 9%{?dist} +Release: 10%{?dist} Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz URL: https://github.com/hunspell/hunspell License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 @@ -129,6 +129,9 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell %{_datadir}/myspell %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 1.7.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Fri Jan 17 2025 Fedora Release Engineering - 1.7.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild