Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
f126d4d730
commit
254d7eaf66
@ -1,14 +1,20 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-tl
|
||||
Summary: Tagalog hunspell dictionaries
|
||||
%global upstreamid 20050109
|
||||
Version: 0.%{upstreamid}
|
||||
Release: 25%{?dist}
|
||||
Release: 26%{?dist}
|
||||
Source: http://download.services.openoffice.org/contrib/dictionaries/tl_PH.zip
|
||||
URL: http://borel.slu.edu/crubadan/apps.html
|
||||
License: GPLv2+
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-tl)
|
||||
|
||||
%description
|
||||
@ -30,9 +36,9 @@ for i in README_tl_PH.txt; do
|
||||
done
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p tl_PH.* $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p tl_PH.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
tl_PH_aliases="fil_PH"
|
||||
for lang in $tl_PH_aliases; do
|
||||
ln -s tl_PH.aff $lang.aff
|
||||
@ -43,9 +49,13 @@ popd
|
||||
|
||||
%files
|
||||
%doc README_tl_PH.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20050109-26
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050109-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user