Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/dict-sr.oxt
|
dict-sr.oxt
|
||||||
|
@ -1 +0,0 @@
|
|||||||
598f8563f16b0d7d0c0bda5bf1fce4f7e164e083 SOURCES/dict-sr.oxt
|
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-10
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -1,11 +1,16 @@
|
|||||||
|
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||||
|
%global dict_dirname hunspell
|
||||||
|
%else
|
||||||
|
%global dict_dirname myspell
|
||||||
|
%endif
|
||||||
Name: hunspell-sr
|
Name: hunspell-sr
|
||||||
Summary: Serbian hunspell dictionaries
|
Summary: Serbian hunspell dictionaries
|
||||||
%global upstreamid 20130330
|
%global upstreamid 20130330
|
||||||
Version: 0.%{upstreamid}
|
Version: 0.%{upstreamid}
|
||||||
Release: 10%{?dist}
|
Release: 28%{?dist}
|
||||||
Source: https://downloads.sourceforge.net/project/aoo-extensions/1572/10/dict-sr.oxt
|
Source: https://downloads.sourceforge.net/project/aoo-extensions/1572/10/dict-sr.oxt
|
||||||
URL: http://extensions.services.openoffice.org/project/dict-sr
|
URL: http://extensions.services.openoffice.org/project/dict-sr
|
||||||
License: LGPLv3
|
License: LGPL-3.0-only
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: hunspell
|
Requires: hunspell
|
||||||
Supplements: (hunspell and langpacks-sr)
|
Supplements: (hunspell and langpacks-sr)
|
||||||
@ -29,11 +34,11 @@ Serbian hyphenation rules.
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||||
cp -p sr.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.dic
|
cp -p sr.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sr_YU.dic
|
||||||
cp -p sr.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.aff
|
cp -p sr.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sr_YU.aff
|
||||||
cp -p sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.dic
|
cp -p sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sh_YU.dic
|
||||||
cp -p sr-Latn.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.aff
|
cp -p sr-Latn.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sh_YU.aff
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||||||
cp -p hyph_sr.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sr_YU.dic
|
cp -p hyph_sr.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sr_YU.dic
|
||||||
@ -42,7 +47,7 @@ cp -p hyph_sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sh_YU.dic
|
|||||||
sr_YU_aliases="sr_ME sr_RS"
|
sr_YU_aliases="sr_ME sr_RS"
|
||||||
sh_YU_aliases="sh_ME sh_RS bs_BA"
|
sh_YU_aliases="sh_ME sh_RS bs_BA"
|
||||||
|
|
||||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||||
for lang in $sr_YU_aliases; do
|
for lang in $sr_YU_aliases; do
|
||||||
ln -s sr_YU.aff $lang.aff
|
ln -s sr_YU.aff $lang.aff
|
||||||
ln -s sr_YU.dic $lang.dic
|
ln -s sr_YU.dic $lang.dic
|
||||||
@ -65,13 +70,70 @@ popd
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%doc registration/license*.txt
|
%doc registration/license*.txt
|
||||||
%{_datadir}/myspell/*
|
%{_datadir}/%{dict_dirname}/*
|
||||||
|
|
||||||
%files -n hyphen-sr
|
%files -n hyphen-sr
|
||||||
%doc registration/license*.txt
|
%doc registration/license*.txt
|
||||||
%{_datadir}/hyphen/*
|
%{_datadir}/hyphen/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.20130330-28
|
||||||
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Mon Aug 12 2024 Parag Nemade <pnemade AT redhat DOT com> - 0.20130330-27
|
||||||
|
- Resolves:RHEL-52512 - Add conditional for RHEL for using hunspell directory
|
||||||
|
- Add tmt CI tests
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.20130330-26
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-25
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-24
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-23
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 23 2023 Caolán McNamara <caolanm@redhat.com> - 0.20130330-22
|
||||||
|
- migrated to SPDX license
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-21
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 0.20130330-19
|
||||||
|
- rename install directory name from myspell to hunspell
|
||||||
|
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130330-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
* Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 0.20130330-10
|
* Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 0.20130330-10
|
||||||
- Update Source tag
|
- Update Source tag
|
||||||
|
|
5
plans/hunspell-sr.fmf
Normal file
5
plans/hunspell-sr.fmf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
summary: Basic smoke test
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
execute:
|
||||||
|
how: tmt
|
6
tests/test_dic_availability.fmf
Normal file
6
tests/test_dic_availability.fmf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
require:
|
||||||
|
- python3-enchant
|
||||||
|
- hunspell-sr
|
||||||
|
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 = "sr_YU"
|
||||||
|
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-sr
|
||||||
|
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 = [ "здрав", "чај", "јутро"]
|
||||||
|
dic = enchant.Dict("sr_YU")
|
||||||
|
for wd in wdlst:
|
||||||
|
dic.check(wd)
|
||||||
|
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))
|
Loading…
Reference in New Issue
Block a user