| 1 | Name: hunspell-en
|
|---|
| 2 | Summary: English hunspell dictionaries
|
|---|
| 3 | %global upstreamid 20140811.1
|
|---|
| 4 | Version: 0.%{upstreamid}
|
|---|
| 5 | Release: 1%{?dist}
|
|---|
| 6 | Source: %{name}-%{version}.zip
|
|---|
| 7 | URL: http://wordlist.sourceforge.net/
|
|---|
| 8 | License: LGPLv2+ and LGPLv2 and BSD
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 | BuildRequires: aspell, zip, dos2unix
|
|---|
| 11 | #BuildRequires: perl-Getopt-Long
|
|---|
| 12 | Requires: hunspell
|
|---|
| 13 | Requires: hunspell-en-US = %{version}-%{release}
|
|---|
| 14 | Requires: hunspell-en-GB = %{version}-%{release}
|
|---|
| 15 | Supplements: (hunspell and langpacks-en)
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | English (US, UK, etc.) hunspell dictionaries
|
|---|
| 19 |
|
|---|
| 20 | %package US
|
|---|
| 21 | Requires: hunspell
|
|---|
| 22 | Summary: US English hunspell dictionaries
|
|---|
| 23 |
|
|---|
| 24 | %description US
|
|---|
| 25 | US English hunspell dictionaries
|
|---|
| 26 |
|
|---|
| 27 | %package GB
|
|---|
| 28 | Requires: hunspell
|
|---|
| 29 | Summary: UK English hunspell dictionaries
|
|---|
| 30 |
|
|---|
| 31 | %description GB
|
|---|
| 32 | UK English hunspell dictionaries
|
|---|
| 33 |
|
|---|
| 34 | %prep
|
|---|
| 35 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 36 | unzip -q %{_sourcedir}/%{name}-%{version}.zip
|
|---|
| 37 |
|
|---|
| 38 | %build
|
|---|
| 39 |
|
|---|
| 40 | %install
|
|---|
| 41 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|---|
| 42 | cp -p C:/rpmbuild/BUILD/hunspell-en-0.20140811.1/usr/share/myspell/en_??.dic C:/rpmbuild/BUILD/hunspell-en-0.20140811.1/usr/share/myspell/en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|---|
| 43 |
|
|---|
| 44 | cd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
|---|
| 45 | en_GB_aliases="en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN en_JM en_MW en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZM en_ZW"
|
|---|
| 46 | for lang in $en_GB_aliases; do
|
|---|
| 47 | ln -s en_GB.aff $lang.aff
|
|---|
| 48 | ln -s en_GB.dic $lang.dic
|
|---|
| 49 | done
|
|---|
| 50 | en_US_aliases="en_PH"
|
|---|
| 51 | for lang in $en_US_aliases; do
|
|---|
| 52 | ln -s en_US.aff $lang.aff
|
|---|
| 53 | ln -s en_US.dic $lang.dic
|
|---|
| 54 | done
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | %files
|
|---|
| 58 | %doc C:/rpmbuild/BUILD/hunspell-en-0.20140811.1/usr/share/doc/hunspell-en/README_en_CA.txt
|
|---|
| 59 | %{_datadir}/myspell/*
|
|---|
| 60 | %exclude %{_datadir}/myspell/en_GB.*
|
|---|
| 61 | %exclude %{_datadir}/myspell/en_US.*
|
|---|
| 62 |
|
|---|
| 63 | %files US
|
|---|
| 64 | %doc C:/rpmbuild/BUILD/hunspell-en-0.20140811.1/usr/share/doc/hunspell-en-US/README_en_US.txt
|
|---|
| 65 | %{_datadir}/myspell/en_US.*
|
|---|
| 66 |
|
|---|
| 67 | %files GB
|
|---|
| 68 | %doc C:/rpmbuild/BUILD/hunspell-en-0.20140811.1/usr/share/doc/hunspell-en-GB/README_en_GB.txt
|
|---|
| 69 | %{_datadir}/myspell/en_GB.*
|
|---|
| 70 |
|
|---|
| 71 | %changelog
|
|---|
| 72 | * Sat Apr 08 2017 Elbert Pol <elbert.pol@gmail.com> - 0.20140811.1-1
|
|---|
| 73 | - first rpm version
|
|---|