From 449d9daae41ab230ad8334c483eafa3789fead70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 16 May 2022 11:54:33 +0100 Subject: [PATCH] rhbz#2085482 update to latest available hyphenation rules --- .gitignore | 3 ++- hyphen-pt.spec | 23 ++++++++++++++++------- sources | 3 ++- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index e716a8c..8020a55 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -hyph_pt_PT.zip +/hyph_pt_PT.zip +/hyphptBR-213.zip diff --git a/hyphen-pt.spec b/hyphen-pt.spec index 958f33b..ab904ef 100644 --- a/hyphen-pt.spec +++ b/hyphen-pt.spec @@ -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 - 0.20140727-1 +- rhbz#2085482 update to latest available hyphenation rules + * Thu Jan 20 2022 Fedora Release Engineering - 0.20021021-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index 55d4e3e..fbff9f5 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -327989bbbfc9f9d56eb772427a344eb3 hyph_pt_PT.zip +SHA512 (hyphptBR-213.zip) = dfcd0d1ae9e757891c319a1ff457172b4bf37c84421ab35ecd1d7079fc08b0da18c72c0cd29bffb5b247c652dcf0725de85f5389d7462663032a3965456bdc01 +SHA512 (hyph_pt_PT.zip) = f1a272e81fc25f763e353c70f45edda2aa068ee92d5ee4efaf7cef59f8580cd915abb2cb8ba152f2e619f451adf9c247469e9d3489a3496582c3c10e9730ef8c