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

This commit is contained in:
Caolán McNamara 2012-08-27 21:01:21 +01:00
parent 0b3408adf7
commit a8f8854d96

View File

@ -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@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@redhat.com> - 0.20110318-6
- Related: rhbz#573516 we don't need hunspell to build hunspell-en