Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20862521d4 | ||
|
|
695e1c0e6f | ||
|
|
7ac972d3f5 |
||
|
|
76166b1a54 | ||
|
|
37a04b45c3 |
||
|
|
6b99b53af2 | ||
|
|
fe2590af65 | ||
|
|
3a16814e91 | ||
|
|
ac9f23c6a3 | ||
|
|
78c457531e | ||
|
|
1bc3ef0a65 | ||
|
|
f41497464c |
9 changed files with 81 additions and 9 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
/myspell-da-1.7.42.tar.bz2
|
||||
/da_DK-2.9.053.oxt
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@
|
|||
|
||||
Name: hunspell-da
|
||||
Summary: Danish hunspell dictionaries
|
||||
Version: 1.7.42
|
||||
Release: 19%{?dist}
|
||||
Source: http://da.speling.org/filer/myspell-da-%{version}.tar.bz2
|
||||
URL: http://da.speling.org/
|
||||
License: GPLv2+
|
||||
Version: 2.9.053
|
||||
Release: 3%{?dist}
|
||||
Source: https://stavekontrolden.dk/dictionaries/da_DK/da_DK-%{version}.oxt
|
||||
URL: https://stavekontrolden.dk/
|
||||
# license information from README_da_DK.txt
|
||||
License: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell-filesystem
|
||||
|
|
@ -20,20 +21,53 @@ Supplements: (hunspell and langpacks-da)
|
|||
Danish hunspell dictionaries.
|
||||
|
||||
%prep
|
||||
%setup -q -n myspell-da-%{version}
|
||||
%autosetup -c
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p da_DK.dic da_DK.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
|
||||
|
||||
%files
|
||||
%doc README Copyright contributors COPYING
|
||||
%doc README_da_DK.txt
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.053-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.053-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Mon Dec 01 2025 Parag Nemade <pnemade AT redhat DOT com> - 2.9.053-1
|
||||
- Updated to new URL and new version (rh#2417927)
|
||||
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 1.7.42-21
|
||||
- migrated to SPDX license
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.42-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
5
plans/hunspell-da.fmf
Normal file
5
plans/hunspell-da.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
1f8f89f1d8a3b2f50c106255695a5b57 myspell-da-1.7.42.tar.bz2
|
||||
SHA512 (da_DK-2.9.053.oxt) = a09d859a9c65dc32a479664e22cff931674fec45c6cb2ed9141a752980c985894757fe3925d65403748305a1339a9fa541cadcddb5bae47aa814fa9b8994246f
|
||||
|
|
|
|||
6
tests/test_dic_availability.fmf
Normal file
6
tests/test_dic_availability.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
require:
|
||||
- python3-enchant
|
||||
- hunspell-da
|
||||
test: python3 test_dic_availability.py
|
||||
framework: shell
|
||||
|
||||
10
tests/test_dic_availability.py
Normal file
10
tests/test_dic_availability.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
lang = "da_DK"
|
||||
try:
|
||||
dic = enchant.request_dict(lang)
|
||||
print("Dictionary for {0} language is available for use".format(lang))
|
||||
except enchant.errors.DictNotFoundError:
|
||||
print("Dictionary is not installed for use")
|
||||
6
tests/test_suggest_words.fmf
Normal file
6
tests/test_suggest_words.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
require:
|
||||
- python3-enchant
|
||||
- hunspell-da
|
||||
test: python3 test_suggest_words.py
|
||||
framework: shell
|
||||
|
||||
9
tests/test_suggest_words.py
Normal file
9
tests/test_suggest_words.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
wdlst = [ "hej", "te", "morgen"]
|
||||
dic = enchant.Dict("da_DK")
|
||||
for wd in wdlst:
|
||||
dic.check(wd)
|
||||
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue