hunspell-es/hunspell-es.spec

102 lines
2.7 KiB
RPMSpec

Name: hunspell-es
Epoch: 1
Version: 2.6
Release: 1mamba
Summary: Spanish hunspell dictionaries
Group: System/Internationalization
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
%description
%{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 -n rla-es-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# 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/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 <silvan.calarco@mambasoft.it> 2.6-1mamba
- update to 2.6
* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2011025-2mamba
- rebuilt
* Tue Jan 25 2011 gil <puntogil@libero.it> 2011025-1mamba
- package created by autospec