[hunspell-en] Resolves: rhbz#850709 allow installation of en-US and en-GB standalone

Caolán McNamara caolanm at fedoraproject.org
Mon Aug 27 20:01:46 UTC 2012


commit a8f8854d963c03a27a07a63b66df4bed3aeca982
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Aug 27 21:01:21 2012 +0100

    Resolves: rhbz#850709 allow installation of en-US and en-GB standalone

 hunspell-en.spec |   37 ++++++++++++++++++++++++++++++++++---
 1 files changed, 34 insertions(+), 3 deletions(-)
---
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 <caolanm at redhat.com> - 0.20110318-7
+- Resolves: rhbz#850709 allow installation of en-US and en-GB standalone
+
 * Wed Aug 1 2012 Caolán McNamara <caolanm at redhat.com> - 0.20110318-6
 - Related: rhbz#573516 we don't need hunspell to build hunspell-en
 


More information about the scm-commits mailing list