diff --git a/.cvsignore b/.cvsignore index e69de29..3293600 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +es_ES.zip +es_MX.zip diff --git a/hunspell-es.spec b/hunspell-es.spec new file mode 100644 index 0000000..b91e14c --- /dev/null +++ b/hunspell-es.spec @@ -0,0 +1,50 @@ +Name: hunspell-es +Summary: Spanish hunspell dictionaries +%define upstreamid 20050510 +Version: 0.%{upstreamid} +Release: 1%{?dist} +Source0: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/es_ES.zip +Source1: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/es_MX.zip +Group: Applications/Text +URL: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: LGPL +BuildArch: noarch + +Requires: hunspell + +%description +Spanish (Spain, Mexico, etc.) hunspell dictionaries. + +%prep +%setup -q -c -n hunspell-es +unzip -q %{SOURCE1} + +%build +chmod -x * + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell +cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell + +pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +es_MX_aliases="es_AR es_BO es_CL es_CO es_CR es_DO es_EC es_GT es_HN es_NI es_PA es_PE es_PR es_PY es_SV es_UY es_VE" + +for lang in $es_MX_aliases; do + ln -s es_MX.aff $lang.aff + ln -s es_MX.dic $lang.dic +done +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README_es_ES.txt README_es_MX.txt +%{_datadir}/myspell/* + +%changelog +* Thu Dec 07 2006 Caolan McNamara - 0.20050510-1 +- initial version diff --git a/sources b/sources index e69de29..e3194ea 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +4b272f7c958dd619b2ddc007c45db53b es_ES.zip +e32f5ec8c94fd902a9823dae4040a019 es_MX.zip