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

This commit is contained in:
Parag Nemade 2022-03-22 13:31:53 +05:30
parent 9f466b5cbb
commit 0003adf182
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,13 +1,19 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-nds
Summary: Lowlands Saxon hunspell dictionaries
Version: 0.1
Release: 23%{?dist}
Release: 24%{?dist}
Source: http://downloads.sourceforge.net/aspell-nds/hunspell-nds-0.1.zip
URL: http://aspell-nds.sourceforge.net/
License: GPLv2+
BuildArch: noarch
Requires: hunspell
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-nds)
%description
@ -19,10 +25,10 @@ Lowlands Saxon hunspell dictionaries.
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p nds.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/nds_DE.aff
cp -p nds.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/nds_DE.dic
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p nds.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/nds_DE.aff
cp -p nds.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/nds_DE.dic
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
nds_DE_aliases="nds_NL"
for lang in $nds_DE_aliases; do
ln -s nds_DE.aff $lang.aff
@ -33,9 +39,13 @@ popd
%files
%doc README_nds.txt Copyright COPYING
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.1-24
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild