|
|
|
@ -1,18 +1,14 @@
|
|
|
|
|
%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 20131030
|
|
|
|
|
%global upstreamid 20130125
|
|
|
|
|
Version: 0.%{upstreamid}
|
|
|
|
|
Release: 14%{?dist}
|
|
|
|
|
Release: 18%{?dist}
|
|
|
|
|
Source0: http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/hunspell-pt_PT-20130125.tar.gz
|
|
|
|
|
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
|
|
|
|
|
# Mark following Source1 as dead link
|
|
|
|
|
Source1: http://pt-br.libreoffice.org/assets/ptBR20130317AOC.zip
|
|
|
|
|
URL: http://www.broffice.org/verortografico/baixar
|
|
|
|
|
# pt_BR dicts are under LGPLv3 or MPL, pt_PT under 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 )
|
|
|
|
|
License: ((LGPLv3 or MPL) and LGPLv2) and (GPLv2 or LGPLv2 or MPLv1.1)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Requires: hunspell
|
|
|
|
@ -21,18 +17,10 @@ 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
|
|
|
|
@ -46,10 +34,10 @@ done
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
|
|
|
|
cp -p pt*.dic pt*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
cp -p pt*.dic pt*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
|
|
|
|
pt_PT_aliases="pt_AO"
|
|
|
|
|
for lang in $pt_PT_aliases; do
|
|
|
|
|
ln -s pt_PT.aff $lang.aff
|
|
|
|
@ -59,62 +47,17 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README_pt_PT.txt
|
|
|
|
|
%doc README_pt_BR.txt README_pt_PT.txt
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_datadir}/%{dict_dirname}/*
|
|
|
|
|
%exclude %{_datadir}/%{dict_dirname}/pt_BR.*
|
|
|
|
|
|
|
|
|
|
%files BR
|
|
|
|
|
%doc README_pt_BR.TXT README_en.TXT
|
|
|
|
|
%{_datadir}/%{dict_dirname}/pt_BR.*
|
|
|
|
|
%{_datadir}/myspell/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* 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
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.20130125-18
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.20130125-17
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20130125-16
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|