Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem

This commit is contained in:
Parag Nemade 2022-03-22 13:50:57 +05:30
parent c06f26c848
commit 183831e55f
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,14 +1,20 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-tet Name: hunspell-tet
Summary: Tetum hunspell dictionaries Summary: Tetum hunspell dictionaries
%global upstreamid 20050108 %global upstreamid 20050108
Version: 0.%{upstreamid} Version: 0.%{upstreamid}
Release: 26%{?dist} Release: 27%{?dist}
Source: http://download.services.openoffice.org/contrib/dictionaries/tet_ID.zip Source: http://download.services.openoffice.org/contrib/dictionaries/tet_ID.zip
URL: http://borel.slu.edu/crubadan/apps.html URL: http://borel.slu.edu/crubadan/apps.html
License: GPLv2+ License: GPLv2+
BuildArch: noarch BuildArch: noarch
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-tet) Supplements: (hunspell and langpacks-tet)
%description %description
@ -30,9 +36,9 @@ for i in README_tet_ID.txt; do
done done
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p tet_ID.* $RPM_BUILD_ROOT/%{_datadir}/myspell/ cp -p tet_ID.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
tet_ID_aliases="tet_TL" tet_ID_aliases="tet_TL"
for lang in $tet_ID_aliases; do for lang in $tet_ID_aliases; do
ln -s tet_ID.aff $lang.aff ln -s tet_ID.aff $lang.aff
@ -43,9 +49,13 @@ popd
%files %files
%doc README_tet_ID.txt %doc README_tet_ID.txt
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20050108-27
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050108-26 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20050108-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild