rhbz#2085482 update to latest available hyphenation rules

This commit is contained in:
Caolán McNamara 2022-05-16 11:54:33 +01:00
parent 9f1459589a
commit 449d9daae4
3 changed files with 20 additions and 9 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
hyph_pt_PT.zip
/hyph_pt_PT.zip
/hyphptBR-213.zip

View File

@ -1,11 +1,16 @@
Name: hyphen-pt
Summary: Portuguese hyphenation rules
%global upstreamid 20021021
%global upstreamid 20140727
Version: 0.%{upstreamid}
Release: 25%{?dist}
Source: http://download.services.openoffice.org/contrib/dictionaries/hyph_pt_PT.zip
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
License: GPL+
Release: 1%{?dist}
# latest seen in Hifenizador section of https://pt-br.libreoffice.org/projetos/vero/
Source0: https://pt-br.libreoffice.org/assets/Uploads/PT-BR-Documents/VERO/hyphptBR-213.zip
# The contents of Source1 are the same rules that are currently (2022-05-16) in
# use for pt-PT at https://cgit.freedesktop.org/libreoffice/dictionaries/tree/pt_PT
# so we continue to use those rules in the absence of a contrary opinion
Source1: http://download.services.openoffice.org/contrib/dictionaries/hyph_pt_PT.zip
URL: https://pt-br.libreoffice.org/projetos/vero/
License: LGPLv3 and GPL+
BuildArch: noarch
Requires: hyphen
@ -16,6 +21,7 @@ Portuguese hyphenation rules.
%prep
%autosetup -c
unzip -q -o %{SOURCE1}
%build
chmod -x *
@ -24,17 +30,20 @@ chmod -x *
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p *.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
pt_PT_aliases="pt_BR pt_AO"
pt_PT_aliases="pt_AO"
for lang in $pt_PT_aliases; do
ln -s hyph_pt_PT.dic "hyph_"$lang".dic"
done
%files
%doc README_hyph_pt_PT.txt
%doc README_hyph_pt_PT.txt README_hyph_pt_BR.txt
%{_datadir}/hyphen/*
%changelog
* Mon May 16 2022 Caolán McNamara <caolanm@redhat.com> - 0.20140727-1
- rhbz#2085482 update to latest available hyphenation rules
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20021021-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

View File

@ -1 +1,2 @@
327989bbbfc9f9d56eb772427a344eb3 hyph_pt_PT.zip
SHA512 (hyphptBR-213.zip) = dfcd0d1ae9e757891c319a1ff457172b4bf37c84421ab35ecd1d7079fc08b0da18c72c0cd29bffb5b247c652dcf0725de85f5389d7462663032a3965456bdc01
SHA512 (hyph_pt_PT.zip) = f1a272e81fc25f763e353c70f45edda2aa068ee92d5ee4efaf7cef59f8580cd915abb2cb8ba152f2e619f451adf9c247469e9d3489a3496582c3c10e9730ef8c