Add Supplements: tag for langpacks naming guidelines
- Clean the specfile to follow current packaging guidelines
This commit is contained in:
parent
73b4738da7
commit
bbb4704586
@ -1,8 +1,8 @@
|
|||||||
Name: hunspell-en
|
Name: hunspell-en
|
||||||
Summary: English hunspell dictionaries
|
Summary: English hunspell dictionaries
|
||||||
%define upstreamid 20140811.1
|
%global upstreamid 20140811.1
|
||||||
Version: 0.%{upstreamid}
|
Version: 0.%{upstreamid}
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Source0: https://github.com/kevina/wordlist/archive/rel-2014.08.11.1.tar.gz
|
Source0: https://github.com/kevina/wordlist/archive/rel-2014.08.11.1.tar.gz
|
||||||
Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
|
Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
|
||||||
#See http://mxr.mozilla.org/mozilla/source/extensions/spellcheck/locales/en-US/hunspell/mozilla_words.diff?raw=1
|
#See http://mxr.mozilla.org/mozilla/source/extensions/spellcheck/locales/en-US/hunspell/mozilla_words.diff?raw=1
|
||||||
@ -26,15 +26,14 @@ Patch7: en_IE.supplemental.patch
|
|||||||
Patch8: hunspell-en-dont-call-git-during-build.patch
|
Patch8: hunspell-en-dont-call-git-during-build.patch
|
||||||
#fix build
|
#fix build
|
||||||
Patch9: hunspell-en-fixbuild.patch
|
Patch9: hunspell-en-fixbuild.patch
|
||||||
Group: Applications/Text
|
|
||||||
URL: http://wordlist.sourceforge.net/
|
URL: http://wordlist.sourceforge.net/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
License: LGPLv2+ and LGPLv2 and BSD
|
License: LGPLv2+ and LGPLv2 and BSD
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: aspell, zip, dos2unix, perl-Getopt-Long
|
BuildRequires: aspell, zip, dos2unix, perl-Getopt-Long
|
||||||
Requires: hunspell
|
Requires: hunspell
|
||||||
Requires: hunspell-en-US = %{version}-%{release}
|
Requires: hunspell-en-US = %{version}-%{release}
|
||||||
Requires: hunspell-en-GB = %{version}-%{release}
|
Requires: hunspell-en-GB = %{version}-%{release}
|
||||||
|
Supplements: (hunspell and langpacks-en)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
English (US, UK, etc.) hunspell dictionaries
|
English (US, UK, etc.) hunspell dictionaries
|
||||||
@ -42,7 +41,6 @@ English (US, UK, etc.) hunspell dictionaries
|
|||||||
%package US
|
%package US
|
||||||
Requires: hunspell
|
Requires: hunspell
|
||||||
Summary: US English hunspell dictionaries
|
Summary: US English hunspell dictionaries
|
||||||
Group: Applications/Text
|
|
||||||
|
|
||||||
%description US
|
%description US
|
||||||
US English hunspell dictionaries
|
US English hunspell dictionaries
|
||||||
@ -50,7 +48,6 @@ US English hunspell dictionaries
|
|||||||
%package GB
|
%package GB
|
||||||
Requires: hunspell
|
Requires: hunspell
|
||||||
Summary: UK English hunspell dictionaries
|
Summary: UK English hunspell dictionaries
|
||||||
Group: Applications/Text
|
|
||||||
|
|
||||||
%description GB
|
%description GB
|
||||||
UK English hunspell dictionaries
|
UK English hunspell dictionaries
|
||||||
@ -85,7 +82,6 @@ for i in README_en_CA.txt README_en_US.txt; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||||
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||||
cd scowl/speller
|
cd scowl/speller
|
||||||
@ -104,27 +100,26 @@ for lang in $en_US_aliases; do
|
|||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc scowl/speller/README_en_CA.txt
|
%doc scowl/speller/README_en_CA.txt
|
||||||
%{_datadir}/myspell/*
|
%{_datadir}/myspell/*
|
||||||
%exclude %{_datadir}/myspell/en_GB.*
|
%exclude %{_datadir}/myspell/en_GB.*
|
||||||
%exclude %{_datadir}/myspell/en_US.*
|
%exclude %{_datadir}/myspell/en_US.*
|
||||||
|
|
||||||
%files US
|
%files US
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc scowl/speller/README_en_US.txt
|
%doc scowl/speller/README_en_US.txt
|
||||||
%{_datadir}/myspell/en_US.*
|
%{_datadir}/myspell/en_US.*
|
||||||
|
|
||||||
%files GB
|
%files GB
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README_en_GB.txt
|
%doc README_en_GB.txt
|
||||||
%{_datadir}/myspell/en_GB.*
|
%{_datadir}/myspell/en_GB.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.20140811.1-5
|
||||||
|
- Add Supplements: tag for langpacks naming guidelines
|
||||||
|
- Clean the specfile to follow current packaging guidelines
|
||||||
|
|
||||||
* Mon Feb 15 2016 Caolán McNamara <caolanm@redhat.com> - 0.20140811.1-4
|
* Mon Feb 15 2016 Caolán McNamara <caolanm@redhat.com> - 0.20140811.1-4
|
||||||
- Resolves: rhbz#1307627 FTBFS
|
- Resolves: rhbz#1307627 FTBFS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user