Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec71712f5c | ||
|
|
34553d821a |
||
|
|
e8c3928ddb | ||
|
|
84708febe1 | ||
|
|
f4c35362a1 |
6 changed files with 84 additions and 2 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
Name: hunspell
|
||||
Summary: A spell checker and morphological analyzer library
|
||||
Version: 1.7.2
|
||||
Release: 7%{?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
|
||||
|
|
@ -44,7 +44,7 @@ packages.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .rhbz2158548
|
||||
%patch -P0 -p1 -b .rhbz2158548
|
||||
|
||||
%build
|
||||
autoreconf -vfi
|
||||
|
|
@ -129,6 +129,15 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|||
%{_datadir}/myspell
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
5
plans/hunspell.fmf
Normal file
5
plans/hunspell.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
4
tests/data.txt
Normal file
4
tests/data.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Cloud
|
||||
Linux
|
||||
Fedora
|
||||
Fedoraaa
|
||||
5
tests/main.fmf
Normal file
5
tests/main.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
require:
|
||||
- hunspell
|
||||
- hunspell-de
|
||||
test: bash ./run_tests.sh
|
||||
framework: shell
|
||||
58
tests/run_tests.sh
Normal file
58
tests/run_tests.sh
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue