Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
da741241da
commit
df0b9c67fe
@ -1,14 +1,20 @@
|
|||||||
|
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||||
|
%global dict_dirname hunspell
|
||||||
|
%else
|
||||||
|
%global dict_dirname myspell
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: hunspell-tn
|
Name: hunspell-tn
|
||||||
Summary: Tswana hunspell dictionaries
|
Summary: Tswana hunspell dictionaries
|
||||||
%global upstreamid 20150904
|
%global upstreamid 20150904
|
||||||
Version: 0.%{upstreamid}
|
Version: 0.%{upstreamid}
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Source: https://addons.mozilla.org/firefox/downloads/file/347396/tswana_spell_checker-%{upstreamid}-sm+tb+fx+an+fn.xpi
|
Source: https://addons.mozilla.org/firefox/downloads/file/347396/tswana_spell_checker-%{upstreamid}-sm+tb+fx+an+fn.xpi
|
||||||
URL: https://addons.mozilla.org/en-US/firefox/addon/tswana-spell-checker/
|
URL: https://addons.mozilla.org/en-US/firefox/addon/tswana-spell-checker/
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: hunspell
|
Requires: hunspell-filesystem
|
||||||
Supplements: (hunspell and langpacks-tn)
|
Supplements: (hunspell and langpacks-tn)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -20,10 +26,10 @@ Tswana hunspell dictionaries.
|
|||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||||
cp -p dictionaries/tn-ZA.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/tn_ZA.aff
|
cp -p dictionaries/tn-ZA.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/tn_ZA.aff
|
||||||
cp -p dictionaries/tn-ZA.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/tn_ZA.dic
|
cp -p dictionaries/tn-ZA.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/tn_ZA.dic
|
||||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||||
tn_ZA_aliases="tn_BW"
|
tn_ZA_aliases="tn_BW"
|
||||||
for lang in $tn_ZA_aliases; do
|
for lang in $tn_ZA_aliases; do
|
||||||
ln -s tn_ZA.aff $lang.aff
|
ln -s tn_ZA.aff $lang.aff
|
||||||
@ -34,9 +40,13 @@ popd
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%doc dictionaries/README_tn_ZA.txt
|
%doc dictionaries/README_tn_ZA.txt
|
||||||
%{_datadir}/myspell/*
|
%{_datadir}/%{dict_dirname}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20150904-10
|
||||||
|
- Add conditional for new hunspell dir path and update to Requires:
|
||||||
|
hunspell-filesystem
|
||||||
|
|
||||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20150904-9
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20150904-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user