From 4c27899dfda726c141adb78ff12c87286646c1ae Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Wed, 14 Feb 2007 09:02:30 +0000 Subject: [PATCH] auto-import hunspell-af-0.20060117-1 on branch devel from hunspell-af-0.20060117-1.src.rpm --- .cvsignore | 1 + hunspell-af.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 49 insertions(+) create mode 100644 hunspell-af.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c82c06e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +af_ZA-pack.zip diff --git a/hunspell-af.spec b/hunspell-af.spec new file mode 100644 index 0000000..e9b4fbe --- /dev/null +++ b/hunspell-af.spec @@ -0,0 +1,47 @@ +Name: hunspell-af +Summary: Afrikaans hunspell dictionary +%define upstreamid 20060117 +Version: 0.%{upstreamid} +Release: 1%{?dist} +Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/af_ZA-pack.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 +Afrikaans hunspell dictionary + +%prep +%setup -q -c -n hunspell-af_ZA +unzip myspell-af_ZA-%{upstreamid}.zip + +%build + +%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/ +af_ZA_aliases="af_NA" +for lang in $af_ZA_aliases; do + ln -s af_ZA.aff $lang.aff + ln -s af_ZA.dic $lang.dic +done +popd + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README_af_ZA.txt +%{_datadir}/myspell/* + +%changelog +* Wed Oct 25 2006 Caolan McNamara - 0.20060117-1 +- initial version diff --git a/sources b/sources index e69de29..a5a0774 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +381415236fb0a4b703bf3c04f0f1e1d3 af_ZA-pack.zip