From 3c69a0bd302fcb8f3e722702431f1a8f6f1fc1d7 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Wed, 13 Dec 2006 16:03:13 +0000 Subject: [PATCH] auto-import hunspell-en-0.20040623-1 on branch devel from hunspell-en-0.20040623-1.src.rpm --- .cvsignore | 2 ++ hunspell-en.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 2 ++ 3 files changed, 57 insertions(+) create mode 100644 hunspell-en.spec diff --git a/.cvsignore b/.cvsignore index e69de29..79116ea 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +en_GB.zip +en_US.zip diff --git a/hunspell-en.spec b/hunspell-en.spec new file mode 100644 index 0000000..9848dcc --- /dev/null +++ b/hunspell-en.spec @@ -0,0 +1,53 @@ +Name: hunspell-en +Summary: English hunspell dictionaries +%define upstreamid 20040623 +Version: 0.%{upstreamid} +Release: 1 +Source0: en_US.zip +Source1: en_GB.zip +Group: Applications/Text +URL: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/ +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +License: LGPL +BuildArch: noarch +BuildRequires: unzip + +Requires: hunspell + +%description +English (US, UK, etc.) hunspell dictionaries + +%prep +%setup -c -n hunspell-en +unzip %{SOURCE1} + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell +chmod -x * +cp *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell + +pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +en_GB_aliases="en_AU en_BS en_BZ en_CA en_IE en_IN en_JM en_NA en_NZ en_TT en_ZA en_ZW" +for lang in $en_GB_aliases; do + ln -s en_GB.aff $lang.aff + ln -s en_GB.dic $lang.dic +done +en_US_aliases="en_PH" +for lang in $en_US_aliases; do + ln -s en_US.aff $lang.aff + ln -s en_US.dic $lang.dic +done +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README_en_US.txt README_en_GB.txt +%{_datadir}/myspell/* + +%changelog +* Thu Dec 07 2006 Caolan McNamara - 0.20040623-1 +- initial version diff --git a/sources b/sources index e69de29..60af779 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +6fb885d57899c3e6aa2b27f3510deb37 en_GB.zip +b68f2940bf422074213fef74488b1da1 en_US.zip