Name:                hyphen-es
Summary:             Spanish hyphenation rules
Version:             2.8
Release:             1
Summary:             Spanish hyphenation rules
License:             LGPL-3.0-or-later or GPL-3.0-or-later or MPL-1.1 or LGPL-2.1-only
URL:                 https://github.com/sbosio/rla-es/tree/master/separacion
Source:              https://github.com/sbosio/rla-es/releases/download/v%{version}/es.oxt
BuildArch:           noarch
Requires:            hyphen
Supplements:         (hyphen and langpacks-es)
%description
Hyphen is a library for high quality hyphenation and justification

%prep
%autosetup -c -n %{name} -p1

%build

%install
install -Dp hyph_es.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_es.dic
cd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
es_aliases="es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_ES es_GT es_HN es_MX es_NI
            es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE"
for lang in $es_aliases; do
        ln -s hyph_es.dic hyph_$lang.dic
done


%files
%doc README_hyph_es.txt GPLv3.txt LGPLv2.1.txt LGPLv3.txt MPL-1.1.txt
%{_datadir}/hyphen/*

%changelog
* Thu Jan 18 2024 yaoxin <yao_xin001@hoperun.com> - 2.8-1
- Upgrade to 2.8

* Mon Jul 6 2020 yanan li <liyanan032@huawei.com> - 2.3-5
- Package init
