From a8f8854d963c03a27a07a63b66df4bed3aeca982 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Aug 27 2012 20:01:21 +0000 Subject: Resolves: rhbz#850709 allow installation of en-US and en-GB standalone --- diff --git a/hunspell-en.spec b/hunspell-en.spec index 81e7947..e961387 100644 --- a/hunspell-en.spec +++ b/hunspell-en.spec @@ -2,7 +2,7 @@ Name: hunspell-en Summary: English hunspell dictionaries %define upstreamid 20110318 Version: 0.%{upstreamid} -Release: 6%{?dist} +Release: 7%{?dist} #svn co https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist Source0: wordlist-%{upstreamid}.tar.bz2 Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip @@ -29,11 +29,27 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: LGPLv2+ and BSD BuildArch: noarch BuildRequires: aspell, zip -Requires: hunspell +Requires: hunspell, hunspell-en-US, hunspell-en-GB %description English (US, UK, etc.) hunspell dictionaries +%package US +Requires: hunspell = %{version}-%{release} +Summary: US English hunspell dictionaries +Group: Applications/Text + +%description US +US English hunspell dictionaries + +%package GB +Requires: hunspell = %{version}-%{release} +Summary: UK English hunspell dictionaries +Group: Applications/Text + +%description GB +UK English hunspell dictionaries + %prep %setup -q -n wordlist %setup -q -T -D -a 1 -n wordlist @@ -86,10 +102,25 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc README_en_GB.txt scowl/speller/README_en_CA.txt scowl/speller/README_en_US.txt +%doc scowl/speller/README_en_CA.txt %{_datadir}/myspell/* +%exclude %{_datadir}/myspell/en_GB.* +%exclude %{_datadir}/myspell/en_US.* + +%files US +%defattr(-,root,root,-) +%doc scowl/speller/README_en_US.txt +%{_datadir}/myspell/en_US.* + +%files GB +%defattr(-,root,root,-) +%doc README_en_GB.txt +%{_datadir}/myspell/en_GB.* %changelog +* Mon Aug 27 2012 Caolán McNamara - 0.20110318-7 +- Resolves: rhbz#850709 allow installation of en-US and en-GB standalone + * Wed Aug 1 2012 Caolán McNamara - 0.20110318-6 - Related: rhbz#573516 we don't need hunspell to build hunspell-en