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
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/hunspell-pt_PT-20130125.tar.gz
|
||||
SOURCES/ptBR20130317AOC.zip
|
||||
/hunspell-pt_PT-20130125.tar.gz
|
||||
/ptBR-2013-10-30AOC-2.zip
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
4699029363dc58f2dd56d0c400d50e6be4a8a054 SOURCES/hunspell-pt_PT-20130125.tar.gz
|
||||
b5c485474957b7c9992cb2af07a0b529c94de310 SOURCES/ptBR20130317AOC.zip
|
||||
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,14 +1,18 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
Name: hunspell-pt
|
||||
Summary: Portuguese hunspell dictionaries
|
||||
%global upstreamid 20130125
|
||||
%global upstreamid 20131030
|
||||
Version: 0.%{upstreamid}
|
||||
Release: 10%{?dist}
|
||||
Release: 15%{?dist}
|
||||
Source0: http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/hunspell-pt_PT-20130125.tar.gz
|
||||
# Mark following Source1 as dead link
|
||||
Source1: http://pt-br.libreoffice.org/assets/ptBR20130317AOC.zip
|
||||
URL: http://www.broffice.org/verortografico/baixar
|
||||
Source1: https://pt-br.libreoffice.org/assets/Uploads/PT-BR-Documents/VERO/ptBR-2013-10-30AOC-2.zip
|
||||
URL: https://pt-br.libreoffice.org/projetos/vero
|
||||
# pt_BR dicts are under LGPLv3 or MPL, pt_PT under GPLv2 or LGPLv2 or MPLv1.1
|
||||
License: ((LGPLv3 or MPL) and LGPLv2) and (GPLv2 or LGPLv2 or MPLv1.1)
|
||||
License: ( ( LGPL-3.0-only OR MPL-1.1 ) AND LGPL-2.1-only ) AND ( GPL-2.0-only OR LGPL-2.1-only OR MPL-1.1 )
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
@ -17,10 +21,18 @@ Supplements: (hunspell and langpacks-pt)
|
||||
%description
|
||||
Portuguese hunspell dictionaries.
|
||||
|
||||
%package BR
|
||||
Summary: Brazilian Portuguese hunspell dictionaries
|
||||
Requires: hunspell
|
||||
Supplements: (hunspell and langpacks-pt_BR)
|
||||
|
||||
%description BR
|
||||
Brazilian Portuguese hunspell dictionaries
|
||||
|
||||
%prep
|
||||
%setup -q -n hunspell-pt_PT-20130125
|
||||
unzip -q -o %{SOURCE1}
|
||||
for i in README_pt_BR.txt README_pt_PT.txt; do
|
||||
for i in README_pt_BR.TXT README_pt_PT.txt; do
|
||||
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
|
||||
iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
|
||||
touch -r $i $i.new
|
||||
@ -34,10 +46,10 @@ done
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p pt*.dic pt*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p pt*.dic pt*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
pt_PT_aliases="pt_AO"
|
||||
for lang in $pt_PT_aliases; do
|
||||
ln -s pt_PT.aff $lang.aff
|
||||
@ -47,11 +59,85 @@ popd
|
||||
|
||||
|
||||
%files
|
||||
%doc README_pt_BR.txt README_pt_PT.txt
|
||||
%doc README_pt_PT.txt
|
||||
%license COPYING
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
%exclude %{_datadir}/%{dict_dirname}/pt_BR.*
|
||||
|
||||
%files BR
|
||||
%doc README_pt_BR.TXT README_en.TXT
|
||||
%{_datadir}/%{dict_dirname}/pt_BR.*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.20131030-15
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Mon Aug 12 2024 Parag Nemade <pnemade AT redhat DOT com> - 0.20131030-14
|
||||
- Resolves:RHEL-52497 - Add conditional for RHEL for using hunspell directory
|
||||
- Add tmt CI tests
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.20131030-13
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20131030-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20131030-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20131030-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 0.20131030-9
|
||||
- migrated to SPDX license
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20131030-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20131030-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon May 16 2022 Caolán McNamara <caolanm@redhat.com> - 0.20131030-6
|
||||
- Related: rhbz#2084587 provide a pt-BR subpackage
|
||||
|
||||
* Fri May 13 2022 Caolán McNamara <caolanm@redhat.com> - 0.20131030-5
|
||||
- Related: rhbz#2084587 try (pt or pt-BR)
|
||||
|
||||
* Thu May 12 2022 Caolán McNamara <caolanm@redhat.com> - 0.20131030-4
|
||||
- Resolves: rhbz#2084587 add Supplements: langpacks-pt_BR
|
||||
|
||||
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 0.20131030-3
|
||||
- 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.20131030-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Tue Oct 12 2021 Caolán McNamara <caolanm@redhat.com> - 0.20131030-1
|
||||
- Related: rhbz#2013265 upgrade to the latest pt_BR version and update URL
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 0.20130125-10
|
||||
- Mark Source1 as dead link
|
||||
|
||||
5
plans/hunspell-pt.fmf
Normal file
5
plans/hunspell-pt.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (ptBR-2013-10-30AOC-2.zip) = 67149da8a16ef08087a1c0529c84b5a09570b21780364896c1a6b5ff5ba19ff6d850baea8a03ce830645c1c98170a860df9c58ae57925c185cffcef24de7a502
|
||||
SHA512 (hunspell-pt_PT-20130125.tar.gz) = 7484d84fcc8fd29eb16ba47489e9823c7aa4d56e8e4c68d65365aab25f6415657d4ef31c4ac805db9ddc7487213877ccbf33db5e4897d4836a641a6090c9717b
|
||||
6
tests/test_dic_availability-pt_BR.fmf
Normal file
6
tests/test_dic_availability-pt_BR.fmf
Normal file
@ -0,0 +1,6 @@
|
||||
require:
|
||||
- python3-enchant
|
||||
- hunspell-pt-BR
|
||||
test: python3 test_dic_availability-pt_BR.py
|
||||
framework: shell
|
||||
|
||||
10
tests/test_dic_availability-pt_BR.py
Normal file
10
tests/test_dic_availability-pt_BR.py
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
lang = "pt_BR"
|
||||
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_dic_availability-pt_PT.fmf
Normal file
6
tests/test_dic_availability-pt_PT.fmf
Normal file
@ -0,0 +1,6 @@
|
||||
require:
|
||||
- python3-enchant
|
||||
- hunspell-pt
|
||||
test: python3 test_dic_availability-pt_PT.py
|
||||
framework: shell
|
||||
|
||||
10
tests/test_dic_availability-pt_PT.py
Normal file
10
tests/test_dic_availability-pt_PT.py
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
lang = "pt_PT"
|
||||
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")
|
||||
9
tests/test_suggest_words-pt_PT.py
Normal file
9
tests/test_suggest_words-pt_PT.py
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
wdlst = [ "ola", "cha", "manh"]
|
||||
dic = enchant.Dict("pt_PT")
|
||||
for wd in wdlst:
|
||||
dic.check(wd)
|
||||
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))
|
||||
6
tests/test_suggest_words.fmf
Normal file
6
tests/test_suggest_words.fmf
Normal file
@ -0,0 +1,6 @@
|
||||
require:
|
||||
- python3-enchant
|
||||
- hunspell-pt
|
||||
test: python3 test_suggest_words-pt_PT.py
|
||||
framework: shell
|
||||
|
||||
Loading…
Reference in New Issue
Block a user