diff --git a/hunspell-es.spec b/hunspell-es.spec index 3f30926..cb982dc 100644 --- a/hunspell-es.spec +++ b/hunspell-es.spec @@ -1,49 +1,99 @@ Name: hunspell-es -Version: 2011025 -Release: 2mamba +Epoch: 1 +Version: 2.6 +Release: 1mamba Summary: Spanish hunspell dictionaries Group: System/Internationalization Vendor: openmamba Distribution: openmamba -Packager: gil -URL: http://es.openoffice.org/programa/diccionario.html -Source: http://es.openoffice.org/files/documents/73/3001/es_ANY.zip +Packager: Silvan Calarco +URL: https://github.com/sbosio/rla-es +Source: https://github.com/sbosio/rla-es.git/v%{version}/rla-es-%{version}.tar.bz2 License: GPL, LGPL, MPL 1.1 Requires: hunspell -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END %description -Spanish hunspell dictionaries. +%{summary}. + +%package -n hyphen-es +Summary: Spanish hyphenation rules +Group: System/Internationalization +Requires: libhyphen +Obsoletes: hyphen-es <= 20040810 + +%description -n hyphen-es +%{summary}. + +%package -n mythes-es +Summary: Spanish thesaurus +Group: System/Internationalization +Requires: libmythes +Obsoletes: mythes-es <= 20110122 + +%description -n mythes-es +%{summary}. %prep -%setup -q -c %{name}-%{version} - +%setup -q -n rla-es-%{version} %build -chmod -x * %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -mkdir -p %{buildroot}%{_datadir}/myspell -cp -p es_ANY.dic %{buildroot}%{_datadir}/myspell/es_ES.dic -cp -p es_ANY.aff %{buildroot}%{_datadir}/myspell/es_ES.aff -pushd %{buildroot}%{_datadir}/myspell/ - for lang in es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE; do - ln -s es_ES.aff $lang.aff - ln -s es_ES.dic $lang.dic - done -popd +# Hunspell +mkdir -p %{buildroot}%{_datadir}/myspell +cp -p source-code/hispalabras-0.1/hispalabras/es_ANY.dic %{buildroot}%{_datadir}/myspell/es_ES.dic +cp -p source-code/hispalabras-0.1/hispalabras/es_ANY.aff %{buildroot}%{_datadir}/myspell/es_ES.aff + +LANGS="es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC 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 ${LANGS}; do + ln -s es_ES.aff %{buildroot}%{_datadir}/myspell/${lang}.aff + ln -s es_ES.dic %{buildroot}%{_datadir}/myspell/${lang}.dic +done + +# Hyphen +install -Dm644 separacion/hyph_es.dic -t %{buildroot}%{_datadir}/hyphen/ + +for lang in ${LANGS}; do + ln -s hyph_es.dic %{buildroot}%{_datadir}/hyphen/hyph_${lang}.dic +done + +# Mythes +install -Dm644 sinonimos/palabras/th_es_v2.* -t %{buildroot}%{_datadir}/mythes + +for lang in ${LANGS}; do + ln -s th_es_v2.idx %{buildroot}%{_datadir}/mythes/th_es_${lang}_v2.idx + ln -s th_es_v2.dat %{buildroot}%{_datadir}/mythes/th_es_${lang}_v2.dat +done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) -%{_datadir}/myspell -%doc README.txt Changelog.txt GPLv3.txt MPL-1.1.txt LGPLv3.txt +%{_datadir}/myspell/es_*.dic +%{_datadir}/myspell/es_*.aff +%doc LICENSE.md + +%files -n hyphen-es +%defattr(-,root,root) +%{_datadir}/hyphen/hyph_es*.dic +%doc LICENSE.md + +%files -n mythes-es +%defattr(-,root,root) +%{_datadir}/mythes/th_es*_v2.idx +%{_datadir}/mythes/th_es*_v2.dat +%doc LICENSE.md %changelog +* Tue Jan 04 2022 Silvan Calarco 2.6-1mamba +- update to 2.6 + * Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto 2011025-2mamba - rebuilt